/* Stilovi igara (grupa c) — dopuna css/style.css */

/* 🧠 Memorija: simboli se pale jedan po jedan */
.mem-flash .sym.off { color: transparent; position: relative; opacity: .55; animation: none; }
.mem-flash .sym.off::after { content: ''; position: absolute; inset: 38%; border-radius: 50%; background: currentColor; color: #111118; opacity: .25; }
.mem-flash .sym.was { opacity: .3; }
.mem-flash .sym.on { background: #ffe600; outline: 5px solid #111118; transform: scale(1.05); animation: mem-pop .25s cubic-bezier(.2, 1.6, .4, 1) backwards; }
@keyframes mem-pop { from { transform: scale(.4); } }
.mem-count { font-size: 40px; font-weight: 900; margin: 6px 0; font-variant-numeric: tabular-nums; }
.seq-small .ok { opacity: 1; }

/* 🎯 Zaustavi u okviru: traka za gledaoce ide CSS-om (TV i tabla u online sobi) */
.stop-track.anim .stop-marker { animation: stop-run 1s linear infinite alternate; }
.stop-track.anim.moving .stop-window { animation: stop-win 2s ease-in-out infinite alternate; }
@keyframes stop-run { from { left: 0%; } to { left: 100%; } }
@keyframes stop-win { from { left: var(--a); } to { left: var(--b); } }
.stop-core { position: absolute; top: 0; bottom: 0; left: 33.3%; width: 33.4%; background: #33d17a55; border-left: 2px dashed #19d38a; border-right: 2px dashed #19d38a; }
.stop-result .stop-track { margin: 92px auto 26px; }
.stop-result .stop-pin { top: calc(-40px - var(--row, 0) * 26px); display: grid; justify-items: center; animation-delay: calc(var(--i, 0) * 120ms + 200ms); }
.stop-result .stop-pin::after { content: ''; width: 4px; height: calc(90px + var(--row, 0) * 26px); background: #111118; opacity: .5; margin-top: -2px; }
.stop-result .stop-pin.hit::after { background: #19d38a; opacity: 1; }
.stop-result .stop-pin.core span { filter: drop-shadow(0 0 8px #ffe600); }
.stop-result .stop-pin span { font-size: 34px; line-height: 1; }

/* ✊ Kamen, papir, makaze: izvikivanje i najpopularnija ruka */
.rps-beat { font-size: clamp(64px, calc(11 * var(--vw1, 1vw)), 150px); margin: 10px 0; animation: rps-beat .35s cubic-bezier(.2, 1.6, .4, 1) backwards; }
@keyframes rps-beat { from { transform: scale(.3) rotate(-8deg); opacity: 0; } }
.rps-fists { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; font-size: 44px; }
.rps-fists span { display: grid; justify-items: center; }
.rps-fists b { font-size: 64px; animation: rps-shake .55s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes rps-shake { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-26px) rotate(-10deg); } }
.rps-count { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 34px; }
.rps-count span { display: grid; justify-items: center; padding: 6px 18px; border: 3px solid #111118; border-radius: 16px; background: #fff; color: #111118; }
.rps-count span.top { background: #ffe600; transform: rotate(-3deg) scale(1.1); box-shadow: 4px 4px 0 #111118; }
.rps-count small { font-size: 13px; font-weight: 900; text-transform: uppercase; }
.rps-chant-phone .rps-beat { font-size: 54px; }

/* 🔨 Krtica: TV/tabla crta krtice CSS animacijom (svaka iskoči u svoje vreme) */
.mole-tv { position: relative; }
.mole-grid.tv .mole-hole { position: relative; overflow: hidden; }
.mole-grid.tv .pop { position: absolute; inset: 0; display: grid; place-items: center; visibility: hidden; border-radius: inherit;
  animation-name: mole-tv-pop; animation-timing-function: linear; animation-fill-mode: none; animation-iteration-count: 1; }
.mole-grid.tv .pop.gold { background: radial-gradient(circle at 50% 65%, #3a2a00 0 55%, #8a6a10 56% 100%); }
.mole-grid.tv .pop.bomb { background: radial-gradient(circle at 50% 65%, #2a0a0a 0 55%, #6a1d1d 56% 100%); }
@keyframes mole-tv-pop { 0% { visibility: visible; transform: translateY(40%) scale(.6); } 18%, 100% { visibility: visible; transform: translateY(8%); } }
.mole-time.tv div { animation-name: mole-time; animation-timing-function: linear; animation-fill-mode: both; }
@keyframes mole-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.mole-frenzy { position: absolute; left: 50%; top: -66px; transform: translateX(-50%) rotate(-3deg); white-space: nowrap; z-index: 2;
  background: #ffe600; color: #111118; border: 4px solid #111118; border-radius: 14px; padding: 4px 18px; font-weight: 900; font-size: 30px; box-shadow: 5px 5px 0 #111118;
  visibility: hidden; animation: mole-frenzy .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes mole-frenzy { from { visibility: visible; transform: translateX(-50%) scale(.2) rotate(-12deg); } to { visibility: visible; } }
.mole-frenzy-phone { display: none; }
.mole-phone.frenzy { background: #3a2a00; }
.mole-phone.frenzy .mole-frenzy-phone { display: block; background: #ffe600; color: #111118; border: 3px solid #111118; border-radius: 12px; padding: 4px 14px; font-weight: 900; font-size: 22px; transform: rotate(-2deg); animation: rps-beat .35s cubic-bezier(.2, 1.6, .4, 1); }

/* 🔥 Šibice: mutna procena na telefonu i zamene jedna po jedna na TV-u */
.my-stick.fuzzy { position: relative; flex-direction: column; align-items: center; }
.my-stick.fuzzy .stick-body { filter: blur(3px); }
.stick-cat { font-size: 26px; font-weight: 900; text-transform: uppercase; background: #ffe600; color: #111118; border: 3px solid #111118; border-radius: 10px; padding: 0 12px; transform: rotate(-3deg); margin-top: 6px; }
.straws-reveal .stick-body { transition: height .6s cubic-bezier(.3, 1.4, .5, 1); }
.straws-reveal .stick-col.swapping { transform: translateY(-14px); }
.straws-reveal .stick-col.swapping .stick-body { background: linear-gradient(#ffe600, #ff8a00); }
.straws-reveal .stick-col.swapping > span { background: #ffe600; color: #111118; border-radius: 8px; padding: 0 6px; }
.straws-reveal .stick-col { transition: transform .3s; }
body.host .straws-reveal .stick-col small.muted, body.board-body .straws-reveal .stick-col small.muted { font-size: 15px; font-weight: 700; }
.swap-log { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.swap-step { opacity: .45; }
.swap-step.done { opacity: 1; }
.swap-step.now { opacity: 1; font-weight: 900; background: #ffe600; color: #111118; border-radius: 8px; padding: 0 8px; }

/* ⚽ Penali: zalet i istorija šuteva */
.pen-runup { font-size: clamp(40px, calc(6 * var(--vw1, 1vw)), 72px); margin: 6px 0; }
.pen-runner { display: inline-block; animation: pen-run .3s ease-in-out infinite alternate; }
@keyframes pen-run { from { transform: translateX(-14px) rotate(-8deg); } to { transform: translateX(14px) rotate(8deg); } }
.pen-goal.runup .pen-keeper { animation: pen-shimmy .38s ease-in-out infinite alternate; }
@keyframes pen-shimmy { from { transform: translateX(-80%); } to { transform: translateX(-20%); } }
.pen-goal.runup .pen-ball { bottom: -20px; animation: pen-ball-wait .6s ease-in-out infinite alternate; }
@keyframes pen-ball-wait { to { transform: translateX(-50%) scale(1.15); } }
.pen-history { display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; font-size: 24px; margin: 4px 0 8px; }
.pen-history span { background: #fff; color: #111118; border: 3px solid #111118; border-radius: 12px; padding: 2px 12px; box-shadow: 3px 3px 0 #111118; }

/* 🔫 Vodeni pištolj: klik… klik… */
.squirt-live.click .squirt-gun, .squirt-phone.click .squirt-gun { animation: squirt-tremble .12s linear infinite; }
@keyframes squirt-tremble { 0%, 100% { transform: scaleX(-1) rotate(-2deg); } 50% { transform: scaleX(-1) rotate(3deg) translateY(-3px); } }
.squirt-click { font-size: clamp(34px, calc(5.5 * var(--vw1, 1vw)), 64px); margin: 6px 0; animation: rps-beat .4s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.squirt-live.click .squirt-cyl .cham:not(.used):first-of-type, .squirt-live.click .squirt-cyl .cham.used + .cham:not(.used) { border-color: #ffe600; box-shadow: 0 0 0 4px #ffe60088; }

/* 🍾 Šampanjac: 📳 mućka / 👆 tapka */
.fizz-how { font-size: .8em; margin-left: 2px; }

/* 🌀 Preokreti (grupa c): zajedničko */
.sym-row.big.long .sym { font-size: 62px; width: 92px; height: 100px; }
body.player .sym-row.slots .sym { min-width: 0; }
.mem-phone .twist-badge { margin: 2px auto 4px; }

/* 🌀 Lavirint: veličina se menja svake runde */
.maze.tv { aspect-ratio: var(--ar, 9 / 13); }
.maze.phone { width: min(calc(94 * var(--vw1, 1vw)), calc((calc(100 * var(--dvh1, 1dvh)) - var(--board-top, 0px) - 150px) * var(--arn, .6923))); aspect-ratio: var(--ar, 9 / 13); }
.maze-how { font-weight: 900; color: #ffe600; margin: 0; font-size: 15px; }
.maze-live .twist-badge, .mole-live .twist-badge { width: fit-content; justify-self: center; align-self: center; }

/* 🎯 Zaustavi u okviru: preokreti na TV-u */
.stop-track.anim.shrink .stop-window { animation: stop-shrink 8s linear forwards; }
@keyframes stop-shrink { to { transform: scaleX(var(--s, .35)); } }
.stop-track.ghost .stop-marker { opacity: 0; }
.stop-track.ghost::after { content: '👻'; position: absolute; right: -6px; top: -34px; font-size: 30px; }
.stopper-phone .stop-marker { transition: opacity .12s; }
.stopper-phone .twist-badge { position: absolute; top: calc(max(16px, env(safe-area-inset-top)) + 40px); left: 0; right: 0; width: fit-content; }

/* ✊ KPM */
.rps-phone .twist-badge { margin: 0 auto; }

/* 🔨 Krtica: rupe, legenda */
.mole-grid { grid-template-columns: repeat(var(--cols, 3), 1fr); }
.mole-hole.clover { background: radial-gradient(circle at 50% 65%, #0a2a10 0 55%, #1d8a3a 56% 100%); }
.mole-grid.tv .pop.clover { background: radial-gradient(circle at 50% 65%, #0a2a10 0 55%, #1d8a3a 56% 100%); }
@keyframes mole-gone { to { visibility: hidden; } }
@keyframes mole-show { to { visibility: visible; } }
.mole-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; font-weight: 900; font-size: 20px; margin: 4px 0; }
.mole-legend span { white-space: nowrap; }
body.player .mole-legend { font-size: 17px; }
.mole-tw { margin: 0; font-weight: 900; color: #ffe600; }

/* 🔥 Šibice: džoker, provirivanje, cm */
.stick-joker { font-size: 30px; animation: rps-beat .4s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.straws-note { margin: 2px 0; font-weight: 800; background: #ffe600; color: #111118; border: 3px solid #111118; border-radius: 10px; padding: 2px 10px; }
.straws-phone .twist-badge { margin: 0 auto; }

/* ⚽ Penali: vetar, šest polja, široki golman */
.pen-buttons.n2 { grid-template-columns: repeat(2, 1fr); }
.pen-buttons.n6 .pen-btn { padding: 12px 0; }
.pen-bar { position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed #ffffff66; }
.pen-ball.shot-left.low { animation-name: shot-left-low; }
.pen-ball.shot-mid.low { animation-name: shot-mid-low; }
.pen-ball.shot-right.low { animation-name: shot-right-low; }
@keyframes shot-left-low { to { left: 16%; bottom: 24px; } }
@keyframes shot-mid-low { to { left: 50%; bottom: 20px; } }
@keyframes shot-right-low { to { left: 84%; bottom: 24px; } }
.pen-keeper.dive-left.low { animation-name: dive-left-low; }
.pen-keeper.dive-right.low { animation-name: dive-right-low; }
.pen-keeper.dive-mid.low { animation-name: dive-mid-low; }
@keyframes dive-left-low { to { left: 18%; transform: translateX(-50%) rotate(-90deg); } }
@keyframes dive-right-low { to { left: 82%; transform: translateX(-50%) rotate(90deg); } }
@keyframes dive-mid-low { to { transform: translateX(-50%) scale(1.2, .75); } }
.pen-fans { margin: 4px 0; font-weight: 800; background: #ffe600; color: #111118; border: 3px solid #111118; border-radius: 10px; padding: 2px 10px; }
.pen-phone .twist-badge { margin: 0 auto; }

/* 🪑 Stolice: zamrzni, zadirkivanje, usporavanje */
.chairs-phone.freeze { background: #0c3a7a; }
.chairs-phone.fake.tease { background: #6b5a00; }
.chairs-phone.fake.slow { background: #241a40; }
.chairs-live.freeze .chairs-cue { color: #7cc4ff; }
.chairs-live.fake.tease .chairs-cue { color: #ffe600; }
.chairs-live.fake.slow .player-chip.dancing { animation: dance 1.4s ease-in-out infinite alternate; }
.chairs-phone .twist-badge { margin: 0 auto 6px; }

/* 🔫 Vodeni pištolj: više komora, smer */
.squirt-cyl .cham.wet2 { background: #3b82f688; border-color: #93c5fd; }
.squirt-dir { font-weight: 900; font-size: 22px; margin: 0; }
.squirt-phone .twist-badge { margin: 0 auto; }

/* 🍾 Šampanjac: crveno-zeleno, naslepo */
.fizz-live.red > h1 { color: #ff4d4d; }
.fizz-phone.red { background: #6a0f0f; }
.fizz-glass.blind i { display: none; }
.fizz-phone .twist-badge { margin: 0 auto; }

/* 🤠 Rodeo: Simon kaže, kombinacije */
.rodeo-buttons { grid-template-columns: repeat(5, 1fr); }
.rodeo-btn { font-size: 30px; }
.rodeo-tw { margin: 0; font-weight: 900; color: #ffe600; }
.rodeo-live .rodeo-cmd { line-height: 1.05; }

/* 🎣 Pecanje: mutna voda, dugo drmanje, ajkula */
@keyframes fish-nib2 { 0%, 100% { transform: translate(-50%, -60%) rotate(0); } 15% { transform: translate(-46%, -50%) rotate(-12deg); } 30% { transform: translate(-54%, -56%) rotate(10deg); } 45% { transform: translate(-47%, -48%) rotate(-8deg); } 60% { transform: translate(-53%, -55%) rotate(6deg); } }
.fish-pond.murky { background: linear-gradient(#a7b39a 0 38%, #5b5a36 38%); }
.fish-pond.murky .fish-float.under { top: 50%; font-size: 30px; opacity: .8; }
.fish-phone.bite.murky { background: #2e2c18; }
.fish-phone.wait.murky { background: #2e2c18; }
.fish-pulls { font-size: 28px; font-weight: 900; margin: 0; }
.fish-phone .twist-badge { margin: 0 auto; }

/* 🥔 Vruć krompir: faze */
.potato-phone.cold { background: #0c2f5a; }
.potato-phone.hot { background: #6a1506; }
.potato-phone.red { background: #4a0a0a; }
.potato-live.cold > h1 { color: #7cc4ff; }
.potato-live.red > h1 { color: #ff4d4d; }
.potato-phone .round-label { white-space: normal; }
.potato-phone .twist-badge { margin: 0 auto; }
/* Skrivena šibica (.hidden u style.css je visibility:hidden — ovde treba da se vidi kao „poleđina“). */
.stick.hidden { visibility: visible; }

/* ===== ANIMACIJE C2 ===== */
/* Crteži i animacije za: Memorija, Lavirint, Zaustavi u okviru, KPM, Krtica, Šibice (js/art/*.js). */

/* ---------- zajedničko: prasak sa rečju, iskre ---------- */
/* --c je „sat“ za jednokratne animacije: na TV-u 0, na telefonu --ft (ekran se crta iznova), ili ga element sam zada. */
.player .tap-zone { --c: var(--ft, 0ms); }
.c2-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.c2-burst svg { position: absolute; left: -1.1em; top: -1.1em; width: 2.2em; height: 2.2em; overflow: visible; animation: c2-burst .9s cubic-bezier(.2, 1.6, .4, 1) calc(var(--c, 0ms) + var(--bd, 0ms)) both; }
.c2-burst .cb-ink { fill: #111118; }
.c2-burst .cb-out { fill: #ffe600; stroke: #111118; stroke-width: 7; stroke-linejoin: round; }
.c2-burst .cb-in { fill: #fff; }
.c2-burst.red .cb-out { fill: #ff2d2d; }
.c2-burst.red .cb-in { fill: #ffe600; }
.c2-burst b { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 900; font-size: .52em; line-height: 1; font-style: normal; color: #ff2d2d; -webkit-text-stroke: .09em #111118; paint-order: stroke fill; text-shadow: .06em .06em 0 #111118; transform: translate(-50%, -50%) rotate(-8deg); animation: c2-word .9s cubic-bezier(.2, 1.6, .4, 1) calc(var(--c, 0ms) + var(--bd, 0ms)) both; }
.c2-burst.red b { color: #fff; }
@keyframes c2-burst { 0% { transform: scale(0) rotate(-40deg); opacity: 1; } 30% { transform: scale(1.2) rotate(8deg); opacity: 1; } 45% { transform: scale(1) rotate(0); } 78% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes c2-word { 0% { transform: translate(-50%, -50%) scale(0) rotate(-30deg); opacity: 1; } 35% { transform: translate(-50%, -50%) scale(1.3) rotate(-4deg); } 50% { transform: translate(-50%, -50%) scale(1) rotate(-8deg); } 78% { opacity: 1; } 100% { transform: translate(-50%, -70%) scale(1.1) rotate(-8deg); opacity: 0; } }
.c2-burst.stay svg { animation-name: c2-burst-stay; animation-duration: .5s; }
.c2-burst.stay b { animation-name: c2-word-stay; animation-duration: .5s; }
@keyframes c2-burst-stay { 0% { transform: scale(0) rotate(-40deg); } 60% { transform: scale(1.2) rotate(8deg); } }
@keyframes c2-word-stay { 0% { transform: translate(-50%, -50%) scale(0) rotate(-30deg); } 60% { transform: translate(-50%, -50%) scale(1.3) rotate(-4deg); } }
.c2-burst.back { z-index: -1; }
.c2-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.c2-sparks i { position: absolute; left: -.08em; top: -.08em; width: .16em; height: .16em; border-radius: 50%; background: #ffe600; border: .025em solid #111118; opacity: 0; animation: c2-spark .7s cubic-bezier(.1, .7, .3, 1) calc(var(--c, 0ms) + var(--bd, 0ms)) both; }
.c2-sparks i:nth-child(3n) { background: #fff; }
.c2-sparks i:nth-child(4n) { background: #ff2d2d; }
@keyframes c2-spark { 0% { opacity: 0; transform: rotate(var(--a)) translateX(.1em) scale(1); } 2%, 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(calc(var(--d) * 1em)) scale(.4); } }
@media (prefers-reduced-motion: reduce) { .c2-burst:not(.stay), .c2-sparks { display: none; } }

/* ---------- 🧠 Memorija: karte koje se okreću, pečati ✔/✘ ---------- */
.stage[data-game="memory"] .sym-row.big { gap: 14px; margin: 18px 0; }
.stage[data-game="memory"] .sym-row.big .sym { position: relative; border: 5px solid #111118; box-shadow: 6px 6px 0 #111118; }
.stage[data-game="memory"] .sym-row.big .sym:nth-child(odd) { rotate: -2deg; }
.stage[data-game="memory"] .sym-row.big .sym:nth-child(even) { rotate: 1.5deg; }
.mem-flash .sym.off { opacity: 1; color: transparent; background: #1746d1 radial-gradient(#ffffff40 2.5px, transparent 3px) 0 0 / 14px 14px; animation: mem-deal .4s cubic-bezier(.2, 1.6, .4, 1) backwards; animation-delay: calc(var(--n, 0) * 55ms); }
.mem-flash .sym.off::after { content: '?'; inset: 0; display: grid; place-items: center; background: none; border-radius: 0; opacity: 1; color: #ffe600; font-weight: 900; font-size: .8em; -webkit-text-stroke: 3px #111118; paint-order: stroke fill; }
.mem-flash .sym.off.was { opacity: 1; background-color: #0f2f96; transform: translateY(6px) scale(.94); animation: mem-unflip .22s ease-out backwards; animation-delay: 0s; }
.mem-flash .sym.off.was::after { content: '✓'; color: #7f9cff; -webkit-text-stroke: 0; font-size: .5em; }
@keyframes mem-deal { from { transform: translateY(-60px) rotate(-14deg) scale(.5); opacity: 0; } }
@keyframes mem-unflip { from { transform: perspective(500px) rotateY(-90deg) scale(1.05); } }
.mem-flash .sym.on { z-index: 2; outline: 0; background: #ffe600; box-shadow: 9px 13px 0 #111118; transform: translateY(-10px) scale(1.12); animation: mem-flip .26s cubic-bezier(.2, 1.6, .4, 1) backwards; }
@keyframes mem-flip { 0% { transform: perspective(500px) rotateY(90deg) scale(.85); } 60% { transform: perspective(500px) rotateY(-14deg) translateY(-20px) scale(1.22); } 100% { transform: perspective(500px) rotateY(0) translateY(-10px) scale(1.12); } }
.mem-flash .sym.on::before { content: ''; position: absolute; inset: -34%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, #fff9 0 30%, #ffe60088 31% 48%, #ffe60000 70%); animation: mem-glow .35s ease-out backwards; }
.mem-flash .sym.on::after { content: ''; position: absolute; inset: -8px; border-radius: 26px; border: 7px solid #fff; opacity: 0; animation: mem-ring .5s ease-out; }
@keyframes mem-glow { from { transform: scale(.3); opacity: 0; } }
@keyframes mem-ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.75); opacity: 0; } }
/* čekanje odgovora: poleđine se talasaju */
.stage[data-game="memory"][data-step="answer"] .sym-row.big .sym { background: #1746d1 radial-gradient(#ffffff40 2.5px, transparent 3px) 0 0 / 14px 14px; animation: pop .4s backwards, mem-bob 1.5s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 70ms), calc(var(--n, 0) * 130ms + .5s); }
@keyframes mem-bob { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-14px) rotate(3deg); } }
.mem-sent { margin-top: 10px; }
.host .mem-sent .player-chip.cashed { animation: bounce-soft .45s cubic-bezier(.2, .8, .2, 1); }
/* otkrivanje: tačan niz se okrene karta po karta, pa talas */
.mem-reveal .mem-answer .sym { background: #ffe600; animation: mem-flip-in .42s cubic-bezier(.2, 1.6, .4, 1) backwards, mem-wave .55s ease-in-out 2; animation-delay: calc(var(--n, 0) * 80ms), calc(var(--n, 0) * 80ms + 1.1s); }
@keyframes mem-flip-in { 0% { transform: perspective(500px) rotateY(90deg) scale(.8); } 60% { transform: perspective(500px) rotateY(-14deg) scale(1.15); } }
@keyframes mem-wave { 40% { transform: translateY(-20px) rotate(3deg) scale(1.06); } 70% { transform: translateY(3px) scale(.98, .96); } }
.mem-reveal .result-row { grid-template-columns: 40px 52px minmax(0, 1fr) auto 70px; }
.mem-reveal .seq-small { display: inline-flex; gap: 4px; font-size: 19px; padding: 4px 6px 6px 0; }
.mem-reveal .seq-small:has(> :nth-child(8)) { font-size: 15px; gap: 3px; }
.mem-reveal .seq-small > span { position: relative; padding: 0; opacity: 1; font-size: inherit; display: inline-grid; place-items: center; width: 1.45em; height: 1.6em; background: #fff; border: 2.5px solid #111118; border-radius: 7px; --at: calc(250ms + (var(--n, 1) - var(--i, 0) - 1) * 380ms + 320ms + var(--k, 0) * 70ms); }
.mem-reveal .seq-small > span::after { position: absolute; right: -6px; bottom: -7px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #111118; font-size: 10px; font-weight: 900; line-height: 1; animation: mem-stamp .32s cubic-bezier(.2, 1.6, .4, 1) calc(var(--at) + 140ms) backwards; }
.mem-reveal .seq-small > .ok { animation: mem-ok .35s cubic-bezier(.2, 1.6, .4, 1) var(--at) backwards; }
.mem-reveal .seq-small > .ok::after { content: '✓'; background: #19d38a; color: #111118; }
.mem-reveal .seq-small > .bad { background: #ff9d9d; rotate: 7deg; color: inherit; opacity: 1; animation: mem-bad .5s ease-in-out var(--at) backwards; }
.mem-reveal .seq-small > .bad::before, .mem-result .mem-mine .bad::before { content: ''; position: absolute; inset: 0; background: #111118; clip-path: polygon(46% 0, 53% 0, 45% 32%, 60% 50%, 44% 100%, 38% 100%, 51% 54%, 37% 36%); opacity: .7; }
.mem-reveal .seq-small > .bad::after { content: '✗'; background: #ff2d2d; color: #fff; }
@keyframes mem-ok { 0% { transform: scale(.6); } 60% { transform: translateY(-5px) scale(1.15); } }
@keyframes mem-bad { 0% { transform: none; rotate: 0deg; } 20% { transform: translateX(-4px) rotate(-10deg); } 40% { transform: translateX(4px) rotate(8deg); } 60% { transform: translateX(-3px) rotate(-6deg); } 80% { transform: translateX(2px); } }
@keyframes mem-stamp { 0% { transform: scale(3) rotate(-30deg); opacity: 0; } }
.host .mem-reveal .result-row.perfect .avatar { animation: bounce-soft .5s cubic-bezier(.2, .8, .2, 1) backwards, mem-wave .6s ease-in-out 2; animation-delay: calc(var(--i, 0) * 120ms + 250ms), calc(250ms + (var(--n, 1) - var(--i, 0)) * 380ms + 500ms); }
/* telefon: tasteri koji se utiskuju, polja koja se pune */
.mem-phone .sym-pad { gap: 12px 9px; padding-bottom: 6px; }
.mem-phone .sym-btn { position: relative; background: #fff; border: 3px solid #111118; border-radius: 16px; box-shadow: 0 6px 0 #111118; transition: none; }
.mem-phone .sym-btn:active { transform: translateY(6px); box-shadow: 0 0 0 #111118; background: #ffe600; }
.mem-phone .sym-btn.hit { animation: mem-key .28s cubic-bezier(.2, 1.6, .4, 1) var(--since, 0ms) backwards; }
.mem-phone .sym-btn.hit::after { content: ''; position: absolute; inset: -3px; border-radius: 16px; background: #ffe600; opacity: 0; mix-blend-mode: multiply; animation: mem-key-flash .35s ease-out var(--since, 0ms) backwards; }
@keyframes mem-key { 0% { transform: translateY(6px); box-shadow: 0 0 0 #111118; } 60% { transform: translateY(-3px); } }
@keyframes mem-key-flash { from { opacity: 1; } }
.mem-phone .sym-row.slots { flex-wrap: nowrap; gap: 5px; width: 100%; margin: 6px 0; }
.mem-phone .sym-row.slots .sym { flex: 0 1 40px; min-width: 0; width: auto; }
.mem-phone .sym-row.slots:has(> :nth-child(9)) .sym { font-size: 19px; height: 40px; }
@media (max-height: 700px) { .mem-phone .sym-pad { max-width: 300px; gap: 10px 8px; } .mem-phone .sym-btn { font-size: 32px; } .mem-phone { gap: 6px; } }
.mem-phone .sym-row.slots .sym { border: 2.5px dashed #ffffff88; background: #ffffff1f; color: #fff; }
.mem-phone .sym-row.slots .sym.full { border: 2.5px solid #111118; background: #fff; color: #111118; box-shadow: 0 3px 0 #111118; }
.mem-phone .sym-row.slots .sym.next { border-color: #ffe600; background: #ffe60033; }
.mem-phone .sym-row.slots .sym.last { animation: mem-slot .32s cubic-bezier(.2, 1.6, .4, 1) var(--since, 0ms) backwards; }
@keyframes mem-slot { 0% { transform: translateY(26px) scale(.4) rotate(-20deg); } 60% { transform: translateY(-5px) scale(1.2) rotate(4deg); } }
/* telefon: rezultat — gore tačan niz, dole moj, sa pečatima */
.mem-result > .huge { position: relative; z-index: 0; }
.mem-result.perfect > .huge { margin: .5em 0 .6em; }
.mem-result > .huge > span { position: relative; }
.mem-result .sym-row { gap: 5px; margin: 4px 0 8px; }
.mem-result .sym-row .sym { position: relative; font-size: 24px; width: 36px; height: 42px; border: 2.5px solid #111118; border-radius: 9px; box-shadow: 0 3px 0 #111118; }
.mem-result .mem-want .sym { background: #ffe600; }
.mem-result.perfect .mem-want .sym { animation: mem-wave .55s ease-in-out calc(var(--c, 0ms) + 700ms + var(--k, 0) * 70ms) 2 backwards; }
.mem-result .mem-mine .sym { --at: calc(var(--c, 0ms) + 450ms + var(--k, 0) * 80ms); }
.mem-result .mem-mine .sym::after { position: absolute; right: -6px; bottom: -7px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #111118; font-size: 10px; font-weight: 900; line-height: 1; animation: mem-stamp .32s cubic-bezier(.2, 1.6, .4, 1) calc(var(--at) + 140ms) backwards; }
.mem-result .mem-mine .ok { animation: mem-ok .35s cubic-bezier(.2, 1.6, .4, 1) var(--at) backwards; }
.mem-result .mem-mine .ok::after { content: '✓'; background: #19d38a; color: #111118; }
.mem-result .mem-mine .bad { background: #ffd0d0; rotate: 7deg; animation: mem-bad .5s ease-in-out var(--at) backwards; }
.mem-result .mem-mine .bad::after { content: '✗'; background: #ff2d2d; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .mem-flash .sym, .mem-flash .sym::before, .mem-flash .sym::after, .mem-reveal .sym, .mem-reveal .seq-small > span, .mem-reveal .seq-small > span::after, .mem-result .sym, .mem-result .sym::after, .mem-phone .sym, .mem-phone .sym-btn, .stage[data-game="memory"][data-step="answer"] .sym-row.big .sym { animation: none; }
}

/* ---------- 🌀 Lavirint: strip tabla, zidovi sa konturom, likovi ---------- */
.maze { background: #111118; }
.maze.dark { background: #05070d; }
.maze .mz-floor { fill: #fff3c4; }
.maze pattern rect { fill: #ffe493; }
.maze use { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.maze .mz-wall-sh { stroke: #111118; stroke-opacity: .22; stroke-width: 3.4; }
.maze .mz-wall { stroke: #111118; stroke-width: 3.3; }
.maze .mz-wall-hi { stroke: #2f6bff; stroke-width: 1.5; }
.maze.ice .mz-floor { fill: #d6f1ff; }
.maze.ice pattern rect { fill: #bde7ff; }
.maze.ice .mz-wall-hi { stroke: #8fdcff; }
.maze .mz-shine { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .6; animation: mz-shine 2.4s ease-in-out infinite alternate; }
@keyframes mz-shine { from { opacity: .25; } to { opacity: .75; } }
.mz-cloth { transform-origin: -2.6px -1.8px; animation: mz-wave .7s ease-in-out infinite alternate; }
@keyframes mz-wave { from { transform: skewY(-8deg); } to { transform: skewY(8deg) scaleX(.9); } }
.mz-pad-ring, .mz-portal-ring { animation: mz-ring 1.4s ease-out infinite; }
@keyframes mz-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
.mz-flag { animation: mz-pop .5s cubic-bezier(.2, 1.6, .4, 1) var(--c, 0ms) backwards; }
@keyframes mz-pop { from { transform: scale(0) rotate(-30deg); } }
.mz-lock { animation: mz-lock 1.8s ease-in-out infinite; }
@keyframes mz-lock { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-12deg); } 86% { transform: rotate(10deg); } 94% { transform: rotate(-6deg); } }
.mz-key-in { animation: mz-key 1.5s linear infinite; }
@keyframes mz-key { 0%, 100% { transform: translateY(0) scaleX(1); } 25% { transform: translateY(-1.3px) scaleX(.12); } 50% { transform: translateY(0) scaleX(-1); } 75% { transform: translateY(-1.3px) scaleX(.12); } }
.mz-twinkle { transform-box: fill-box; transform-origin: center; animation: mz-twinkle 1.1s ease-in-out infinite; }
@keyframes mz-twinkle { 0%, 100% { transform: scale(0) rotate(-40deg); } 50% { transform: scale(1) rotate(20deg); } }
.mz-swirl { animation: mz-spin 1.3s linear infinite; }
@keyframes mz-spin { to { transform: rotate(-360deg); } }
/* kuglice: klize od polja do polja, za njima kasni „trag“ */
.mz-ball { transition: transform .2s linear; }
.mz-tr { fill: #111118; opacity: .2; transition: transform .45s linear; }
.mz-tr.t2 { opacity: .12; transition-duration: .75s; }
.mz-p.fin .mz-tr { opacity: 0; }
.mz-p.fin .mz-ball-in { animation: mz-fin .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes mz-fin { 0% { transform: scale(1); } 30% { transform: translateY(-5px) scale(1.5, 1.6); } 60% { transform: scale(1.15, .85); } }
.mz-medal { animation: mz-medal .5s cubic-bezier(.2, 1.6, .4, 1) .3s backwards; }
@keyframes mz-medal { from { transform: scale(0) rotate(-90deg); } 60% { transform: scale(1.5) rotate(10deg); } }
.mz-fw > circle:not(.mz-fw-ring) { animation: mz-fw .95s cubic-bezier(.1, .7, .3, 1) both; }
@keyframes mz-fw { 0% { transform: rotate(var(--a)) translateX(1px); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotate(var(--a)) translateX(var(--d)) scale(.3); opacity: 0; } }
.mz-fw-ring { animation: mz-fw-ring .6s ease-out both; }
@keyframes mz-fw-ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.mz-fw-star { animation: mz-fw-star .75s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes mz-fw-star { 0% { transform: scale(0) rotate(-50deg); opacity: 1; } 40% { transform: scale(1.25) rotate(8deg); opacity: 1; } 75% { opacity: 1; } 100% { transform: scale(1.5) rotate(14deg); opacity: 0; } }
/* telefon: moja kuglica (oči gledaju kuda ide), trag, udar u zid */
.mz-me { transition: transform .11s linear; }
.mz-me.warp { transition: none; }
.mz-me.warp .mz-me-in { animation: mz-pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.mz-pup { transition: transform .12s; }
.mz-me[data-dir="left"] .mz-pup { transform: translateX(-.55px); }
.mz-me[data-dir="right"] .mz-pup { transform: translateX(.55px); }
.mz-me[data-dir="up"] .mz-pup { transform: translateY(-.7px); }
.mz-me[data-dir="down"] .mz-pup { transform: translateY(.7px); }
.mz-me-in.bump-left { animation: mz-bump-l .3s ease-out; }
.mz-me-in.bump-right { animation: mz-bump-r .3s ease-out; }
.mz-me-in.bump-up { animation: mz-bump-u .3s ease-out; }
.mz-me-in.bump-down { animation: mz-bump-d .3s ease-out; }
@keyframes mz-bump-l { 30% { transform: translateX(-1.5px) scale(.7, 1.24); } 65% { transform: translateX(.6px) scale(1.1, .94); } }
@keyframes mz-bump-r { 30% { transform: translateX(1.5px) scale(.7, 1.24); } 65% { transform: translateX(-.6px) scale(1.1, .94); } }
@keyframes mz-bump-u { 30% { transform: translateY(-1.5px) scale(1.24, .7); } 65% { transform: translateY(.6px) scale(.94, 1.1); } }
@keyframes mz-bump-d { 30% { transform: translateY(1.5px) scale(1.24, .7); } 65% { transform: translateY(-.6px) scale(.94, 1.1); } }
.mz-trail { fill: none; stroke: #ff2d2d; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .1 2.7; opacity: .75; }
.maze.phone .mz-p .mz-ball-in { transform: scale(.74); opacity: .8; }
.maze-phone { background: #0f2f96; }
/* samostalni crteži (telefon, lista stiglih) */
.maze-art { display: block; height: 1.25em; width: auto; overflow: visible; }
.maze-huge { position: relative; display: grid; place-items: center; }
.maze-huge > .maze-art { height: 1.9em; }
.fa-cloth { transform-origin: 60px 72px; animation: mz-wave .7s ease-in-out infinite alternate; }
.maze-place { position: absolute; right: -.5em; bottom: -.15em; font-size: .55em; animation: pts-pop .5s cubic-bezier(.2, 1.6, .4, 1) calc(var(--c, 0ms) + 350ms) backwards; }
.md-disc { transform-origin: 100px 30px; animation: md-swing 1.3s ease-in-out infinite alternate; }
@keyframes md-swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.md-twinkle { transform-box: fill-box; transform-origin: center; animation: mz-twinkle 1.2s ease-in-out infinite; }
.ba-tear { animation: b-sweat 1.1s ease-in infinite; }
.maze-fin .medal-art { display: inline-block; height: 1.5em; vertical-align: -.4em; }
.host .maze-fin { animation: slide .25s cubic-bezier(.2, .8, .2, 1), bounce-soft .5s cubic-bezier(.2, .8, .2, 1) .2s; }
.maze-fin .md-disc, .maze-fin .md-twinkle { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .maze *, .maze-art * { animation: none !important; transition: none !important; }
  .mz-fw { display: none; }
}

/* ---------- 🎯 Zaustavi u okviru: Kvadratić juri stazom, koči, prašina, „SAVRŠENO!“ ---------- */
.stop-track { background: #2b3050; border: 5px solid #111118; box-shadow: 7px 7px 0 #111118; }
.stop-track::before { content: ''; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 4px dashed #ffffff4d; transform: translateY(-2px); pointer-events: none; }
.stop-window { background: #3dff9a66; border: 3px dashed #ffe600; border-radius: 10px; overflow: hidden; }
.stop-core { background: repeating-radial-gradient(circle at 50% 50%, #ff2d2d 0 7px, #fff 7px 14px); border-left: 3px solid #111118; border-right: 3px solid #111118; opacity: .92; }
.stop-marker { background: none; box-shadow: none; border-radius: 0; z-index: 2; }
.puck { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -37px 0 0 -33px; display: block; }
.stopper-phone .puck { width: 70px; height: 70px; margin: -39px 0 0 -35px; }
.puck-flip, .puck-body { display: block; width: 100%; height: 100%; }
.puck-art { display: block; width: 100%; height: 100%; overflow: visible; }
.stop-marker[data-dir="-1"] .puck-flip { transform: scaleX(-1); }
.stop-marker.flips .puck-flip { animation: stop-flip 2s step-end infinite; }
@keyframes stop-flip { 0% { transform: scaleX(1); } 50%, 100% { transform: scaleX(-1); } }
.puck-body { transform-origin: 50% 90%; transform: skewX(-9deg); animation: puck-run .28s ease-in-out infinite alternate; }
@keyframes puck-run { from { transform: skewX(-9deg) translateY(0); } to { transform: skewX(-12deg) translateY(-4px) scale(1.03, .97); } }
.puck-speed { position: absolute; right: 88%; top: 20%; width: 70%; height: 56%; }
.puck-speed i { position: absolute; right: 0; height: 7px; border-radius: 4px; background: #fff; border: 2px solid #111118; transform-origin: right; animation: puck-speed .36s linear infinite; }
.puck-speed i:nth-child(1) { top: 0; width: 70%; }
.puck-speed i:nth-child(2) { top: 42%; width: 100%; animation-delay: -.12s; }
.puck-speed i:nth-child(3) { top: 84%; width: 60%; animation-delay: -.24s; }
@keyframes puck-speed { 0% { transform: translateX(20%) scaleX(.2); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(-50%) scaleX(1); opacity: 0; } }
/* stao: tragovi kočenja + prašina, pa raspoloženje */
.stop-marker.stopped .puck-speed { display: none; }
.stop-marker.stopped .puck-body { transform: none; animation: puck-brake .5s cubic-bezier(.2, 1.6, .4, 1) var(--c, 0ms) backwards; }
@keyframes puck-brake { 0% { transform: translateX(-16px) skewX(-26deg) scaleX(1.15); } 55% { transform: translateX(7px) skewX(14deg) scale(.92, 1.08); } }
.puck-skid { position: absolute; right: 55%; bottom: 3%; width: 170%; height: 20%; z-index: -1; }
.puck-skid i { position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px; background: #111118; opacity: .8; transform-origin: right; animation: puck-skid .3s ease-out var(--c, 0ms) backwards; }
.puck-skid i:nth-child(1) { top: 0; }
.puck-skid i:nth-child(2) { bottom: 0; left: 12%; }
@keyframes puck-skid { from { transform: scaleX(0); } }
.puck-dust i { position: absolute; right: 78%; bottom: -2%; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #111118; opacity: 0; animation: puck-dust .75s ease-out var(--c, 0ms) backwards; }
.puck-dust i:nth-child(1) { --dx: -46px; --dy: -8px; }
.puck-dust i:nth-child(2) { --dx: -30px; --dy: -34px; animation-delay: calc(var(--c, 0ms) + 70ms); }
.puck-dust i:nth-child(3) { --dx: -66px; --dy: -24px; animation-delay: calc(var(--c, 0ms) + 130ms); }
@keyframes puck-dust { 0% { opacity: 1; transform: scale(.3); } 60% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.3); } }
.stop-marker.stopped.perfect .puck { animation: puck-jump .6s cubic-bezier(.3, 1.4, .5, 1) calc(var(--c, 0ms) + 350ms) 3 backwards; }
.stop-marker.stopped.hit .puck { animation: puck-jump .6s cubic-bezier(.3, 1.4, .5, 1) calc(var(--c, 0ms) + 350ms) 1 backwards; }
@keyframes puck-jump { 35% { transform: translateY(-26px) scale(.94, 1.1) rotate(-6deg); } 70% { transform: translateY(0) scale(1.1, .88); } }
.stop-marker.stopped.miss .puck { transform-origin: 50% 95%; animation: puck-wobble 1.3s ease-in-out calc(var(--c, 0ms) + 450ms) infinite; }
@keyframes puck-wobble { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg) translateX(5px); } }
.stop-marker .c2-sparks { font-size: 110px; }
.stop-fx { position: absolute; left: 50%; top: -64px; width: 0; height: 0; font-size: 92px; z-index: 5; }
.stopper-phone .stop-fx { top: -84px; font-size: 80px; }
/* TV: rezultat — čiode padaju jedna po jedna, svaka sa svojim Kvadratićem */
.stop-result .stop-track { margin: 140px auto 26px; }
.stop-result .stop-pin { top: calc(-56px - var(--row, 0) * 34px); z-index: 3; }
.host .stop-result .stop-pin { animation: stop-drop .55s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 260ms + 300ms); }
@keyframes stop-drop { 0% { transform: translate(-50%, -330px); opacity: 0; } 20% { opacity: 1; } 70% { transform: translate(-50%, 7px) scale(1.06, .9); } }
.stop-result .stop-pin span { width: 46px; height: 46px; display: grid; place-items: center; font-size: 27px; background: #fff; border: 4px solid #111118; border-radius: 50%; box-shadow: 3px 3px 0 #111118; filter: none; }
.stop-result .stop-pin.hit span { background: #b9ffd9; }
.stop-result .stop-pin.core span { background: #ffe600; filter: none; }
.stop-result .stop-pin.miss span { background: #ffd0d0; }
.stop-result .stop-pin::after { width: 5px; height: calc(22px + var(--row, 0) * 34px); background: #111118; opacity: 1; margin-top: 0; }
.stop-result .stop-pin.hit::after { background: #111118; }
.pin-puck { position: absolute; left: 50%; top: calc(74px + var(--row, 0) * 34px); width: 48px; height: 48px; margin-left: -24px; }
.stop-pin.core .pin-puck { animation: puck-jump .6s cubic-bezier(.3, 1.4, .5, 1) calc(var(--i, 0) * 260ms + 900ms) 3 backwards; }
.stop-pin.miss .pin-puck { transform-origin: 50% 95%; animation: puck-wobble 1.3s ease-in-out calc(var(--i, 0) * 260ms + 900ms) infinite; }
.pin-dust { position: absolute; left: 50%; top: calc(112px + var(--row, 0) * 34px); width: 64px; height: 16px; margin-left: -32px; border-radius: 50%; border: 4px solid #fff; opacity: 0; animation: pin-dust .5s ease-out calc(var(--i, 0) * 260ms + 620ms) backwards; }
@keyframes pin-dust { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
/* telefon: rezultat runde */
.stop-huge .puck-art { width: 1.5em; height: 1.5em; margin: 0 auto; }
.stop-res.perfect .stop-huge .puck-art { animation: puck-jump .6s cubic-bezier(.3, 1.4, .5, 1) calc(var(--c, 0ms) + 500ms) 3 backwards; }
.stop-res.miss .stop-huge .puck-art { transform-origin: 50% 95%; animation: puck-wobble 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .puck, .puck-body, .puck-speed i, .puck-skid i, .puck-dust i, .pin-puck, .pin-dust, .stop-huge .puck-art, .host .stop-result .stop-pin { animation: none !important; }
  .puck-speed, .puck-dust { display: none; }
}

/* ---------- ✊ Kamen, papir, makaze: crtane šake ---------- */
.hand-art { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; overflow: visible; }
.crown-art { display: block; width: 1em; height: .75em; overflow: visible; }
.host .rps-title { animation: none; letter-spacing: 0; display: flex; justify-content: center; gap: .22em; margin: 14px 0; }
.rps-title .hand-art { filter: drop-shadow(6px 6px 0 #111118); animation: rps-bob .9s ease-in-out infinite; }
.rps-title .hand-art:nth-child(2) { animation-delay: -.2s; }
.rps-title .hand-art:nth-child(3) { animation-delay: -.4s; }
.rps-title .hand-art:nth-child(4) { animation-delay: -.6s; }
.rps-title .hand-art:nth-child(5) { animation-delay: -.8s; }
@keyframes rps-bob { 0%, 100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-18px) rotate(7deg); } }
/* izvikivanje: pesnice pumpaju u taktu (—ms = jedan takt), reč iskače iz praska */
.rps-beat { position: relative; z-index: 0; }
.rps-beat > span { position: relative; -webkit-text-stroke: .05em #111118; paint-order: stroke fill; text-shadow: .05em .05em 0 #111118; }
.rps-beat .c2-burst { font-size: 1.7em; }
.rps-fists { gap: 26px; margin-top: 26px; }
.rps-fists span { position: relative; }
.rps-fists b { display: block; font-size: 104px; line-height: 1; transform-origin: 50% 100%; filter: drop-shadow(5px 5px 0 #111118); animation: rps-pump var(--ms, 550ms) linear infinite; }
@keyframes rps-pump { 0% { transform: translateY(0) scale(1.14, .84); } 16% { transform: translateY(-8px) scale(.98, 1.03); } 55% { transform: translateY(-52px) rotate(-15deg); animation-timing-function: cubic-bezier(.6, 0, 1, .7); } 100% { transform: translateY(0) scale(1.14, .84); } }
.rps-fists span::after { content: ''; width: 84px; height: 14px; margin-top: 2px; border-radius: 50%; background: #111118; opacity: .3; animation: rps-shadow var(--ms, 550ms) linear infinite; }
@keyframes rps-shadow { 0%, 100% { transform: scale(1.15); opacity: .4; } 55% { transform: scale(.6); opacity: .15; } }
/* otkrivanje: sudar najčešćeg duela, pa karte „padnu“, pobednici dobiju krunu */
.rps-reveal { position: relative; --lead: 150ms; }
.rps-reveal.clash { --lead: 1350ms; }
.host .rps-reveal.clash { animation: rps-quake .4s linear .43s; }
@keyframes rps-quake { 10% { transform: translate(-12px, 7px); } 25% { transform: translate(11px, -8px); } 40% { transform: translate(-8px, -5px); } 55% { transform: translate(7px, 6px); } 70% { transform: translate(-4px, 2px); } 85% { transform: translate(2px, -2px); } }
.rps-clash { position: absolute; left: 50%; top: 46%; width: 0; height: 0; z-index: 6; pointer-events: none; font-size: clamp(130px, calc(21 * var(--vw1, 1vw)), 300px); animation: rc-out .25s ease-in 1.4s forwards; }
.rps-clash::before { content: ''; position: fixed; inset: -50vmax; background: #fff; opacity: 0; animation: rc-flash .28s ease-out .43s; }
@keyframes rc-flash { from { opacity: .8; } to { opacity: 0; } }
@keyframes rc-out { to { opacity: 0; visibility: hidden; } }
.rc-hand { position: absolute; top: -.5em; width: 1em; height: 1em; filter: drop-shadow(8px 8px 0 #111118); }
.rc-hand .hand-art { display: block; }
.rc-win { left: -1.1em; z-index: 2; animation: rc-win 1.5s both; }
.rc-lose { left: .1em; animation: rc-lose 1.5s both; }
@keyframes rc-win { 0% { transform: translateX(-4em) rotate(-40deg); animation-timing-function: cubic-bezier(.2, .8, .2, 1); } 20% { transform: translateX(-.35em) rotate(-25deg) scale(1.05); } 27% { transform: translateX(-.55em) rotate(-34deg) scale(1.08); animation-timing-function: cubic-bezier(.7, 0, 1, .5); } 31% { transform: translateX(.5em) rotate(22deg) scale(1.2); } 42% { transform: translateX(.35em) rotate(10deg) scale(1.1); } 55%, 100% { transform: translateX(.5em) rotate(0deg) scale(1.15); } }
@keyframes rc-lose { 0% { transform: translateX(4em) rotate(40deg); animation-timing-function: cubic-bezier(.2, .8, .2, 1); } 20%, 29% { transform: translateX(.3em) rotate(18deg); } 31% { transform: translateX(.45em) rotate(24deg) scale(.75, 1.2); } 50% { transform: translate(1.6em, -1em) rotate(200deg) scale(.9); opacity: 1; } 100% { transform: translate(4.5em, 1.6em) rotate(640deg) scale(.6); opacity: 0; } }
.rc-fx { position: absolute; left: .15em; top: 0; font-size: .62em; z-index: 3; }
.rps-reveal .rps-count { animation: rise .3s cubic-bezier(.2, .8, .2, 1) var(--lead) backwards; }
.rps-count .hand-art { font-size: 44px; }
.rps-reveal .rps-grid { margin-top: 34px; }
.rps-reveal .rps-card { position: relative; animation: rps-slam .45s cubic-bezier(.3, 1.3, .5, 1) backwards; animation-delay: calc(var(--lead) + var(--i, 0) * 110ms); }
@keyframes rps-slam { 0% { transform: scale(2.4) rotate(-10deg); opacity: 0; } 60% { transform: scale(.94) rotate(1deg); opacity: 1; } }
.rps-card .rps-hand { font-size: 88px; }
.rps-card.win { background: #ffe600; border-color: #111118; box-shadow: 7px 7px 0 #111118; }
.rps-reveal.clash .rps-card:not(.win) .rps-hand { opacity: .6; transform: rotate(9deg) scale(.88); }
.host .rps-card.win .rps-hand { animation: bounce-soft .6s cubic-bezier(.2, .8, .2, 1) calc(var(--lead) + 900ms) 2; }
.host .rps-card .pts { animation: pts-pop .5s cubic-bezier(.2, 1.6, .4, 1) calc(var(--lead) + var(--i, 0) * 110ms + 650ms) backwards; }
.rps-crown { position: absolute; left: 50%; top: -.42em; margin-left: -.5em; z-index: 2; font-size: 66px; transform: rotate(-10deg); animation: rps-crown .5s cubic-bezier(.2, 1.6, .4, 1) calc(var(--c, 0ms) + var(--lead, 0ms) + var(--i, 0) * 110ms + 480ms) backwards; }
@keyframes rps-crown { from { transform: translateY(-90px) rotate(-70deg) scale(.3); opacity: 0; } }
.rps-reveal > p.muted { animation: fade-in .4s calc(var(--lead) + 600ms) backwards; }
.rps-reveal > p.muted .hand-art { font-size: 1.5em; }
/* telefon */
.rps-btn span .hand-art { display: block; }
.rps-huge { position: relative; z-index: 0; display: grid; place-items: center; margin: .75em 0 .8em; }
.rps-huge .hand-art { font-size: 2.1em; }
.rps-huge .c2-burst { font-size: 1.55em; }
.rps-picked .rps-huge .hand-art { animation: rps-slam .4s cubic-bezier(.3, 1.3, .5, 1) var(--c, 0ms) backwards; }
.rps-chant-phone { background: transparent; }
.rps-pump .hand-art { transform-origin: 50% 100%; animation: rps-pump-1 .5s cubic-bezier(.3, 1.4, .5, 1) var(--since, 0ms) backwards; }
@keyframes rps-pump-1 { 0% { transform: translateY(-64px) rotate(-16deg); } 45% { transform: translateY(0) scale(1.16, .82); } 70% { transform: translateY(-8px) scale(.97, 1.04); } }
.rps-chant-phone .rps-beat { animation-delay: var(--since, 0ms); }
.rps-mine { margin: 6px 0 0; font-size: 18px; font-weight: 800; }
.rps-mine .hand-art { font-size: 36px; }
.rps-res .rps-crown { top: -.3em; font-size: 1.2em; --lead: 0ms; --i: 0; }
@media (prefers-reduced-motion: reduce) {
  .rps-clash { display: none; }
  .rps-title .hand-art, .rps-fists b, .rps-fists span::after, .rps-reveal .rps-card, .rps-crown, .rps-pump .hand-art, .host .rps-reveal.clash { animation: none; }
}

/* ---------- 🔨 Krtica: likovi iskaču iz rupa, čekić, „TRAS!“ ---------- */
.mole-art { display: block; width: 100%; height: 100%; overflow: visible; }
.hammer-art { display: block; width: 1em; height: 1em; overflow: visible; }
.mole-phone { position: relative; background: #2fb457 radial-gradient(#ffffff2b 3px, transparent 3.6px) 0 0 / 18px 18px; }
.mole-phone.frenzy { background: #e09a00 radial-gradient(#ffffff40 3px, transparent 3.6px) 0 0 / 18px 18px; }
.mole-phone.shake { animation: quake .4s linear var(--shake, 0ms) backwards; }
.mole-phone > * { position: relative; }
.mole-head b.bump { display: inline-block; animation: bounce-soft .3s cubic-bezier(.2, .8, .2, 1); }
.mole-hole, .mole-hole.gold, .mole-hole.bomb, .mole-hole.clover { position: relative; padding: 0; background: none; border-radius: 18px; overflow: visible; }
.mole-hole::before { content: ''; position: absolute; left: 7%; right: 7%; bottom: 7%; height: 36%; border-radius: 50%; background: #24150c; border: 4px solid #111118; box-shadow: 0 0 0 6px #9a6a3f, 0 0 0 10px #111118; }
.mole-hole.gold::before { box-shadow: 0 0 0 6px #ffd000, 0 0 0 10px #111118; }
.mole-hole.bomb::before { box-shadow: 0 0 0 6px #ff2d2d, 0 0 0 10px #111118; }
.mole-hole.clover::before { box-shadow: 0 0 0 6px #3dff9a, 0 0 0 10px #111118; }
.mole-hole span { transform: none; animation: none; }
.mole-hole .hole-clip { position: absolute; left: 7%; right: 7%; top: -12%; bottom: 7%; display: block; overflow: hidden; border-radius: 0 0 50% 50% / 0 0 17% 17%; pointer-events: none; }
.mole-hole .mole-in { position: absolute; left: 7%; right: 7%; bottom: 0; aspect-ratio: 1; display: block; }
.mole-hole .mole-in.up { animation: mole-up .24s cubic-bezier(.2, 1.5, .4, 1) var(--c, 0ms) backwards; }
@keyframes mole-up { from { transform: translateY(105%); } }
.mole-hole .mole-in.duck { animation: mole-duck .16s ease-in forwards; }
@keyframes mole-duck { to { transform: translateY(105%); } }
.mole-hole .mole-in.hit { transform-origin: 50% 100%; animation: mole-squash .5s cubic-bezier(.2, 1.6, .4, 1) var(--c, 0ms) backwards, mole-sink .6s ease-in calc(var(--c, 0ms) + .5s) forwards; }
@keyframes mole-squash { 0% { transform: scale(1.3, .42); } 50% { transform: scale(.92, 1.08); } }
@keyframes mole-sink { to { transform: translateY(50%); } }
.mo-stars { transform-origin: 100px 60px; animation: mo-stars .5s ease-in-out infinite alternate; }
@keyframes mo-stars { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.mo-spark { transform-origin: 150px 20px; animation: mo-spark .16s steps(2, jump-none) infinite alternate; }
@keyframes mo-spark { from { transform: scale(1) rotate(0); } to { transform: scale(.6) rotate(36deg); } }
.mo-twinkle { transform-box: fill-box; transform-origin: center; animation: mz-twinkle 1s ease-in-out infinite; }
.mo-twinkle.t2 { animation-delay: -.5s; }
/* preko rupe: čekić, prasak, zemlja, poeni */
.mole-hole .hole-fx { position: absolute; inset: 0; z-index: 3; display: block; pointer-events: none; font-style: normal; }
.hole-fx .c2-burst { top: 46%; }
.hole-fx .c2-burst b { font-size: .44em; }
.hole-fx .c2-sparks { top: 50%; font-size: 1.3em; }
.hole-fx .c2-sparks.dirt { top: 70%; }
.hole-fx .c2-sparks.dirt i { background: #9a6a3f; width: .15em; height: .15em; animation-duration: .45s; }
.hole-fx .c2-sparks.dirt i:nth-child(odd) { background: #6f4526; }
.hole-fx .c2-sparks.debris i { background: #111118; border-radius: 2px; border-color: #ff2d2d; }
.mole-hole .hole-hammer { position: absolute; right: -14%; top: -30%; display: block; font-size: 1.6em; transform-origin: 82% 92%; animation: hammer-swing .36s cubic-bezier(.3, 0, .4, 1) var(--c, 0ms) both; }
@keyframes hammer-swing { 0% { transform: rotate(46deg); opacity: 1; } 32% { transform: rotate(-42deg); } 46% { transform: rotate(-30deg); opacity: 1; } 100% { transform: rotate(24deg) translateY(-12px); opacity: 0; } }
.hole-pts { position: absolute; left: 50%; top: 4%; font-weight: 900; font-size: .64em; line-height: 1; color: #3dff9a; -webkit-text-stroke: .14em #111118; paint-order: stroke fill; opacity: 0; animation: hole-pts .85s ease-out var(--c, 0ms) both; }
.hole-pts.minus { color: #ff2d2d; }
@keyframes hole-pts { 0% { transform: translate(-50%, 20%) scale(.3); opacity: 0; } 22% { transform: translate(-50%, -40%) scale(1.35); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -150%); opacity: 0; } }
/* ✨ zlatna groznica: šljokice */
.mole-glitter { display: none; position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mole-phone > .mole-glitter { position: absolute; }
.mole-phone.frenzy .mole-glitter, .mole-glitter-wrap .mole-glitter { display: block; }
.mole-glitter i { position: absolute; width: 24px; height: 24px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: mole-glit 1s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -137ms); }
.mole-glitter i:nth-child(odd) { background: #ffe600; width: 34px; height: 34px; }
@keyframes mole-glit { 0%, 100% { transform: scale(0) rotate(0); } 50% { transform: scale(1) rotate(45deg); } }
.mole-phone.frenzy .mole-frenzy-phone { position: relative; z-index: 2; box-shadow: 4px 4px 0 #111118; }
/* TV: travnata tabla, likovi iskaču u svoje vreme (CSS), udareni se spljošte */
.mole-tv { background: #2fb457 radial-gradient(#ffffff2b 3px, transparent 3.6px) 0 0 / 18px 18px; border: 5px solid #111118; border-radius: 24px; box-shadow: 8px 8px 0 #111118; padding: 26px 18px 16px; }
.mole-defs { position: absolute; }
.mole-gold-bg { position: absolute; inset: 0; border-radius: 18px; background: #e09a00 radial-gradient(#ffffff40 3px, transparent 3.6px) 0 0 / 18px 18px; visibility: hidden; }
.mole-glitter-wrap { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.mole-grid.tv, .mole-time.tv { position: relative; }
.mole-grid.tv .mole-hole { overflow: visible; }
.mole-grid.tv .pop, .mole-grid.tv .pop.gold, .mole-grid.tv .pop.bomb, .mole-grid.tv .pop.clover { display: block; background: none; border-radius: 0; animation-name: mole-tv-vis; transform-origin: 50% 100%; transition: transform .12s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes mole-tv-vis { 0%, 100% { visibility: visible; } }
.mole-grid.tv .pop-in { position: absolute; left: 7%; right: 7%; bottom: 0; aspect-ratio: 1; display: block; animation: mole-tv-rise linear both; animation-delay: inherit; animation-duration: inherit; }
@keyframes mole-tv-rise { 0% { transform: translateY(105%); } 12% { transform: translateY(-6%); } 20%, 86% { transform: translateY(0); } 100% { transform: translateY(105%); } }
.mole-grid.tv .pop::before { content: ''; position: absolute; left: 50%; bottom: 12%; width: 11px; height: 11px; border-radius: 50%; background: #9a6a3f; box-shadow: -36px 6px 0 #9a6a3f, 32px 2px 0 1px #9a6a3f, -14px -10px 0 -1px #6f4526, 18px -12px 0 #6f4526; opacity: 0; animation: mole-tv-dirt linear; animation-delay: inherit; animation-duration: inherit; }
@keyframes mole-tv-dirt { 0% { opacity: 1; transform: translateY(12px) scale(.3); } 22% { opacity: 1; transform: translateY(-50px) scale(1.5); } 36%, 100% { opacity: 0; transform: translateY(-24px) scale(1.8); } }
.mole-ico { display: inline-block; width: 1.7em; height: 1.7em; vertical-align: middle; font-style: normal; }
.host .mole-tally { display: inline-block; animation: bounce-soft .35s cubic-bezier(.2, .8, .2, 1); }
.mole-huge { position: relative; z-index: 0; display: grid; place-items: center; }
.mole-huge .mole-art { width: 1.9em; height: 1.9em; }
.mole-huge .hammer-art { font-size: 1.8em; }
.mole-huge .c2-burst { font-size: 1.5em; }
.mole-huge.ok .hammer-art { transform-origin: 82% 92%; animation: mole-hammer-idle .7s ease-in-out infinite alternate; }
@keyframes mole-hammer-idle { from { transform: rotate(14deg); } to { transform: rotate(-22deg); } }
@media (prefers-reduced-motion: reduce) {
  .mole-in, .mole-art *, .hole-hammer, .mole-glitter i, .mole-phone.shake, .mole-grid.tv .pop::before { animation: none !important; }
  .hole-hammer { display: none !important; }
}

/* ---------- 🔥 Šibice: drvo sa konturom, plamen koji treperi, zamena u luku, dim ---------- */
.stick { position: relative; width: 34px; }
.stick-in { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.stick-body { width: 17px; box-sizing: border-box; border: 3.5px solid #111118; border-top: 0; border-radius: 0 0 6px 6px; background: repeating-linear-gradient(176deg, #0000 0 11px, #b8823a55 11px 13px), linear-gradient(90deg, #f7e2b0 0 45%, #e3bd78 45% 100%); }
.stick-head { box-sizing: border-box; width: 27px; height: 36px; margin-bottom: -7px; border: 3.5px solid #111118; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: radial-gradient(circle at 34% 28%, #ffb3a8 0 15%, #ff2d2d 16% 100%); }
.stick-flame { width: 36px; height: 50px; margin-bottom: -13px; z-index: 2; display: none; transform-origin: 50% 92%; }
.stick.lit .stick-flame { display: block; }
.flame-art { display: block; width: 100%; height: 100%; overflow: visible; }
.flame-art path { transform-origin: 50px 132px; }
.fl-out { animation: flame-a .31s ease-in-out infinite alternate; }
.fl-mid { animation: flame-b .23s ease-in-out infinite alternate; }
.fl-in { animation: flame-a .17s ease-in-out infinite alternate; }
@keyframes flame-a { from { transform: scale(1, 1) skewX(-4deg); } to { transform: scale(.92, 1.1) skewX(5deg); } }
@keyframes flame-b { from { transform: scale(.94, 1.06) skewX(6deg); } to { transform: scale(1.05, .93) skewX(-5deg); } }
.stick-col:nth-child(even) .fl-out { animation-delay: -.17s; }
.stick-col:nth-child(3n) .fl-mid { animation-delay: -.11s; }
.stick-smoke { display: none; position: relative; width: 0; height: 0; z-index: 2; }
.stick-smoke i { position: absolute; left: -9px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; background: #dfe5f0; border: 3px solid #111118; opacity: 0; animation: stick-smoke 1.8s ease-out infinite; }
.stick-smoke i:nth-child(2) { animation-delay: .6s; }
.stick-smoke i:nth-child(3) { animation-delay: 1.2s; }
@keyframes stick-smoke { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 15% { opacity: .95; } 100% { opacity: 0; transform: translate(14px, -84px) scale(1.5); } }
/* TV: biranje — tajne šibice */
.stick.hidden .stick-body { background: repeating-linear-gradient(176deg, #b44dff 0 10px, #7a2fd6 10px 20px); }
.stick.hidden .stick-head { background: #b44dff; }
.stick.hidden .stick-head::after { content: '?'; display: grid; place-items: center; height: 100%; color: #ffe600; font-weight: 900; font-size: 18px; }
.host .stick.hidden { transform-origin: 50% 100%; animation: stick-sway 1.5s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -.37s); }
@keyframes stick-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.host .stick-col.decided .stick.hidden { animation: stick-hop .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes stick-hop { 30% { transform: translateY(-34px) scale(.94, 1.08); } 65% { transform: translateY(0) scale(1.1, .9); } }
/* TV: otkrivanje — šibice „izrastu“ redom, zamene lete u luku */
.straws-reveal { --gap: 16px; --colw: min(150px, calc((min(1160px, calc(92 * var(--vw1, 1vw))) - (var(--n, 4) - 1) * var(--gap)) / var(--n, 4))); }
.straws-reveal .sticks-row { flex-wrap: nowrap; gap: var(--gap); margin-top: 64px; }
.straws-reveal .stick-col { position: relative; flex: none; width: var(--colw); }
.straws-reveal .stick-col > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.straws-reveal .stick-col small.muted { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.straws-reveal .stick { clip-path: inset(-160px -200vw 0 -200vw); }
.host .straws-reveal .stick[data-key="s0"] .stick-in { animation: stick-rise .7s cubic-bezier(.3, 1.3, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 180ms + 250ms); }
@keyframes stick-rise { from { transform: translateY(125%); } }
.straws-reveal .stick-col.swapping .stick-body { background: repeating-linear-gradient(176deg, #0000 0 11px, #b8823a55 11px 13px), linear-gradient(90deg, #f7e2b0 0 45%, #e3bd78 45% 100%); }
.straws-reveal .stick.fly-a, .straws-reveal .stick.fly-b { clip-path: none; z-index: 4; --shift: calc(var(--dx, 0) * (var(--colw) + var(--gap))); }
.host .straws-reveal .stick.fly-a { animation: stick-arc-a .85s cubic-bezier(.4, 0, .3, 1) backwards; }
.host .straws-reveal .stick.fly-b { animation: stick-arc-b .85s cubic-bezier(.4, 0, .3, 1) backwards; }
@keyframes stick-arc-a { 0% { transform: translateX(var(--shift)); } 50% { transform: translate(calc(var(--shift) * .5), -120px) rotate(calc(var(--dx, 0) * -14deg)); } 85% { transform: translateY(6px) scale(1.05, .95); } }
@keyframes stick-arc-b { 0% { transform: translateX(var(--shift)); } 50% { transform: translate(calc(var(--shift) * .5), 60px) rotate(calc(var(--dx, 0) * 14deg)) scale(.9); } 85% { transform: translateY(-6px); } }
/* kraj: pobednik bukne, gubitnik dogori */
.stick-col.long .stick-body { box-shadow: none; background: repeating-linear-gradient(176deg, #0000 0 11px, #b8823a55 11px 13px), linear-gradient(90deg, #fff0b8 0 45%, #ffd23f 45% 100%); }
.stick-col.long .stick-flame, .my-stick.long .stick-flame { animation: flame-big .6s cubic-bezier(.2, 1.6, .4, 1) calc(var(--c, 0ms) + .3s) both; }
@keyframes flame-big { from { transform: scale(1); } to { transform: scale(2.3); } }
.stick-col.short { opacity: 1; }
.stick-col.short .stick-flame, .my-stick.short .stick-flame { animation: flame-out .5s ease-in calc(var(--c, 0ms) + .3s) both; }
@keyframes flame-out { 60% { transform: scale(1.3, .7); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
.stick-col.short .stick-smoke, .my-stick.short .stick-smoke { display: block; }
.stick-col.short .stick-smoke i, .my-stick.short .stick-smoke i { animation-delay: calc(var(--c, 0ms) + .7s); }
.stick-col.short .stick-smoke i:nth-child(2), .my-stick.short .stick-smoke i:nth-child(2) { animation-delay: calc(var(--c, 0ms) + 1.3s); }
.stick-col.short .stick-smoke i:nth-child(3), .my-stick.short .stick-smoke i:nth-child(3) { animation-delay: calc(var(--c, 0ms) + 1.9s); }
.stick-col.short .stick-head, .my-stick.short .stick-head { background: radial-gradient(circle at 34% 28%, #6a7088 0 15%, #2b2f45 16% 100%); transition: background .2s .6s; }
.stick-col.short .stick-body, .my-stick.short .stick-body { background: linear-gradient(#2b2f45 0 18px, #0000 46px), repeating-linear-gradient(176deg, #0000 0 11px, #b8823a55 11px 13px), linear-gradient(90deg, #f7e2b0 0 45%, #e3bd78 45% 100%); }
.host .straws-reveal.done .stick-col.long > span { background: #ffe600; color: #111118; border: 3px solid #111118; border-radius: 9px; padding: 0 7px; box-shadow: 3px 3px 0 #111118; animation: bounce-soft .5s cubic-bezier(.2, .8, .2, 1) .5s; }
.host .straws-reveal .stick-col .pts { font-size: 30px; animation: pts-pop .5s cubic-bezier(.2, 1.6, .4, 1) calc(var(--i, 0) * 90ms + 500ms) backwards; }
/* 🃏 džoker: karta se okreće */
.stick-joker { position: absolute; left: 50%; top: -74px; width: 40px; height: 54px; margin-left: 12px; z-index: 5; animation: joker-in .6s cubic-bezier(.2, 1.6, .4, 1) backwards, joker-flip 2.4s ease-in-out .6s infinite; }
.joker-art { display: block; width: 100%; height: 100%; }
@keyframes joker-in { from { transform: translateY(-50px) rotateY(540deg) scale(.3); opacity: 0; } }
@keyframes joker-flip { 0%, 60%, 100% { transform: rotateY(0) rotate(8deg); } 80% { transform: rotateY(180deg) rotate(8deg); } }
.straws-note.joker { display: flex; align-items: center; gap: 8px; text-align: left; }
.note-joker { flex: none; width: 34px; height: 46px; animation: joker-in .6s cubic-bezier(.2, 1.6, .4, 1) var(--t, 0ms) backwards, joker-flip 2.4s ease-in-out infinite; }
/* telefon */
.my-stick { position: relative; z-index: 0; }
.my-stick .stick-flame { width: 40px; height: 56px; }
.my-stick.fuzzy .stick-body { filter: blur(2.5px); }
.my-stick.keep .stick { transform-origin: 50% 100%; animation: stick-hop .5s cubic-bezier(.3, 1.4, .5, 1) var(--ft, 0ms) backwards; }
.my-stick.swap .stick { transform-origin: 50% 100%; animation: stick-toss .7s cubic-bezier(.3, 1.2, .5, 1) var(--ft, 0ms) backwards; }
@keyframes stick-toss { 0% { transform: none; } 40% { transform: translate(60px, -60px) rotate(200deg) scale(.8); } 100% { transform: rotate(360deg); } }
.straws-res .my-stick { margin-top: 70px; }
.straws-res .my-stick .c2-burst { font-size: 130px; top: 10%; }
.straws-phone .throw-target:active, .straws-phone .btn:active { background: #ffe600; }
@media (prefers-reduced-motion: reduce) {
  .flame-art path, .stick-smoke i, .stick, .stick-in, .stick-flame, .stick-joker, .note-joker { animation: none !important; }
}
/* ===== /C2 ===== */

/* ===== ANIMACIJE C1 ===== */
/* Crteži i animacije za: Šampanjac, Rodeo, Pecanje, Vruć krompir, Muzičke stolice, Vodeni pištolj, Penali.
   Crteži su u js/art/<igra>.js (SVG), zajednički efekti u js/art/c1fx.js. Samo transform/opacity.
   Beskonačne petlje imaju animation-delay sa --t, jednokratne sa --ft (telefon se crta iznova — vidi player.js). */

/* ---------- zajedničko: „strip“ crtež ---------- */
.c1-art { display: block; height: 1em; width: auto; overflow: visible; flex: none; }
.c1-art .k { stroke: #111118; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.c1-art .kl { fill: none; stroke: #111118; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.c1-art .thin { stroke-width: 3.5; }
.c1-art .sh { fill: rgba(17, 17, 24, .16); }
.c1-art .hi { fill: rgba(255, 255, 255, .7); }
.c1-art .w { fill: #fff; stroke: #111118; stroke-width: 4.5; }
.c1-art text { font-family: inherit; }
/* TV kasni sa znakom za reakciju (.tv-late u style.css): isto toliko kasne i crteži koji bi ga odali. */
body.host:not(.board-body) .stage { --late: .7s; }

/* Telefon: visina slobodnog dela ekrana / 100 (u online sobi je gore tabla) — po njoj se meri veličina crteža. */
body.player .tap-zone { --c1h: var(--dvh1, 1dvh); }
body.player.online .tap-zone { --c1h: calc((100 * var(--dvh1, 1dvh) - var(--board-top, 0px)) / 100); }

/* Strip-zvezda sa rečju (PUF! BUM! GOOOL!) */
.c1-burst { position: absolute; left: 50%; top: 0; width: 3.5em; height: 2.3em; margin: -1.15em 0 0 -1.75em; display: grid; place-items: center; font-size: 40px; line-height: 1; pointer-events: none; z-index: 4; rotate: -8deg; animation: c1-burst .55s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.c1-burst svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.c1-burst polygon { fill: var(--bc, #ffe600); stroke: #111118; stroke-width: 8; stroke-linejoin: round; }
.c1-burst b { position: relative; font-weight: 900; color: var(--bt, #ff2d2d); -webkit-text-stroke: .12em #111118; paint-order: stroke fill; text-shadow: .07em .07em 0 #111118; letter-spacing: .02em; white-space: nowrap; text-transform: uppercase; font-style: normal; }
@keyframes c1-burst { 0% { transform: scale(.1) rotate(-50deg); opacity: 0; } 55% { transform: scale(1.3) rotate(6deg); opacity: 1; } 80% { transform: scale(.94); } }
/* Čestice iz jedne tačke: lete pravo (--a, --d) */
.c1-bits { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.c1-bits i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #111118; opacity: 0; animation: c1-bit .9s cubic-bezier(.12, .7, .3, 1); }
@keyframes c1-bit { 0% { opacity: 1; transform: rotate(var(--a)) translateX(8px) rotate(0deg) scale(var(--s)); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(calc(var(--d) * var(--u, 1px))) rotate(var(--r)) scale(calc(var(--s) * .45)); } }
/* …ili u luku, sa „gravitacijom“ (klasa .arc): vodoravno ravnomerno, uspravno gore pa dole */
.c1-bits.arc i { animation: c1-arc-x 1s linear, c1-arc-y 1s linear; }
@keyframes c1-arc-x { 0% { translate: 0 0; } 100% { translate: calc(var(--x) * var(--u, 1px)) 0; } }
@keyframes c1-arc-y { 0% { opacity: 1; transform: translateY(0) scale(var(--s)); animation-timing-function: cubic-bezier(.2, .7, .5, 1); } 45% { opacity: 1; transform: translateY(calc(var(--y) * var(--u, 1px))) scale(var(--s)); animation-timing-function: cubic-bezier(.5, 0, .9, .5); } 100% { opacity: 0; transform: translateY(calc(var(--y) * var(--u, 1px) * -.5)) scale(calc(var(--s) * .6)); } }
/* Beli blesak preko scene */
.c1-flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 40; animation: c1-flash .45s ease-out backwards; }
@keyframes c1-flash { 0% { opacity: 0; } 2% { opacity: .85; } 100% { opacity: 0; } }
@keyframes c1-quake { 10% { transform: translate(-9px, 6px); } 25% { transform: translate(8px, -7px); } 40% { transform: translate(-6px, -4px); } 55% { transform: translate(6px, 4px); } 70% { transform: translate(-4px, 2px); } 85% { transform: translate(2px, -2px); } }
@keyframes c1-pop-in { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } }
@keyframes c1-sweat { 0% { transform: translateY(-4px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(24px); opacity: 0; } }
@keyframes c1-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
/* Trzaj na svaki mućak/tap: četiri ista keyframes-a pod različitim imenima — promena imena ponovo pokreće animaciju na istom elementu. */
.c1-jolt { transform-origin: 50% 100%; position: relative; }
.c1-jolt.j0 { animation: c1-j0 .32s ease-out; } .c1-jolt.j1 { animation: c1-j1 .32s ease-out; }
.c1-jolt.j2 { animation: c1-j2 .32s ease-out; } .c1-jolt.j3 { animation: c1-j3 .32s ease-out; }
@keyframes c1-j0 { 0% { transform: rotate(-9deg) scale(.94, 1.06); } 35% { transform: rotate(8deg) translateY(-8px); } 70% { transform: rotate(-3deg); } }
@keyframes c1-j1 { 0% { transform: rotate(9deg) scale(.94, 1.06); } 35% { transform: rotate(-8deg) translateY(-8px); } 70% { transform: rotate(3deg); } }
@keyframes c1-j2 { 0% { transform: rotate(-9deg) scale(.94, 1.06); } 35% { transform: rotate(8deg) translateY(-8px); } 70% { transform: rotate(-3deg); } }
@keyframes c1-j3 { 0% { transform: rotate(9deg) scale(.94, 1.06); } 35% { transform: rotate(-8deg) translateY(-8px); } 70% { transform: rotate(3deg); } }
body.board-body .c1-burst { font-size: 30px; }
body.board-body .c1-bits { --u: .7px; }
body.player .c1-burst { font-size: 30px; }
@media (prefers-reduced-motion: reduce) {
  .c1-art *, .c1-art { animation: none !important; }
  .c1-jolt { animation: none !important; }
  .c1-burst, .c1-bits i, .c1-flash { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* ---------- 🍾 Šampanjac: boce sa licem, pena, čep ---------- */
.fizz-row { gap: 6px 26px; margin-top: 30px; }
body.board-body .fizz-row { margin-top: 16px; }
.fizz-row.many, .fizz-row.crowd { gap: 6px 8px; flex-wrap: nowrap; }
.fizz-row.many .fizz-bottle, .fizz-row.crowd .fizz-bottle { min-width: 0; flex: 0 1 132px; }
.fizz-row.crowd .fizz-bottle { flex-basis: 112px; }
.host .fizz-row.many .fizz-bottle b, .host .fizz-row.crowd .fizz-bottle b { font-size: 16px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fizz-live .fizz-row.many .fz-stand { font-size: clamp(170px, calc(30 * var(--vh1, 1vh)), 215px); }
.fizz-live .fizz-row.crowd .fz-stand { font-size: clamp(150px, calc(26 * var(--vh1, 1vh)), 185px); }
body.board-body .fizz-live .fizz-row.many .fz-stand, body.board-body .fizz-live .fizz-row.crowd .fz-stand { font-size: 112px; }
.fz-stand { position: relative; font-size: clamp(200px, calc(39 * var(--vh1, 1vh)), 290px); line-height: 1; }
.fizz-live .twist-badge ~ .fizz-row .fz-stand { font-size: clamp(190px, calc(33 * var(--vh1, 1vh)), 250px); }
body.board-body .fz-stand, body.board-body .fizz-live .twist-badge ~ .fizz-row .fz-stand { font-size: 138px; }
.fz-stand::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -8px; height: 20px; border-radius: 50%; background: #11111855; z-index: -1; }
.fizz-live.red .fz-jolt { animation: none; }
.fz-bottle .fz-glass { fill: #1f9d55; }
.fz-bottle .fz-foil { fill: #ffd000; }
.fz-bottle .fz-level { transform: translateY(calc((1 - var(--p, 0)) * 264px)); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.fz-bottle .fz-bubs circle { fill: #fff; opacity: 0; }
.fz-bottle.nervous .fz-bubs circle, .fz-bottle.panic .fz-bubs circle { animation: fz-bub 1.5s linear calc(var(--t, 0ms) - var(--o, 0s)) infinite; }
.fz-bottle.panic .fz-bubs circle { animation-duration: .7s; }
.fz-bubs circle:nth-child(2) { --o: .4s; } .fz-bubs circle:nth-child(3) { --o: .9s; } .fz-bubs circle:nth-child(4) { --o: .2s; } .fz-bubs circle:nth-child(5) { --o: 1.1s; } .fz-bubs circle:nth-child(6) { --o: .65s; }
@keyframes fz-bub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .95; } 100% { transform: translateY(calc(var(--p, .5) * -250px)); opacity: 0; } }
.fz-bottle .fz-face { display: none; fill: #111118; }
.fz-bottle:not(.nervous):not(.panic):not(.happy):not(.sad) .f-calm, .fz-bottle.nervous .f-nervous, .fz-bottle.panic .f-panic, .fz-bottle.happy .f-happy, .fz-bottle.sad .f-sad { display: block; }
.fz-bottle .f-calm circle { transform-box: fill-box; transform-origin: center; animation: c1-blink 3.4s calc(var(--t, 0ms) - var(--i, 0) * .7s) infinite; }
.fz-bottle .fz-cheek { fill: #ff8f8f; stroke: #111118; stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: fz-cheek .3s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes fz-cheek { to { transform: scale(1.18); } }
.fz-bottle .fz-sweat { fill: #7fd4ff; stroke: #111118; stroke-width: 3.5; stroke-linejoin: round; animation: c1-sweat .9s ease-in var(--t, 0ms) infinite; }
.fz-bottle .f-panic .fz-sweat:last-child { animation-delay: calc(var(--t, 0ms) - .4s); }
.fz-bottle .fz-paper, .fz-bottle .fz-drip { display: none; }
.fz-bottle.blind .fz-paper { display: block; }
.fz-bottle.blind .fz-face, .fz-bottle.blind .fz-label { display: none !important; }
.fz-bottle .fz-cork { transform-box: fill-box; transform-origin: 50% 100%; }
.fz-bottle.nervous .fz-cork { animation: fz-cork-wob .5s ease-in-out var(--t, 0ms) infinite; }
.fz-bottle.panic .fz-cork { animation: fz-cork-wob .16s linear var(--t, 0ms) infinite; }
@keyframes fz-cork-wob { 25% { transform: translateY(-5px) rotate(-7deg); } 75% { transform: translateY(-2px) rotate(7deg); } }

/* PUF! — čep leti, pena šikne (svaka boca u svoje vreme: --pd) */
.fizz-bottle { --pd: calc(var(--i, 0) * 170ms + 60ms); }
.fizz-live.boom .fizz-row { animation: c1-quake .45s linear 60ms; }
.popped .fz-jolt { animation: fz-pop .7s cubic-bezier(.2, 1.6, .4, 1) var(--pd) backwards; }
@keyframes fz-pop { 0% { transform: scale(1.12, .86); } 25% { transform: scale(.86, 1.16) translateY(-10px); } 60% { transform: scale(1.05, .96); } }
.popped .fz-bottle .fz-cork { animation: fz-cork-fly .95s cubic-bezier(.15, .6, .4, 1) var(--pd) both; }
@keyframes fz-cork-fly { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(110px, -760px) rotate(700deg); opacity: 0; } }
.popped .fz-bottle .fz-drip { display: block; transform-box: fill-box; transform-origin: 50% 0; animation: c1-pop-in .4s cubic-bezier(.2, 1.6, .4, 1) calc(var(--pd) + .12s) backwards; }
.fz-spray { position: absolute; left: 50%; top: .15em; width: 0; height: 0; font-size: inherit; }
.fz-spray em { position: absolute; left: -.075em; bottom: 0; width: .15em; height: .55em; background: #fff; border: 4px solid #111118; border-radius: .08em .08em 0 0; transform-origin: 50% 100%; animation: fz-geyser .85s ease-out var(--pd) both; }
.fz-spray em::before { content: ''; position: absolute; left: -.09em; top: -.1em; width: .33em; height: .22em; background: #fff; border: 4px solid #111118; border-radius: 50%; box-sizing: border-box; }
.fz-spray.big em { height: .8em; }
@keyframes fz-geyser { 0% { transform: scaleY(0); opacity: 1; } 22% { transform: scaleY(1.1); opacity: 1; } 60% { transform: scaleY(.85); opacity: 1; } 100% { transform: scaleY(.25); opacity: 0; } }
.fz-spray .c1-bits { left: 0; top: 0; }
.fz-spray .c1-bits i { animation-delay: calc(var(--pd) + var(--k) * 22ms); animation-duration: 1.1s; }
.fz-word { left: -8%; top: 30%; animation-delay: calc(var(--pd) + 80ms); }
.fizz-bottle.win .fz-stand { animation: fz-dance .45s ease-in-out 1.1s infinite alternate; transform-origin: 50% 100%; }
@keyframes fz-dance { from { transform: rotate(-4deg); } to { transform: rotate(4deg) translateY(-6px); } }
/* Ko nije stigao: boca se izduva („pššš“) i klone */
.flat .fz-bottle .fz-level { animation: fz-drain 1.3s ease-in .35s both; }
@keyframes fz-drain { from { transform: translateY(calc((1 - var(--p, 0)) * 264px)); } to { transform: translateY(calc((1 - var(--p, 0) * .3) * 264px)); } }
.flat .fz-jolt { animation: fz-droop .9s cubic-bezier(.3, 1.4, .5, 1) .35s both; }
@keyframes fz-droop { from { transform: none; } to { transform: rotate(7deg) scale(1.04, .95); } }
.fz-puff { position: absolute; left: 50%; top: .08em; width: 0; height: 0; }
.fz-puff i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #e8f4ff; border: 3px solid #111118; opacity: 0; animation: fz-puff 1s ease-out calc(.4s + var(--ft, 0ms)) 2 backwards; }
.fz-puff i:nth-child(2) { animation-delay: calc(.6s + var(--ft, 0ms)); --dx: 22px; } .fz-puff i:nth-child(3) { animation-delay: calc(.8s + var(--ft, 0ms)); --dx: -18px; }
@keyframes fz-puff { 0% { transform: translate(0, 0) scale(.3); opacity: .95; } 100% { transform: translate(var(--dx, 6px), -70px) scale(1.5); opacity: 0; } }

/* Telefon: boca koja se trese na svaki mućak + manometar */
.fz-me { display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.fizz-phone .fz-me { font-size: clamp(100px, calc(31 * var(--c1h, 1dvh)), 250px); line-height: 1; margin-top: 12px; }
.fizz-phone .fz-jolt { animation-duration: .26s; }
.fz-dial { display: grid; justify-items: center; gap: 2px; font-size: 16px; }
.fz-gauge { height: clamp(64px, calc(12 * var(--c1h, 1dvh)), 96px); }
.fz-gauge .fz-needle { transform-origin: 100px 105px; transform: rotate(calc(-90deg + var(--p, 0) * 180deg)); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.fz-gauge .fz-q { display: none; }
.fz-gauge.blind .fz-q { display: block; } .fz-gauge.blind .fz-needle { display: none; }
.fz-dial .pts-big { margin: 0; font-variant-numeric: tabular-nums; }
body.player .fizz-done .huge.fz-me { position: relative; font-size: clamp(100px, calc(30 * var(--c1h, 1dvh)), 230px); --pd: calc(var(--ft, 0ms) + .25s); filter: none; margin-top: 40px; }
.fizz-done .fz-word { left: 78%; top: 10%; }
@media (prefers-reduced-motion: reduce) { .fz-jolt, .fizz-row, .fz-stand, .fz-spray em, .fz-puff i { animation: none !important; } .popped .fz-bottle .fz-cork { opacity: 0; } }

/* ---------- 🥔 Vruć krompir: krompir sa licem (opušten → znoji se → usijan → ugljenisan) ---------- */
.potato-row { gap: 10px 18px; margin-top: 26px; align-items: flex-end; }
.pt-stand { position: relative; font-size: 170px; line-height: 1; --h: 0; }
.potato-row.many .pt-stand { font-size: 116px; }
.host .potato-row.many .potato-bar { width: 118px; } .host .potato-row.many .potato-cell { min-width: 118px; }
body.board-body .pt-stand { font-size: 112px; } body.board-body .potato-row.many .pt-stand { font-size: 82px; }
.potato-cell.dead { opacity: 1; }
.potato-cell.dead > b, .potato-cell.dead > .potato-bar { opacity: .55; }
.pt-stand::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: -5px; height: 14px; border-radius: 50%; background: #11111855; z-index: -1; }
.pt { animation: pt-shiver .13s linear var(--t, 0ms) infinite; }
@keyframes pt-shiver { 25% { transform: translate(calc(var(--h) * -5px), calc(var(--h) * 2px)) rotate(calc(var(--h) * -3deg)); } 75% { transform: translate(calc(var(--h) * 5px), calc(var(--h) * -2px)) rotate(calc(var(--h) * 3deg)); } }
.pt .pt-body { fill: #dba463; }
.pt .pt-heat { fill: #ff3b1f; opacity: calc(var(--h) * .92); }
.pt .pt-frost { fill: #8fd0ff; opacity: 0; transition: opacity .3s; }
.pt .pt-char { fill: #2a2422; opacity: 0; transition: opacity .25s; }
.pt .pt-spots { fill: rgba(17, 17, 24, .2); }
.pt .pt-crack { fill: none; stroke: #ff8a00; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; display: none; }
.pt .pt-face { display: none; fill: #111118; }
.pt-stand:not(.warm):not(.hot):not(.burn):not(.dead):not(.cool) .f-chill, .pt-stand.warm .f-warm, .pt-stand.hot .f-hot, .pt-stand.burn .f-burn, .pt-stand.dead .f-dead, .pt-stand.cool .f-cool { display: block; }
.pt .pt-sweat { fill: #7fd4ff; stroke: #111118; stroke-width: 4; stroke-linejoin: round; animation: c1-sweat .8s ease-in var(--t, 0ms) infinite; }
.pt .pt-sweat:nth-of-type(2n) { animation-delay: calc(var(--t, 0ms) - .3s); } .pt .pt-sweat:nth-of-type(3n) { animation-delay: calc(var(--t, 0ms) - .55s); }
.pt .f-dead .lite { stroke: #fff; }
.pt .pt-steam, .pt .pt-smoke, .pt .pt-flames, .pt .pt-ice { display: none; }
.pt .pt-steam path { stroke: #fff; opacity: 0; animation: pt-steam 1.1s ease-out var(--t, 0ms) infinite; }
.pt .pt-steam path:nth-child(2) { animation-delay: calc(var(--t, 0ms) - .4s); } .pt .pt-steam path:nth-child(3) { animation-delay: calc(var(--t, 0ms) - .75s); }
@keyframes pt-steam { 0% { transform: translateY(14px); opacity: 0; } 30% { opacity: .95; } 100% { transform: translateY(-22px); opacity: 0; } }
.pt-stand.hot .pt-steam, .pt-stand.burn .pt-steam { display: block; }
.pt-stand.burn .pt-flames { display: block; }
.pt .pt-flames path { transform-box: fill-box; transform-origin: 50% 100%; animation: pt-flame .22s ease-in-out var(--t, 0ms) infinite alternate; }
.pt .pt-flames path:nth-child(2) { animation-duration: .17s; } .pt .pt-flames path:nth-child(3) { animation-duration: .27s; }
@keyframes pt-flame { from { transform: scale(.85, .8) skewX(-6deg); } to { transform: scale(1.1, 1.25) skewX(7deg); } }
.pt .pt-arm { transform-box: fill-box; }
.pt .pt-arm.l { transform-origin: 100% 100%; } .pt .pt-arm.r { transform-origin: 0 100%; }
.pt-stand.hot .pt-arm, .pt-stand.burn .pt-arm { animation: pt-fan .2s ease-in-out var(--t, 0ms) infinite alternate; }
.pt-stand.burn .pt-arm { animation-duration: .11s; }
@keyframes pt-fan { from { transform: rotate(-22deg); } to { transform: rotate(26deg); } }
.pt-stand.hot .pt-arm.r, .pt-stand.burn .pt-arm.r { animation-direction: alternate-reverse; }
.pt-stand:not(.warm):not(.hot):not(.burn):not(.dead) .pt { animation: pt-chill 1.8s ease-in-out calc(var(--t, 0ms)) infinite; transform-origin: 50% 100%; }
@keyframes pt-chill { 50% { transform: scale(1.03, .97); } }
/* Izgoreo: ugljen, pukotine, dim, „TSSS!“ */
.pt-stand.dead .pt { animation: none; }
.pt-stand.dead .pt-char { opacity: 1; }
.pt-stand.dead .pt-heat { opacity: 0; }
.pt-stand.dead .pt-crack, .pt-stand.dead .pt-smoke { display: block; }
.pt-stand.dead .pt-sprout { display: none; }
.pt-stand.dead .pt-arm { transform: rotate(60deg); } .pt-stand.dead .pt-arm.r { transform: rotate(-60deg); }
.pt .pt-crack { animation: pt-glow .9s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes pt-glow { from { opacity: .45; } to { opacity: 1; } }
.pt .pt-smoke circle { opacity: 0; animation: pt-smoke 1.6s ease-out var(--t, 0ms) infinite; }
.pt .pt-smoke circle:nth-child(2) { animation-delay: calc(var(--t, 0ms) - .5s); } .pt .pt-smoke circle:nth-child(3) { animation-delay: calc(var(--t, 0ms) - 1s); }
@keyframes pt-smoke { 0% { transform: translateY(16px) scale(.5); opacity: 0; } 25% { opacity: .9; } 100% { transform: translate(10px, -46px) scale(1.5); opacity: 0; } }
.potato-live.live .potato-cell.dead .pt-stand { animation: pt-die .55s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pt-die { 0% { transform: scale(1.35, .7); } 30% { transform: scale(.8, 1.25) translateY(-14px) rotate(-8deg); } 60% { transform: scale(1.08, .94) rotate(5deg); } }
.pt-word { left: 78%; top: 6%; --bc: #fff; --bt: #111118; font-size: 30px; }
.potato-live .pt-word { animation: c1-burst .55s cubic-bezier(.2, 1.6, .4, 1) backwards, sq-fade .4s ease-in 2.2s forwards; }
.pt-word b { -webkit-text-stroke: 0; text-shadow: none; }
.potato-live:not(.live) .pt-word { display: none; }
body.board-body .pt-word { font-size: 22px; }
/* Pobednik: naočare i đuskanje */
.pt-stand.cool .pt { animation: pt-cool .5s ease-in-out var(--t, 0ms) infinite alternate; transform-origin: 50% 100%; }
@keyframes pt-cool { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(6deg) translateY(-8px); } }
.pt-stand.cool .pt-arm { animation: pt-fan .5s ease-in-out var(--t, 0ms) infinite alternate; }
.pt-hero { position: relative; display: inline-block; margin-top: 18px; }
.pt-hero .pt-stand { font-size: 180px; animation: boom .6s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.pt-hero > span { position: absolute; right: -58px; bottom: 6px; font-size: 72px; line-height: 1; animation: c1-pop-in .5s cubic-bezier(.2, 1.6, .4, 1) .35s backwards; rotate: 10deg; }
body.board-body .pt-hero .pt-stand { font-size: 120px; } body.board-body .pt-hero > span { font-size: 44px; right: -36px; }
.potato-live:not(.live) .potato-row .pt-stand { font-size: 104px; } .potato-live:not(.live) .potato-row.many .pt-stand { font-size: 84px; }
.potato-live:not(.live) .potato-row { margin-top: 8px; gap: 8px 10px; }
.potato-live:not(.live) .potato-bar { display: none; }
.host .potato-live:not(.live) .potato-row.many .potato-cell { min-width: 100px; } .host .potato-live:not(.live) .potato-row.many .potato-cell b { font-size: 16px; }
body.board-body .potato-live:not(.live) .potato-row .pt-stand { font-size: 64px; }
/* ❄️ Hladni talas / 🛑 stani */
.potato-live.cold .pt-stand:not(.dead) .pt-ice, .potato-phone.cold .pt-ice { display: block; }
.potato-live.cold .pt-stand:not(.dead) .pt-frost, .potato-phone.cold .pt-frost { opacity: .5; }
.pt .pt-ice path { fill: none; stroke: #d6f1ff; stroke-width: 5; stroke-linecap: round; }
.pt .pt-ice { animation: pt-twinkle 1s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes pt-twinkle { from { opacity: .5; } to { opacity: 1; } }
.potato-live.red .pt-stand:not(.dead) .pt, .potato-phone.red .pt { animation: none; }
/* Toplomer umesto obične trake */
.potato-bar { position: relative; overflow: visible; border-radius: 10px; margin-left: 14px; }
.potato-bar i { border-radius: 6px; max-width: 100%; }
.potato-bar::before { content: ''; position: absolute; left: -16px; top: 50%; width: 22px; height: 22px; margin-top: -14px; border-radius: 50%; background: #ff2d2d; border: 3px solid #111118; }
.potato-bar.big::before { width: 30px; height: 30px; margin-top: -18px; left: -20px; }
/* Telefon */
.pt-me { font-size: clamp(84px, calc(26 * var(--c1h, 1dvh)), 210px); margin: calc(4 * var(--c1h, 1dvh)) 0 6px; }
.pt-huge { filter: none; }
.pt-huge .pt-stand { font-size: clamp(96px, calc(26 * var(--c1h, 1dvh)), 200px); margin-top: 26px; }
.potato-burnt .pt-word { animation-delay: calc(var(--ft, 0ms) + .2s); }
@media (prefers-reduced-motion: reduce) { .potato-live.live .potato-cell.dead .pt-stand, .pt-hero .pt-stand { animation: none; } }

/* ---------- 🎣 Pecanje: nacrtano jezerce (talasi, plovak, senka ribe, pljusak, udice) ---------- */
body.player #app { --late: var(--ft, 0ms); }
.fish-pond { width: min(640px, 88%); max-width: none; height: clamp(190px, calc(34 * var(--vh1, 1vh)), 250px); background: #8fd0ff; --w1: #3d95f2; --w2: #1b6fd1; --w3: #1558b8; font-size: 100px; line-height: 1; overflow: hidden; }
body.board-body .fish-pond { width: 440px; height: 170px; font-size: 76px; }
.fish-pond.phone { width: min(330px, calc(86 * var(--vw1, 1vw))); height: clamp(110px, calc(27 * var(--c1h, 1dvh)), 210px); font-size: 84px; }
.fish-pond.murky { background: #b9c2a4; --w1: #7d7c4a; --w2: #5b5a36; --w3: #45441f; }
.fp-sky { position: absolute; inset: 0 0 60% 0; }
.fp-sun { position: absolute; left: 5%; top: 10%; font-size: .5em; }
.fp-sun .fp-rays { transform-origin: 40px 40px; animation: fp-turn 14s linear var(--t, 0ms) infinite; }
@keyframes fp-turn { to { transform: rotate(360deg); } }
.fp-cloud { position: absolute; right: 12%; top: 12%; font-size: .34em; animation: fp-drift 9s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes fp-drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
.murky .fp-sun { opacity: .45; }
.fp-w { position: absolute; left: 0; width: 1200px; bottom: 0; background: linear-gradient(var(--c), var(--c)) no-repeat 0 29px; animation: fp-wave 1.9s linear var(--t, 0ms) infinite; }
.fp-w svg { display: block; width: 1200px; height: 32px; }
.fp-w .fp-fill { fill: var(--c); }
.fp-w .fp-line { fill: none; stroke: #111118; stroke-width: 3.5; }
.fp-w.w1 { top: calc(40% - 24px); --c: var(--w1); animation-duration: 2.6s; }
.fp-w.w2 { top: calc(40% - 8px); --c: var(--w2); animation-direction: reverse; }
.fp-w.w3 { top: 70%; --c: var(--w3); animation-duration: 1.5s; }
.fp-w.w3 .fp-line, .fp-w.w2 .fp-line { stroke: #ffffff66; stroke-width: 3; }
@keyframes fp-wave { to { transform: translateX(-60px); } }
.fp-reeds { position: absolute; right: 3%; top: calc(40% - .86em); font-size: .9em; transform-origin: 50% 100%; animation: fp-sway 2.8s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes fp-sway { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
/* Plovak: ljulja se (fp-bob), lažni trzaj (fp-nibN), ugriz = potone (fp-plunge) */
.fp-float { position: absolute; left: 50%; top: 40%; width: 0; height: 0; }
.fp-bobber { position: absolute; left: -.214em; top: -.6em; }
.fp-bobber .fp-string { stroke-width: 2.5; }
.fp-bob { display: block; animation: fp-bob 2.2s ease-in-out var(--t, 0ms) infinite; }
@keyframes fp-bob { 0%, 100% { transform: translateY(-.03em) rotate(-3deg); } 50% { transform: translateY(.05em) rotate(3deg); } }
.fp-nib { display: block; animation: 1s ease-in-out both; }
@keyframes fp-nib0 { 0%, 100% { transform: none; } 18% { transform: translateY(.16em); } 36% { transform: translateY(-.04em); } 54% { transform: translateY(.12em); } 75% { transform: translateY(-.02em); } }
@keyframes fp-nib1 { 0%, 100% { transform: none; } 25% { transform: translateY(.18em) rotate(4deg); } 55% { transform: translateY(-.05em); } }
@keyframes fp-nib2 { 0%, 100% { transform: none; } 12% { transform: translate(.03em, .08em) rotate(-12deg); } 26% { transform: translate(-.03em, .04em) rotate(11deg); } 40% { transform: translate(.02em, .09em) rotate(-9deg); } 56% { transform: translate(-.02em, .03em) rotate(8deg); } 72% { transform: translateY(.06em) rotate(-5deg); } 88% { transform: rotate(3deg); } }
.fish-pond.st-bite .fp-nib, .fish-pond.st-reel .fp-nib { animation: fp-plunge .42s cubic-bezier(.5, -.3, .8, 1) var(--late, 0s) forwards; }
@keyframes fp-plunge { 0% { transform: none; } 22% { transform: translateY(-.1em) scale(.95, 1.08); } 100% { transform: translateY(.95em) scale(.9); } }
.fp-rings { position: absolute; left: 50%; top: calc(40% + 4px); width: 0; height: 0; }
.fp-rings i { position: absolute; left: -.5em; top: -.11em; width: 1em; height: .22em; border: 3px solid #fff; border-radius: 50%; box-sizing: border-box; opacity: 0; animation: fp-ring 2.6s ease-out var(--t, 0ms) infinite; }
.fp-rings i:nth-child(2) { animation-delay: calc(var(--t, 0ms) - 1.3s); }
@keyframes fp-ring { 0% { transform: scale(.25); opacity: .85; } 100% { transform: scale(1.7); opacity: 0; } }
.fish-pond.st-bite .fp-rings i, .fish-pond.st-reel .fp-rings i { animation: fp-ring 2.6s ease-out var(--t, 0ms) infinite, fp-ring2 .6s ease-out var(--late, 0s) infinite; }
.fish-pond.st-bite .fp-rings i:nth-child(2), .fish-pond.st-reel .fp-rings i:nth-child(2) { animation-delay: calc(var(--t, 0ms) - 1.3s), calc(var(--late, 0s) + .3s); }
@keyframes fp-ring2 { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.fp-shadow { position: absolute; left: 0; top: 52%; width: 100%; font-size: .44em; pointer-events: none; opacity: 0; animation: fp-swim 1.7s ease-in-out both; }
.fp-shadow.rev { scale: -1 1; }
.fp-shadow svg { fill: #0a1f52; opacity: .45; animation: fp-tail .3s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes fp-swim { 0% { transform: translateX(-35%); opacity: 1; } 45% { transform: translateX(34%); } 60% { transform: translateX(38%); } 100% { transform: translateX(105%); opacity: 1; } }
@keyframes fp-tail { from { transform: skewY(-5deg); } to { transform: skewY(5deg); } }
.fp-shadow.flee { animation: fp-flee 1.3s cubic-bezier(.5, 0, .8, .4) .3s both; }
@keyframes fp-flee { 0% { transform: translateX(38%); opacity: 1; } 100% { transform: translateX(110%) translateY(60%); opacity: 1; } }
.murky .fp-shadow { display: none; }
/* Pljusak */
.fp-splash { position: absolute; left: 50%; top: 40%; width: 0; height: 0; font-size: .7em; }
.fp-splash > svg { position: absolute; left: -.857em; top: -.92em; transform-origin: 50% 100%; animation: fp-crown .55s cubic-bezier(.2, .8, .4, 1) var(--late, 0s) both; }
@keyframes fp-crown { 0% { transform: scale(.3, 0); opacity: 1; } 40% { transform: scale(1.05, 1.25); opacity: 1; } 100% { transform: scale(1.5, 0); opacity: 0; } }
.fp-drops { left: 0; top: 0; }
.fp-splash .fp-drops i { background: #d6f1ff; animation-delay: calc(var(--late, 0s) + var(--k) * 18ms); animation-duration: .8s; left: -7px; top: -7px; width: 14px; height: 14px; }
.fish-pond.st-reel .fp-splash > svg { animation: fp-thrash .36s ease-in-out var(--t, 0ms) infinite alternate; opacity: 1; }
@keyframes fp-thrash { from { transform: scale(.8, .6) rotate(-6deg); } to { transform: scale(1.1, 1.15) rotate(6deg); } }
.fish-pond.st-reel .fp-splash .fp-drops i { animation-iteration-count: infinite; animation-delay: calc(var(--t, 0ms) + var(--k) * 70ms); }
/* Prazna udica (ko trgne prerano) i ulov */
.fp-lost { position: absolute; top: 0; width: 0; height: 0; font-size: .62em; transform-origin: 50% 0; animation: fp-swing 2.6s ease-in-out var(--t, 0ms) infinite alternate; }
.fp-lost .fp-hook { position: absolute; left: -.25em; top: -8px; }
.fp-lost b { position: absolute; left: -.6em; width: 1.2em; top: 1.02em; font-size: .42em; text-align: center; font-weight: 400; }
.fp-lost.fresh { animation: fp-hook-up 1s cubic-bezier(.2, 1.3, .4, 1) backwards, fp-swing 2.6s ease-in-out 1s infinite alternate; }
@keyframes fp-hook-up { 0% { transform: translateY(2.6em); } 40% { transform: translateY(-.25em) rotate(10deg); } 55% { transform: rotate(-14deg); } 70% { transform: rotate(10deg); } 85% { transform: rotate(-6deg); } 100% { transform: none; } }
@keyframes fp-swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.fp-lost.sad { font-size: .9em; animation-delay: .9s, 1.9s; }
.fp-catch { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform-origin: 50% 0; animation: fp-swing 1.6s ease-in-out 1.1s infinite alternate; }
.fp-catch::before { content: ''; position: absolute; left: -1.5px; top: 0; width: 3px; height: .16em; background: #111118; }
.fp-fish { position: absolute; left: -.6em; width: 1.2em; top: .12em; text-align: center; font-size: 1em; animation: fp-leap 1s cubic-bezier(.2, .9, .3, 1) .15s both; }
@keyframes fp-leap { 0% { transform: translateY(2.4em) rotate(-70deg) scale(.5); } 50% { transform: translateY(-.3em) rotate(25deg) scale(1.2); } 72% { transform: translateY(.1em) rotate(-12deg) scale(.95); } 100% { transform: none; } }
.fish-pond.st-catch .fp-splash > svg, .fish-pond.st-catch .fp-splash .fp-drops i { animation-delay: .2s; }
.fish-live.result .fish-pond { margin-bottom: 4px; height: clamp(160px, calc(27 * var(--vh1, 1vh)), 200px); font-size: 84px; }
body.board-body .fish-live.result .fish-pond { height: 128px; font-size: 62px; }
.fish-live.result.caught .fish-pond { animation: c1-quake .4s linear .3s; }
/* Telefon */
.fish-reel .fish-pond { margin-bottom: 14px; }
.fish-prize { position: relative; filter: none; }
.fp-dangle { display: inline-grid; justify-items: center; transform-origin: 50% 0; animation: fp-swing 1.4s ease-in-out var(--t, 0ms) infinite alternate; }
.fp-dangle i { width: 4px; height: .5em; background: #fff; border-radius: 2px; }
.fp-dangle b { font-weight: 400; margin-top: -.08em; }
.fish-prize .fp-drops { top: 70%; } .fish-prize .fp-drops i { animation-delay: calc(var(--ft, 0ms) + .25s + var(--k) * 18ms); }
.fp-empty { display: inline-block; font-size: 1.7em; transform-origin: 50% 0; animation: fp-hook-up 1s cubic-bezier(.2, 1.3, .4, 1) var(--ft, 0ms) backwards, fp-swing 2.4s ease-in-out calc(var(--t, 0ms) - 1s) infinite alternate; }
.fish-phone.bite .tap-word { position: relative; animation: word-punch .22s cubic-bezier(.2, 1.6, .4, 1) var(--ft, 0ms); }
.tap-word .fp-pow i { background: #ffe600; animation-delay: var(--ft, 0ms); animation-duration: .6s; }
@media (prefers-reduced-motion: reduce) {
  .fp-w, .fp-bob, .fp-cloud, .fp-reeds, .fp-lost, .fp-catch, .fp-dangle, .fp-empty, .fp-rings i, .fp-sun .fp-rays { animation: none !important; }
  .fish-pond.st-bite .fp-nib, .fish-pond.st-reel .fp-nib { animation-duration: .01s; }
}

/* ---------- 🤠 Rodeo: bik koji se rita po komandi, jahači na leđima, pad u prašinu ---------- */
.rodeo-live { gap: 4px; }
.rd-card { margin: 2px 0 6px; width: 100%; text-align: center; }
.rd-slam { display: inline-flex; align-items: center; gap: 18px; background: #fff; border: 5px solid #111118; border-radius: 18px; box-shadow: 7px 7px 0 #111118; padding: 6px 26px; rotate: -2deg; max-width: 94%; color: #111118; animation: rd-slam .38s cubic-bezier(.2, 1.6, .4, 1) var(--late, 0s) backwards; }
@keyframes rd-slam { 0% { transform: translateY(-120px) scale(1.7) rotate(8deg); opacity: 0; } 60% { transform: translateY(6px) scale(.96, 1.04); opacity: 1; } }
.rd-slam .rodeo-icon { font-size: clamp(40px, calc(5.5 * var(--vw1, 1vw)), 74px); line-height: 1; white-space: nowrap; animation: none; }
.rd-card .rd-slam .rodeo-cmd { white-space: nowrap; }
.rd-slam .rodeo-cmd { margin: 0; font-size: clamp(34px, calc(5.6 * var(--vw1, 1vw)), 74px); color: #111118; -webkit-text-stroke: 0; text-shadow: none; animation: none; }
.rodeo-live.result > .rodeo-cmd { font-size: clamp(30px, calc(4.6 * var(--vw1, 1vw)), 60px); margin: 2px 0; }
.rd-scene { position: relative; width: min(900px, 96%); height: 1.28em; font-size: clamp(190px, calc(34 * var(--vh1, 1vh)), 250px); line-height: 1; margin: 4px auto 0; }
body.board-body .rd-scene { font-size: 112px; }
body.board-body .rd-slam { padding: 2px 16px; border-width: 4px; box-shadow: 5px 5px 0 #111118; }
.rodeo-live .twist-badge ~ .rd-scene { font-size: clamp(170px, calc(29 * var(--vh1, 1vh)), 215px); }
body.board-body .rodeo-live .twist-badge ~ .rd-scene { font-size: 92px; }
.rd-ground { position: absolute; left: 4%; right: 4%; bottom: 0; height: .12em; border-radius: 50%; background: #11111844; }
.rd-bull { position: absolute; left: 50%; bottom: .03em; width: 1.375em; height: 1em; margin-left: -.6875em; }
.rd-pose, .rd-life { position: absolute; inset: 0; transform-origin: 50% 62%; }
.rd-bull-art { position: absolute; left: 0; top: 0; }
.rd-life { transform-origin: 50% 100%; animation: rd-idle .5s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes rd-idle { from { transform: scale(1.02, .98); } to { transform: scale(.98, 1.03) translateY(-.01em); } }
.rd-bull-art .rd-face { display: none; fill: #111118; }
.rd-bull-art:not(.smug):not(.tamed) .f-mad, .rd-bull-art.smug .f-smug, .rd-bull-art.tamed .f-tamed { display: block; }
.rd-bull-art .rd-tail { transform-origin: 74px 92px; animation: rd-tail .4s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes rd-tail { from { transform: rotate(-12deg); } to { transform: rotate(18deg); } }
.rd-bull-art .rd-snort circle { opacity: 0; animation: rd-snort 1.1s ease-out var(--t, 0ms) infinite; }
.rd-bull-art .rd-snort circle:nth-child(2) { animation-delay: calc(var(--t, 0ms) - .2s); }
@keyframes rd-snort { 0% { transform: translate(-16px, 6px) scale(.3); opacity: 0; } 20% { opacity: 1; } 60%, 100% { transform: translate(14px, -8px) scale(1.2); opacity: 0; } }
.rd-bull-art.tamed .rd-snort { display: none; }
.rd-bull-art .rd-leg.f2 { transform-origin: 190px 156px; animation: rd-paw .9s ease-in-out var(--t, 0ms) infinite; }
@keyframes rd-paw { 0%, 55%, 100% { transform: none; } 20% { transform: rotate(-32deg); } 38% { transform: rotate(8deg); } }
.rd-bull-art.tamed .rd-leg.f2, .rd-scene.posed .rd-leg.f2 { animation: none; }
/* Poze: jedna = uđe pa drži; dve (.seq) = naizmenično */
.rd-pose.p-left { --pose: rotate(-22deg) translateX(-.06em); }
.rd-pose.p-right { --pose: rotate(22deg) translateX(.06em); }
.rd-pose.p-flip { --pose: translateY(-.26em) rotate(180deg); }
.rd-pose.p-still { --pose: none; }
.rd-pose[class*="p-"]:not(.seq):not(.p-shake) { animation: rd-pose-in .42s cubic-bezier(.2, 1.5, .4, 1) var(--late, 0s) both; }
@keyframes rd-pose-in { from { transform: none; } to { transform: var(--pose); } }
.rd-pose.p-shake:not(.seq) { animation: rd-shake .16s linear var(--late, 0s) infinite; }
@keyframes rd-shake { 0%, 100% { transform: none; } 25% { transform: translate(-.07em, -.03em) rotate(-7deg); } 75% { transform: translate(.07em, .02em) rotate(7deg); } }
.rd-pose.seq { animation: rd-seq 2.2s ease-in-out var(--late, 0s) infinite; }
.rd-pose.seq.second { animation-delay: calc(var(--late, 0s) + 1.1s); }
@keyframes rd-seq { 0%, 50%, 100% { transform: none; } 8%, 40% { transform: var(--pose); } }
.rd-pose.seq.p-shake { animation-name: rd-seq-shake; }
@keyframes rd-seq-shake { 0%, 46%, 100% { transform: none; } 5%, 15%, 25%, 35% { transform: translate(-.07em, -.03em) rotate(-7deg); } 10%, 20%, 30%, 40% { transform: translate(.07em, .02em) rotate(7deg); } }
.rd-pose.p-still .rd-life, .rd-pose.p-still .rd-life * { animation-play-state: paused; }
.rd-ice { position: absolute; left: 96%; top: .02em; font-size: .34em; animation: c1-pop-in .4s cubic-bezier(.2, 1.6, .4, 1) var(--late, 0s) backwards; }
/* Jahači */
.rd-riders { position: absolute; left: .3em; width: .6em; bottom: .76em; display: flex; justify-content: center; align-items: flex-end; }
.rd-rider { position: relative; display: grid; justify-items: center; font-size: .21em; margin: 0 -.12em; animation: rd-ride .32s ease-in-out calc(var(--t, 0ms) - var(--i, 0) * 90ms) infinite alternate; transform-origin: 50% 100%; }
.rd-scene.crowd .rd-rider { font-size: .15em; margin: 0 -.2em; }
.rd-rider b { font-weight: 400; line-height: 1; }
.rd-hat { font-size: .52em; margin-bottom: -.42em; position: relative; z-index: 1; rotate: -8deg; }
@keyframes rd-ride { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-.16em) rotate(5deg); } }
.rd-rider.ok::after { content: '✅'; position: absolute; right: -.3em; top: -.1em; font-size: .5em; animation: c1-pop-in .4s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.rd-scene.mount .rd-rider { animation: rd-mount .55s cubic-bezier(.3, 1.4, .5, 1) calc(var(--i, 0) * 140ms + .25s) backwards, rd-ride .32s ease-in-out calc(var(--i, 0) * 140ms + .8s) infinite alternate; }
@keyframes rd-mount { 0% { transform: translateY(-2.6em) rotate(-30deg); opacity: 0; } 60% { transform: translateY(.1em) scale(1.2, .75); opacity: 1; } }
/* Pali: zvezdice oko glave */
.rd-dizzy { position: relative; display: inline-grid; justify-items: center; }
.rd-dizzy b { font-weight: 400; line-height: 1; rotate: -14deg; }
.rd-stars { position: absolute; left: 50%; top: -.28em; width: 0; height: 0; font-style: normal; }
.rd-stars u { position: absolute; left: -.2em; top: -.2em; font-size: .42em; text-decoration: none; color: #ffe600; -webkit-text-stroke: 2px #111118; paint-order: stroke fill; animation: rd-orbit 1.1s linear var(--t, 0ms) infinite; }
.rd-stars u:nth-child(2) { animation-delay: calc(var(--t, 0ms) - .37s); } .rd-stars u:nth-child(3) { animation-delay: calc(var(--t, 0ms) - .73s); }
@keyframes rd-orbit { 0% { transform: translate(-1.3em, 0) scale(.8); } 25% { transform: translate(0, .3em) scale(1.1); } 50% { transform: translate(1.3em, 0) scale(.8); } 75% { transform: translate(0, -.3em) scale(.55); } 100% { transform: translate(-1.3em, 0) scale(.8); } }
.rd-out, .rd-fall { position: absolute; left: 50%; bottom: .05em; width: 0; display: grid; justify-items: center; font-size: .2em; translate: calc(var(--x) * 5em) 0; }
.rd-out .rd-dizzy, .rd-fall .rd-dizzy { margin-left: -.6em; margin-right: -.6em; }
/* Pad: luk sa bika do zemlje (vodoravno ravnomerno, uspravno gore pa dole), pa oblak prašine */
.rd-fall { animation: rd-fall-x .75s linear calc(var(--j, 0) * 120ms + .1s) backwards; }
.rd-fall > span { display: block; animation: rd-fall-y .75s linear calc(var(--j, 0) * 120ms + .1s) backwards; }
@keyframes rd-fall-x { from { translate: 0 0; } }
@keyframes rd-fall-y { 0% { transform: translateY(-3.6em) rotate(0deg); animation-timing-function: cubic-bezier(.2, .6, .5, 1); } 35% { transform: translateY(-6.2em) rotate(calc(var(--x) * 300deg)); animation-timing-function: cubic-bezier(.5, 0, .9, .6); } 86% { transform: translateY(0) rotate(calc(var(--x) * 700deg)) scale(1.25, .7); } 100% { transform: none; } }
.rd-fall em { position: absolute; left: -1.1em; bottom: -.15em; width: 2.2em; height: .9em; border-radius: 50%; background: #e9d7b0; border: 3px solid #111118; box-sizing: border-box; opacity: 0; animation: rd-dust .7s ease-out calc(var(--j, 0) * 120ms + .75s) backwards; }
@keyframes rd-dust { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.7, 1.3) translateY(-.3em); opacity: 0; } }
.rodeo-live.result.fell .rd-bull { animation: rd-buck .7s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 30% 100%; }
@keyframes rd-buck { 0% { transform: rotate(0); } 30% { transform: rotate(-24deg) translateY(-.12em); } 60% { transform: rotate(8deg); } 100% { transform: none; } }
.rodeo-live.result.fell .rd-scene { animation: c1-quake .4s linear .85s; }
.rd-trophy { position: absolute; right: -.26em; bottom: 0; font-size: .34em; animation: c1-pop-in .5s cubic-bezier(.2, 1.6, .4, 1) .4s backwards; rotate: 8deg; }
/* Telefon */
.rd-ph { position: relative; filter: none; display: inline-flex; align-items: flex-end; justify-content: center; }
.rd-ph .rd-rider { font-size: 1em; animation-delay: var(--t, 0ms); }
.rd-ph .rd-cup { font-size: .5em; margin-left: .1em; }
.rd-mini { width: 100%; }
.rd-mini .rd-scene { font-size: clamp(70px, calc(17 * var(--c1h, 1dvh)), 140px); margin-top: 22px; }
.rd-mini .rd-rider { font-size: .26em; }
@media (max-height: 600px) { .rd-mini { display: none; } }
body.player.online .rd-mini { display: none; }
.rodeo-live > h1 { margin: 8px 0 2px; }
@media (prefers-reduced-motion: reduce) { .rd-life, .rd-rider, .rd-pose, .rd-fall, .rd-fall > span, .rd-bull, .rd-stars u, .rd-slam { animation: none !important; } .rd-pose[class*="p-"] { transform: var(--pose, none); } }

/* ---------- 🪑 Muzičke stolice: ples u krug oko stolica, sedanje, reflektor i propadanje ---------- */
.ch-stage { position: relative; z-index: 0; font-size: clamp(120px, calc(26 * var(--vh1, 1vh)), 190px); line-height: 1; width: 100%; }
body.board-body .ch-stage { font-size: 92px; }
.ch-stage.ring { height: 2.25em; margin: 6px 0 0; font-size: min(clamp(120px, calc(26 * var(--vh1, 1vh)), 190px), calc(88 * var(--vw1, 1vw) / (var(--c, 3) * .84 + 3.3))); }
.ch-stage.seats { font-size: min(clamp(120px, calc(26 * var(--vh1, 1vh)), 190px), calc(88 * var(--vw1, 1vw) / (var(--c, 3) * .78 + 1.6))); }
body.board-body .ch-stage.ring { font-size: min(92px, calc(88 * var(--vw1, 1vw) / (var(--c, 3) * .84 + 3.3))); }
body.board-body .ch-stage.seats { font-size: min(92px, calc(88 * var(--vw1, 1vw) / (var(--c, 3) * .78 + 1.6))); }
.chairs-live .twist-badge ~ .ch-stage.ring { height: 2.05em; }
.ch-chairs { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); display: flex; gap: .1em; z-index: 1; }
.ch-seat { position: relative; display: grid; justify-items: center; font-size: .86em; }
.ch-chair { filter: none; }
.ch-ring { position: absolute; left: 50%; top: 60%; width: 0; height: 0; }
/* Elipsa: spoljni element ide gore-dole (i menja dubinu), unutrašnji levo-desno, sa pomakom od četvrt kruga. */
.ch-dy { position: absolute; left: 0; top: 0; z-index: 2; animation: ch-y var(--T) cubic-bezier(.37, 0, .63, 1) var(--dy) var(--ny) alternate both; }
.ch-dx { position: absolute; left: 0; top: 0; animation: ch-x var(--T) cubic-bezier(.37, 0, .63, 1) var(--dx) var(--nx) alternate both; }
@keyframes ch-y { from { transform: translateY(-.62em) scale(.8); z-index: 0; } to { transform: translateY(.52em) scale(1.08); z-index: 2; } }
@keyframes ch-x { from { transform: translateX(calc(var(--rx) * -1)); } to { transform: translateX(var(--rx)); } }
.ch-dancer { position: absolute; left: -1em; width: 2em; bottom: -.5em; display: grid; justify-items: center; font-size: .44em; }
.ch-dancer b { font-weight: 400; line-height: 1; transform-origin: 50% 100%; animation: ch-bop .36s ease-in-out calc(var(--t, 0ms) - var(--i, 0) * 110ms) infinite alternate; }
@keyframes ch-bop { from { transform: translateY(0) rotate(-9deg) scale(1.04, .96); } to { transform: translateY(-.2em) rotate(9deg) scale(.97, 1.04); } }
.ch-stage small { font-size: 17px; line-height: 1.2; font-weight: 800; background: #fff; color: #111118; border: 2px solid #111118; border-radius: 8px; padding: 0 6px; white-space: nowrap; max-width: 9em; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
body.board-body .ch-stage small { font-size: 12px; }
/* Note lete dok svira muzika */
.ch-notes { position: absolute; left: 50%; top: 30%; width: 0; height: 0; z-index: 3; }
.ch-notes i { position: absolute; font-style: normal; font-size: .3em; color: #ffe600; -webkit-text-stroke: 2px #111118; paint-order: stroke fill; opacity: 0; animation: ch-note 2.2s ease-out calc(var(--t, 0ms) - var(--o, 0s)) infinite; left: var(--x, 0); }
.ch-notes i:nth-child(1) { --x: -2.6em; } .ch-notes i:nth-child(2) { --x: 2.2em; --o: .5s; } .ch-notes i:nth-child(3) { --x: -.9em; --o: 1s; } .ch-notes i:nth-child(4) { --x: 3.4em; --o: 1.5s; } .ch-notes i:nth-child(5) { --x: -3.8em; --o: 1.9s; }
@keyframes ch-note { 0% { transform: translateY(.8em) rotate(-15deg) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-1.6em) rotate(20deg) scale(1.2); opacity: 0; } }
.chairs-live.fake:not(.tease) .ch-notes { display: none; }
.chairs-live.sit .ch-notes, .chairs-live.freeze .ch-notes { animation: ch-gone 0s linear var(--late, 0s) forwards; }
@keyframes ch-gone { to { visibility: hidden; } }
/* Lažna pauza: stali u pola koraka i klate se · 🟡: stolice „zovu“ · ❄️: smrznuti */
.chairs-live.fake:not(.tease) .ch-dancer b { animation: ch-wobble .55s ease-in-out infinite alternate; }
.chairs-live.fake.slow .ch-dancer b { animation-duration: 1.3s; }
@keyframes ch-wobble { from { transform: rotate(-16deg) translateX(-.06em); } to { transform: rotate(16deg) translateX(.06em); } }
.chairs-live.fake.tease .ch-seat { animation: ch-call .22s ease-in-out infinite alternate; }
@keyframes ch-call { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-.07em) rotate(3deg); } }
.chairs-live.freeze .ch-dancer b { animation: ch-bop .36s ease-in-out infinite alternate, ch-shiver .09s linear var(--late, 0s) infinite; }
@keyframes ch-shiver { 0%, 100% { transform: translateX(-.03em); } 50% { transform: translateX(.03em); } }
.chairs-live.freeze .ch-dancer::after { content: '❄️'; position: absolute; right: .1em; top: -.5em; font-size: .5em; animation: c1-pop-in .3s cubic-bezier(.2, 1.6, .4, 1) var(--late, 0s) backwards; }
/* SEDI!: svi jurnu ka stolicama */
.chairs-live.sit .ch-dy { animation: ch-y var(--T) cubic-bezier(.37, 0, .63, 1) var(--dy) var(--ny) alternate both, ch-in-y .28s cubic-bezier(.3, 1.4, .5, 1) var(--late, 0s) forwards; }
.chairs-live.sit .ch-dx { animation: ch-x var(--T) cubic-bezier(.37, 0, .63, 1) var(--dx) var(--nx) alternate both, ch-in-x .28s cubic-bezier(.3, 1.4, .5, 1) var(--late, 0s) forwards; }
@keyframes ch-in-y { to { transform: translateY(.34em) scale(1.05); z-index: 2; } }
@keyframes ch-in-x { to { transform: translateX(calc(var(--s) * .42em)); } }
.chairs-live.sit .ch-dancer b { animation: ch-bop .36s ease-in-out infinite alternate, ch-rush .13s linear var(--late, 0s) infinite; }
@keyframes ch-rush { 0%, 100% { transform: translate(-.05em, 0) rotate(-8deg); } 50% { transform: translate(.05em, -.14em) rotate(8deg); } }
.chairs-live.sit .ch-seat { animation: ch-call .16s ease-in-out var(--late, 0s) infinite alternate; }
/* Ishod: tresak na stolicu (zgnječi se), pa ko nema stolicu — reflektor i rupa */
.ch-stage.seats { display: flex; justify-content: center; align-items: flex-end; gap: .55em; height: 1.75em; margin: 6px 0 50px; }
.ch-stage.seats .ch-chairs { position: static; transform: none; }
.ch-sitter { position: absolute; left: 0; right: 0; bottom: .8em; text-align: center; font-size: .56em; }
.ch-seat .ch-sitter { bottom: .86em; }
.ch-sitter b { display: inline-block; font-weight: 400; transform-origin: 50% 100%; animation: ch-slam .5s cubic-bezier(.3, 1.3, .5, 1) calc(var(--ft, 0ms) + var(--i, 0) * 200ms + .15s) backwards; }
@keyframes ch-slam { 0% { transform: translateY(-2.6em) rotate(-25deg); opacity: 0; } 55% { transform: translateY(0) scale(1.35, .6); opacity: 1; } 78% { transform: translateY(-.12em) scale(.92, 1.1); } }
.ch-seat.taken .ch-chair, .ch-throne .ch-chair { transform-origin: 50% 100%; animation: ch-squash .32s ease-out calc(var(--ft, 0ms) + var(--i, 0) * 200ms + .4s); }
@keyframes ch-squash { 30% { transform: scale(1.12, .84); } 70% { transform: scale(.96, 1.05); } }
.ch-seat small { position: absolute; top: 100%; text-align: center; }
.ch-seat small i { display: block; font-style: normal; font-weight: 600; font-size: .85em; }
.ch-losers { display: flex; gap: .3em; }
.ch-loser { position: relative; display: grid; justify-items: center; align-content: end; width: 1em; height: 1.5em; }
.ch-spot { position: absolute; left: -.1em; right: -.1em; top: -.15em; bottom: .12em; background: linear-gradient(#ffe600cc, #ffe60033); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); opacity: 0; animation: ch-spot .25s ease-out calc(var(--ft, 0ms) + .9s) forwards; }
@keyframes ch-spot { to { opacity: 1; } }
.ch-hole { position: absolute; left: 0; right: 0; bottom: .02em; height: .26em; border-radius: 50%; background: #111118; transform: scaleX(0); animation: ch-hole .2s ease-out calc(var(--ft, 0ms) + 1.75s) forwards; }
@keyframes ch-hole { to { transform: scaleX(1); } }
.ch-drop { position: relative; display: block; font-size: .62em; margin-bottom: .2em; clip-path: inset(-3em -1em 0 -1em); }
.ch-drop b { display: block; font-weight: 400; animation: ch-nervous .16s linear calc(var(--ft, 0ms) + .9s) 5 alternate, ch-drop .7s cubic-bezier(.5, -.5, .8, .4) calc(var(--ft, 0ms) + 1.85s) forwards; }
@keyframes ch-nervous { from { transform: translateX(-.06em) rotate(-6deg); } to { transform: translateX(.06em) rotate(6deg); } }
@keyframes ch-drop { 0% { transform: none; } 25% { transform: translateY(-.35em) scale(.9, 1.15); } 100% { transform: translateY(1.6em) rotate(40deg) scale(.5); } }
.ch-loser small { position: absolute; top: 100%; }
.chairs-live.lost .ch-stage.seats { animation: c1-quake .4s linear 2.1s; }
/* Pobednik */
.ch-throne { position: relative; display: inline-grid; justify-items: center; }
.ch-stage.win { height: 1.9em; display: grid; place-items: end center; font-size: clamp(130px, calc(24 * var(--vh1, 1vh)), 180px); margin-bottom: 10px; }
.ch-stage.win .ch-sitter b { animation: ch-slam .5s cubic-bezier(.3, 1.3, .5, 1) .15s backwards, ch-bop .4s ease-in-out .7s infinite alternate; }
.ch-crown { position: absolute; left: 0; right: 0; bottom: 1.42em; text-align: center; font-style: normal; font-size: .4em; animation: c1-pop-in .5s cubic-bezier(.2, 1.6, .4, 1) calc(var(--ft, 0ms) + .7s) backwards, ch-crown .8s ease-in-out calc(var(--t, 0ms) + 1.2s) infinite alternate; }
.ch-throne .ch-crown { bottom: 2.6em; }
@keyframes ch-crown { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-.14em) rotate(6deg); } }
/* Telefon */
.ch-ph { position: relative; filter: none; line-height: 1; }
body.player .huge.ch-ph { font-size: clamp(70px, calc(17 * var(--c1h, 1dvh)), 140px); margin-top: 30px; }
.ch-ph .ch-loser { height: 1.3em; }
.ch-solo { position: relative; display: inline-block; }
.ch-solo .ch-dancer { position: static; font-size: .8em; width: auto; }
.ch-solo .ch-notes i { font-size: .26em; }
.ch-solo .ch-notes i:nth-child(n+4) { display: none; }
.ch-solo .ch-notes i:nth-child(1) { --x: -1.6em; } .ch-solo .ch-notes i:nth-child(2) { --x: 1.2em; } .ch-solo .ch-notes i:nth-child(3) { --x: -.3em; }
.chairs-phone.fake:not(.tease) .ch-dancer b, .chairs-phone.freeze .ch-dancer b { animation: ch-wobble .55s ease-in-out var(--t, 0ms) infinite alternate; }
.ch-mark { position: absolute; right: -.5em; top: -.3em; font-size: .42em; font-style: normal; }
.ch-target { font-size: clamp(80px, calc(22 * var(--c1h, 1dvh)), 170px); animation: ch-call .16s ease-in-out var(--t, 0ms) infinite alternate; margin: 10px 0; }
.chairs-phone .dance { animation: none; }
@media (prefers-reduced-motion: reduce) { .ch-dy, .ch-dx { animation-play-state: paused !important; } .ch-dancer b, .ch-notes i, .ch-seat, .ch-target, .ch-sitter b, .ch-crown { animation: none !important; } .ch-drop b { animation: none !important; opacity: .4; } .ch-spot { opacity: 1; animation: none; } }

/* ---------- 🔫 Vodeni pištolj: nacrtan pištolj sa burencetom, okidač, mlaz, pokvašena meta ---------- */
.sq-scene { display: flex; align-items: center; justify-content: center; gap: .5em; font-size: clamp(150px, calc(27 * var(--vh1, 1vh)), 200px); line-height: 1; margin: 8px 0 2px; }
body.board-body .sq-scene { font-size: 96px; margin: 2px 0 0; }
.squirt-live .twist-badge ~ .sq-scene { font-size: clamp(130px, calc(22 * var(--vh1, 1vh)), 165px); }
body.board-body .squirt-live .twist-badge ~ .sq-scene { font-size: 84px; }
.sq-gunbox { position: relative; transform-origin: 30% 70%; }
.sq-gun .sq-jet { display: none; transform-origin: 320px 83px; }
.sq-gun .sq-drum { transform-origin: 150px 96px; transform: rotate(var(--rot)); }
.sq-gun .sq-hole { fill: #cfd6e0; stroke: #111118; stroke-width: 4; }
.sq-gun .sq-hole.used { fill: #111118; }
.sq-gun .sq-hole.wet { fill: #3b82f6; transform-box: fill-box; transform-origin: center; animation: sq-wet .35s ease-in-out var(--t, 0ms) infinite alternate; }
.sq-gun .sq-hole.wet2 { fill: #8fd0ff; }
@keyframes sq-wet { to { transform: scale(1.3); } }
.sq-gun .sq-water { animation: sq-slosh .7s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes sq-slosh { from { transform: translateX(-4px); } to { transform: translateX(4px) translateY(2px); } }
.sq-gun .sq-trigger { transform-origin: 157px 128px; }
.sq-target { position: relative; display: grid; justify-items: center; gap: 6px; }
.sq-target > b { font-weight: 400; font-size: .62em; display: block; }
.sq-target small { font-size: 18px; line-height: 1.2; font-weight: 800; background: #fff; color: #111118; border: 3px solid #111118; border-radius: 9px; padding: 0 8px; white-space: nowrap; }
body.board-body .sq-target small, body.player .sq-target small { font-size: 13px; border-width: 2px; }
.squirt-live.many .sq-scene { font-size: clamp(120px, calc(20 * var(--vh1, 1vh)), 150px); }
.squirt-live.many .player-row { gap: 6px; } .host .squirt-live.many .player-row .player-chip { padding: 5px 10px; font-size: 16px; }
/* Na potezu: pištolj lebdi i nišani; novi igrač uleti · dodavanje = pištolj se prevrne · suvo = KLIK! */
.sq-scene.st-turn .sq-gunbox { animation: sq-aim 1.1s ease-in-out calc(var(--t, 0ms)) infinite alternate; }
@keyframes sq-aim { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(3deg) translateY(-.04em); } }
.sq-scene.st-turn.was-pass .sq-gunbox { animation: sq-toss .55s cubic-bezier(.3, 1.3, .5, 1) var(--ft, 0ms) backwards, sq-aim 1.1s ease-in-out calc(var(--t, 0ms) + .55s) infinite alternate; }
@keyframes sq-toss { 0% { transform: translate(-.7em, -.3em) rotate(-360deg) scale(.7); } 70% { transform: translate(.05em, 0) rotate(12deg); } }
.sq-scene.st-turn .sq-target > b { animation: sq-in .45s cubic-bezier(.2, 1.5, .4, 1) var(--ft, 0ms) backwards; }
@keyframes sq-in { 0% { transform: translateX(1.4em) rotate(30deg); opacity: 0; } }
.sq-scene.was-pull .sq-drum { animation: sq-advance .5s cubic-bezier(.2, 1.7, .4, 1) var(--ft, 0ms) backwards; }
@keyframes sq-advance { from { transform: rotate(calc(var(--rot) + var(--step))); } }
.sq-gunbox .sq-word { left: 18%; top: 4%; --bc: #fff; --bt: #111118; animation: c1-burst .45s cubic-bezier(.2, 1.6, .4, 1) var(--ft, 0ms) backwards, sq-fade .3s ease-in calc(var(--ft, 0ms) + 1.5s) forwards; }
.sq-gunbox .sq-word b { -webkit-text-stroke: 0; text-shadow: none; }
@keyframes sq-fade { to { opacity: 0; } }
/* klik… klik…: pištolj drhti, okidač se steže, burence se vrti, meta se znoji */
.sq-scene.st-click .sq-gunbox { animation: sq-tremble .11s linear var(--t, 0ms) infinite; }
@keyframes sq-tremble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg) translateY(-3px); } }
.sq-scene.st-click .sq-trigger { animation: sq-squeeze 1s ease-in var(--ft, 0ms) both; }
@keyframes sq-squeeze { to { transform: rotate(28deg) translateX(-5px); } }
.sq-scene.st-click .sq-drum { animation: sq-spin 1.05s cubic-bezier(.3, .1, .2, 1) var(--ft, 0ms) both; }
@keyframes sq-spin { from { transform: rotate(var(--rot)); } to { transform: rotate(calc(var(--rot) - 720deg)); } }
.sq-scene.st-click .sq-target > b { animation: sq-tremble .09s linear var(--t, 0ms) infinite; }
.sq-fear { position: absolute; top: 0; right: -.12em; font-size: .16em; font-style: normal; animation: c1-sweat .7s ease-in var(--t, 0ms) infinite; }
.sq-fear + .sq-fear { right: auto; left: -.12em; top: .12em; animation-delay: calc(var(--t, 0ms) - .35s); }
/* PLJAS!: trzaj, mlaz, pokvašena meta kaplje */
.sq-scene.st-splash .sq-gunbox { animation: sq-kick .5s cubic-bezier(.2, 1.6, .4, 1) var(--ft, 0ms) backwards; }
@keyframes sq-kick { 0% { transform: none; } 25% { transform: rotate(-22deg) translateX(-.14em); } }
.sq-scene.st-splash .sq-trigger { transform: rotate(28deg) translateX(-5px); }
.sq-scene.st-splash .sq-jet { display: block; animation: sq-jet 1.7s ease-out var(--ft, 0ms) both; }
@keyframes sq-jet { 0% { transform: scale(0, .4); } 10% { transform: scale(1.08, 1.1); } 20%, 60% { transform: scale(1, 1); } 40% { transform: scale(1.03, .85); } 100% { transform: scale(1, 0); } }
.sq-scene.st-splash .sq-target > b { animation: sq-hit .5s cubic-bezier(.2, 1.6, .4, 1) calc(var(--ft, 0ms) + .12s) backwards, sq-tremble .1s linear calc(var(--ft, 0ms) + .7s) infinite; }
@keyframes sq-hit { 0% { transform: none; } 30% { transform: translateX(.2em) rotate(18deg) scale(.9, 1.1); } }
.sq-drips { position: absolute; left: 0; right: 0; top: .5em; height: 0; }
.sq-drips i { position: absolute; left: var(--x); top: 0; width: .07em; height: .1em; background: #5cc8ff; border: 3px solid #111118; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; opacity: 0; animation: sq-drip .8s ease-in calc(var(--t, 0ms) - var(--o, 0s) + .5s) infinite; }
.sq-drips i:nth-child(1) { --x: 8%; } .sq-drips i:nth-child(2) { --x: 34%; --o: .3s; } .sq-drips i:nth-child(3) { --x: 62%; --o: .55s; } .sq-drips i:nth-child(4) { --x: 86%; --o: .15s; }
@keyframes sq-drip { 0% { transform: translateY(-.1em) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(.34em); opacity: 0; } }
.sq-target .sq-spray { left: 20%; top: 40%; }
.sq-target .sq-spray i { background: #8fd0ff; animation-delay: calc(var(--ft, 0ms) + .12s + var(--k) * 15ms); animation-duration: .8s; }
.sq-target .sq-word { left: 88%; top: -22%; --bc: #5cc8ff; --bt: #fff; animation-delay: calc(var(--ft, 0ms) + .2s); }
.squirt-live.splash .sq-scene { animation: c1-quake .4s linear .12s; }
/* Telefon */
.sq-ph { font-size: clamp(56px, calc(15 * var(--c1h, 1dvh)), 120px); line-height: 1; margin: 8px 0; }
.sq-ph .sq-scene { font-size: inherit; gap: .3em; margin: 0; }
.sq-ph.solo { display: grid; justify-items: center; animation: sq-aim 1.1s ease-in-out var(--t, 0ms) infinite alternate; }
.squirt-phone.sent .sq-ph.solo { animation: sq-kick .4s cubic-bezier(.2, 1.6, .4, 1) var(--ft, 0ms) backwards; }
.squirt-phone.sent .sq-trigger { transform: rotate(28deg) translateX(-5px); }
.squirt-phone .squirt-cyl { display: none; }
@media (prefers-reduced-motion: reduce) { .sq-gunbox, .sq-target > b, .sq-ph.solo, .sq-drips i { animation: none !important; } .sq-scene.st-splash .sq-jet { animation: none; } }

/* ---------- ⚽ Penali: gol sa mrežom i travom, golman, lopta sa tragom, publika, zastavica ---------- */
.pen-goal { overflow: visible; background: #0f2a6b; z-index: 0; margin: 56px auto 72px; }
.pen-net { background-image: repeating-linear-gradient(45deg, #ffffff3d 0 2px, transparent 2px 16px), repeating-linear-gradient(-45deg, #ffffff3d 0 2px, transparent 2px 16px); background-size: auto; }
.pen-goal::after { content: ''; position: absolute; left: -9%; right: -9%; top: 100%; height: 70px; background: repeating-linear-gradient(90deg, #19a34a 0 64px, #17963f 64px 128px); border: 5px solid #111118; border-radius: 6px 6px 22px 22px; z-index: -1; }
.pen-goal::before { content: ''; position: absolute; left: 50%; top: calc(100% + 46px); width: 30px; height: 10px; margin-left: -15px; background: #fff; border-radius: 50%; }
.pk-crowd { position: absolute; left: -5%; right: -5%; bottom: calc(100% + 13px); height: 30px; display: flex; justify-content: space-between; align-items: flex-end; z-index: -1; }
.pk-crowd::before { content: ''; position: absolute; left: -6px; right: -6px; bottom: -4px; height: 14px; background: #111118; border-radius: 6px; }
.pk-crowd i { position: relative; width: 28px; height: 28px; border: 3px solid #111118; border-radius: 50% 50% 34% 34%; background: #fff; box-sizing: border-box; animation: pk-wave 1.9s ease-in-out calc(var(--t, 0ms) - var(--k) * 110ms) infinite; }
.pk-crowd i.c0 { background: #ff2d2d; } .pk-crowd i.c1 { background: #ffe600; } .pk-crowd i.c3 { background: #19d38a; }
@keyframes pk-wave { 0%, 60%, 100% { transform: translateY(6px); } 30% { transform: translateY(-9px) scale(1.08); } }
.pen-goal.scored .pk-crowd i { animation: pk-wave 1.9s ease-in-out calc(var(--k) * -110ms) infinite, pk-jump .24s ease-in-out calc(.6s + var(--k) * 31ms) infinite alternate; }
@keyframes pk-jump { from { transform: translateY(4px) scale(1.05, .92); } to { transform: translateY(-16px) scale(.95, 1.1); } }
/* Golman */
.pen-keeper { line-height: 1; z-index: 1; }
.pen-keeper .c1-art { height: 1.5em; }
.pen-keeper.glove .c1-art { height: 1.25em; }
.pk-keeper .pk-face { display: none; fill: #111118; }
.pk-keeper .f-ready { display: block; }
.pk-keeper.happy .f-ready, .pk-keeper.sad .f-ready { animation: ch-gone 0s linear .62s forwards; }
.pk-keeper.happy .f-happy, .pk-keeper.sad .f-sad { display: block; visibility: hidden; animation: pk-show 0s linear .62s forwards; }
@keyframes pk-show { to { visibility: visible; } }
.pk-keeper .pk-arm { transform-box: fill-box; }
.pk-keeper .pk-arm.l { transform-origin: 100% 100%; } .pk-keeper .pk-arm.r { transform-origin: 0 100%; }
.pen-goal:not(.scored):not(.saved) .pk-keeper { transform-origin: 50% 100%; animation: pk-ready .5s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes pk-ready { from { transform: translateX(-7px) scale(1.03, .96); } to { transform: translateX(7px) scale(.98, 1.03); } }
.pen-goal:not(.scored):not(.saved) .pk-arm { animation: pk-arm .5s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes pk-arm { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.pen-keeper.dive-left { animation: pk-dive-left .5s cubic-bezier(.3, 1.2, .5, 1) forwards; }
.pen-keeper.dive-right { animation: pk-dive-right .5s cubic-bezier(.3, 1.2, .5, 1) forwards; }
.pen-keeper.dive-mid { animation: pk-dive-mid .5s cubic-bezier(.3, 1.2, .5, 1) forwards; }
@keyframes pk-dive-left { 0% { left: 50%; transform: translateX(-50%); } 22% { left: 50%; transform: translateX(-50%) scale(1.14, .8); } 100% { left: 17%; transform: translateX(-50%) translateY(-36px) rotate(-64deg); } }
@keyframes pk-dive-right { 0% { left: 50%; transform: translateX(-50%); } 22% { left: 50%; transform: translateX(-50%) scale(1.14, .8); } 100% { left: 83%; transform: translateX(-50%) translateY(-36px) rotate(64deg); } }
@keyframes pk-dive-mid { 0% { transform: translateX(-50%); } 22% { transform: translateX(-50%) scale(1.14, .8); } 100% { transform: translateX(-50%) translateY(-44px) scale(.95, 1.08); } }
.pen-goal.saved .pk-keeper .pk-arm { animation: pk-clap .22s ease-in-out .7s 4 alternate; }
@keyframes pk-clap { to { transform: rotate(14deg); } }
.pen-goal.saved .pk-keeper .pk-arm.r { animation-name: pk-clap-r; }
@keyframes pk-clap-r { to { transform: rotate(-14deg); } }
/* Lopta: leti ka golu (smanjuje se i vrti), za njom trag; gol = sklizne niz mrežu, odbrana = odbije se */
.pen-ball { line-height: 1; z-index: 2; }
.pk-spin { display: block; }
.pen-ball[class*="shot-"] .pk-spin { animation: pk-fly .5s ease-out .1s both; }
@keyframes pk-fly { from { transform: scale(1.5) rotate(0); } to { transform: scale(.92) rotate(540deg); } }
.pen-goal.scored .pen-ball .pk-spin { animation: pk-fly .5s ease-out .1s both, pk-settle .55s cubic-bezier(.5, 0, .7, 1.4) .62s forwards; }
@keyframes pk-settle { to { transform: scale(.92) translateY(36px) rotate(620deg); } }
.pen-goal.saved .pen-ball .pk-spin { animation: pk-fly .5s ease-out .1s both, pk-deflect .6s cubic-bezier(.3, 0, .8, .6) .6s forwards; }
@keyframes pk-deflect { to { transform: translateY(170px) scale(1.7) rotate(760deg); opacity: 0; } }
.pen-ball.ghost { z-index: 1; animation-delay: .15s; }
.pen-ball.ghost.g2 { animation-delay: .2s; }
.pen-ball.ghost::before { content: ''; display: block; width: .8em; height: .8em; margin: .1em; border-radius: 50%; background: #fff; opacity: 0; animation: pk-ghost .5s linear .15s both; }
.pen-ball.ghost.g2::before { width: .56em; height: .56em; margin: .22em; animation-delay: .2s; }
@keyframes pk-ghost { 0% { opacity: 0; } 15% { opacity: .55; } 100% { opacity: 0; } }
.pk-sparks i { background: #ffe600; animation-delay: .6s; animation-duration: .7s; }
.pk-sparks.save i { background: #fff; }
.pen-ball .pk-word { font-size: 24px; left: 50%; top: 40%; --bc: #fff; --bt: #ff2d2d; animation: c1-burst .45s cubic-bezier(.2, 1.6, .4, 1) .6s backwards, sq-fade .3s ease-in 1.9s forwards; }
.pen-goal.scored { animation: c1-quake .4s linear .6s; }
.pk-flash { animation-delay: .6s; }
/* 🌬️ Vetar: zastavica i crtice */
.host .pen-live .pen-verdict { margin: 4px 0 22px; }
.pen-live .twist-badge ~ .pen-goal { zoom: .74; }
body.board-body .pen-goal { zoom: .6; margin: 50px auto 76px; }
body.board-body .pen-live .twist-badge ~ .pen-goal { zoom: .5; }
body.board-body .pen-live .pen-verdict { margin: 0 0 10px; }
.pen-live .pen-history { margin: 0 0 6px; }
/* Telefon */
body.player .huge.pk-ph { position: relative; filter: none; line-height: 1; font-size: clamp(64px, calc(15 * var(--c1h, 1dvh)), 120px); display: inline-grid; place-items: center; }
.pk-netbox { display: grid; place-items: center; width: 1.7em; height: 1.25em; border: 8px solid #fff; border-bottom: 0; outline: 4px solid #111118; background: #0f2a6b repeating-linear-gradient(45deg, #ffffff3d 0 2px, transparent 2px 13px); animation: pk-bulge .45s ease-out calc(var(--ft, 0ms) + .45s) backwards; }
@keyframes pk-bulge { 40% { transform: scale(1.1, 1.14); } }
.pk-netbox .pk-spin { font-size: .7em; animation: pk-in .5s cubic-bezier(.2, .9, .3, 1) var(--ft, 0ms) backwards; }
@keyframes pk-in { from { transform: translateY(1.8em) scale(2) rotate(-400deg); opacity: 0; } }
.pk-ph.save .pk-glove { transform-origin: 50% 100%; animation: pk-catch .5s cubic-bezier(.2, 1.6, .4, 1) calc(var(--ft, 0ms) + .3s) backwards; }
@keyframes pk-catch { 0% { transform: rotate(-30deg) scale(.8); } 50% { transform: rotate(8deg) scale(1.15); } }
.pk-caught { position: absolute; left: 50%; top: 46%; font-size: .52em; margin: -.5em 0 0 -.56em; animation: pk-in .4s cubic-bezier(.2, .9, .3, 1) var(--ft, 0ms) backwards; }
@media (prefers-reduced-motion: reduce) {
  .pk-crowd i, .pk-keeper, .pk-keeper .pk-arm, .pk-spin, .pen-goal.scored { animation: none !important; }
  .pen-ball.ghost { display: none; }
  .pen-keeper[class*="dive-"] { animation-duration: .01s; }
}

/* ---------- uvodni ekran igre: crtež umesto emotikona ---------- */
.c1-hero { line-height: 1; }
.c1-hero .c1-art { height: 1.1em; }
.c1-hero .fz-bottle { height: 1.4em; }
.c1-hero .pt-stand { font-size: 1.1em; display: block; } .c1-hero .pt-stand::after { display: none; }
.fp-hero { display: block; animation: fp-bob 2.2s ease-in-out var(--t, 0ms) infinite; }
.fp-hero .fp-bobber { position: static; height: 1.35em; } .fp-hero .fp-string { display: none; }
.pk-hero { display: block; animation: pk-roll 2.4s ease-in-out var(--t, 0ms) infinite alternate; }
@keyframes pk-roll { from { transform: translateX(-.25em) rotate(-70deg); } to { transform: translateX(.25em) rotate(70deg); } }
@media (prefers-reduced-motion: reduce) { .fp-hero, .pk-hero { animation: none; } }
.c1-hero .rd-bull-art { position: static; }

/* ---------- manje kretanja (style.css tada gasi sve animacije): mirna krajnja stanja ---------- */
@media (prefers-reduced-motion: reduce) {
  .fz-spray, .fz-puff { display: none; }
  .ch-stage.ring .ch-dy { transform: translate(calc(var(--s, 0) * .8em), .62em); }
  .fish-pond.st-bite .fp-nib, .fish-pond.st-reel .fp-nib { transform: translateY(.95em); }
  .fish-pond.st-bite .fp-splash > svg { opacity: .9; }
  .pk-keeper.happy .f-ready, .pk-keeper.sad .f-ready { display: none; }
  .pk-keeper.happy .f-happy, .pk-keeper.sad .f-sad { visibility: visible; }
  .ch-drop b { opacity: .4; } .ch-spot { opacity: 1; }
}
/* ===== /C1 ===== */
