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

/* ---------- 🕵️ Saboter ---------- */
/* Uloga: isti neutralan ekran za sve, tekst samo dok je prst na ekranu. */
.player .tap-zone.sab-phone.secret { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.player .tap-zone.sab-phone.secret.peek > * { animation: none; }
.player .tap-zone.sab-phone.secret .huge { font-size: 84px; }
.player .tap-zone.sab-phone.tasks { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sab-phone .sab-done { display: grid; justify-items: center; gap: 4px; min-height: 250px; align-content: center; }
.sab-phone .sab-done.ok h2 { color: var(--good); }
.sab-phone .sab-done.out h2 { color: var(--bad); }
.sab-phone .fx-note { min-height: 1.4em; }
/* Moći / „nisi saboter“: iskoče preko ekrana posle dugog pritiska. */
.sab-panel {
  position: fixed; inset: 16px; margin: auto; z-index: 30;
  width: min(380px, calc(calc(100 * var(--vw1, 1vw)) - 32px)); height: fit-content; max-height: calc(calc(100 * var(--dvh1, 1dvh)) - 32px); overflow: auto;
  display: grid; justify-items: center; gap: 8px; padding: 16px;
  --text: #111118; --muted: #50556b; color: #111118;
  background: #fff; border: 4px solid var(--edge, #111); border-radius: 22px; box-shadow: 6px 6px 0 var(--drop, #0008);
  animation: pop .25s cubic-bezier(.2, 1.6, .4, 1);
}
.sab-panel h2 { margin: 0; }
.sab-panel .power-row { margin: 0; }
.sab-panel .throw-grid { width: 100%; }
.sab-panel .throw-target { padding: 8px 6px; }
.sab-panel .throw-target .avatar { font-size: 32px; }
/* Otkrivanje: glasovi red po red, pa saboter (i poeni) tek posle poslednjeg reda. */
.sab-reveal .sab-late { animation: sab-late-in .6s cubic-bezier(.2, 1.6, .4, 1) var(--late, 0ms) backwards; }
.sab-reveal .result-row .pts.sab-late { animation: sab-late-in .5s cubic-bezier(.2, 1.6, .4, 1) var(--late, 0ms) backwards; }
.sab-reveal .sab-verdict .sab-unmask { animation: boom .7s cubic-bezier(.2, 1.8, .4, 1) var(--late, 0ms) backwards; }
.sab-reveal .sab-verdict h1 { margin: 4px 0; }
.sab-reveal .sab-badge { font-size: .8em; }
.sab-reveal .results { margin: 6px 0 10px; }
@keyframes sab-late-in { from { opacity: 0; transform: scale(1.7); } }
.sab-phone-reveal { display: grid; place-items: center; }
.sab-phone-reveal > div { grid-area: 1 / 1; display: grid; justify-items: center; }
.player .tap-zone.sab-phone-reveal > .sab-drum { animation: sab-gone 0s calc(var(--t, 0ms) + var(--late, 0ms)) forwards; }
.player .tap-zone.sab-phone-reveal > .sab-late-phone { animation: sab-late-in .6s cubic-bezier(.2, 1.6, .4, 1) calc(var(--t, 0ms) + var(--late, 0ms)) backwards; }
.player .tap-zone.sab-phone-reveal .pts-big { animation: none; }
@keyframes sab-gone { to { visibility: hidden; opacity: 0; } }

/* Zadaci: pitanje (TV i telefon) i različite vrste prikaza. */
.sab-q { margin: 2px 0 6px; font-size: clamp(22px, calc(2.6 * var(--vw1, 1vw)), 36px); font-weight: 900; }
.sab-q .muted { font-size: .7em; font-weight: 700; }
.sab-task { min-height: clamp(150px, calc(26 * var(--dvh1, 1dvh)), 280px); display: grid; place-items: center; width: 100%; }
.sab-arrow { display: grid; justify-items: center; line-height: 1; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.sab-arrow .arr { font-size: clamp(110px, calc(13 * var(--vw1, 1vw)), 190px); font-weight: 900; color: var(--text, #fff); -webkit-text-stroke: 3px #111118; }
.sab-arrow .dir-right { transform: rotate(0deg); }
.sab-arrow .dir-down { transform: rotate(90deg); }
.sab-arrow .dir-left { transform: rotate(180deg); }
.sab-arrow .dir-up { transform: rotate(-90deg); }
.sab-arrow b { font-size: clamp(26px, calc(3 * var(--vw1, 1vw)), 44px); font-weight: 900; margin-top: 4px; }
.sab-field { position: relative; width: min(760px, 88%); height: clamp(150px, calc(25 * var(--dvh1, 1dvh)), 260px); background: #fffdf7; border: 4px solid var(--edge, #111); border-radius: 18px; box-shadow: 5px 5px 0 var(--drop, #0008); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.sab-field i { position: absolute; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); font-style: normal; }
.sab-field .dot { width: clamp(26px, calc(3.2 * var(--vw1, 1vw)), 44px); aspect-ratio: 1; border-radius: 50%; border: 3px solid #111118; box-shadow: none; }
.sab-field .emo { font-size: clamp(32px, calc(4 * var(--vw1, 1vw)), 56px); line-height: 1; }
.sab-odd { display: grid; grid-template-columns: repeat(var(--cols, 4), auto); gap: 6px 18px; font-size: clamp(44px, calc(5.4 * var(--vw1, 1vw)), 80px); line-height: 1.1; padding: 10px 20px; background: #fffdf7; border: 4px solid var(--edge, #111); border-radius: 18px; box-shadow: 5px 5px 0 var(--drop, #0008); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.sab-math { color: var(--accent); -webkit-text-stroke: 0; }
.sab-cards { display: flex; gap: clamp(10px, calc(1.6 * var(--vw1, 1vw)), 24px); align-items: center; justify-content: center; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.sab-cards span { display: grid; place-items: center; width: clamp(110px, calc(13 * var(--vw1, 1vw)), 190px); aspect-ratio: 1; border-radius: 20px; border: 4px solid #111118; box-shadow: 5px 5px 0 #111118; color: #fff; font-weight: 900; font-size: calc(var(--s, 1) * clamp(44px, calc(5.6 * var(--vw1, 1vw)), 84px)); -webkit-text-stroke: 2px #111118; }
.sab-clue { min-height: 56px; font-size: 26px; font-weight: 900; color: #111118; background: #ffe600; padding: 10px 24px; border-radius: 18px; border: 4px solid #111118; box-shadow: 5px 5px 0 #111118; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.player-chip.cleared { border-color: #ffe600; background: #4a4410; }
.sab-reveal .sab-who { display: inline-block; margin: 0 8px; }
.sab-reveal .sab-who.is-caught { text-decoration: line-through 6px var(--good); }
.sab-verdict.none .sab-unmask { font-size: clamp(56px, calc(7 * var(--vw1, 1vw)), 96px); }
/* Telefon: pitanje i dugmad za brojeve / strelice / sličice. */
.sab-q-phone { margin: 0; font-weight: 900; font-size: 19px; color: #ffe600; }
.color-btn.opt-btn { display: grid; place-items: center; background: #fffdf7; color: #111118; font: 900 44px var(--font); border: 3px solid #111118; }
.color-btn.opt-btn.emoji { font-size: 54px; }
.color-btn.opt-btn.arrow { font-size: 56px; }
.color-btn { position: relative; }
.color-btn .honey-left { position: absolute; right: 6px; bottom: 4px; font: 900 16px var(--font); font-style: normal; color: #111118; background: #ffd24d; border-radius: 10px; padding: 0 6px; }
.fx-honey .color-grid { filter: sepia(.6) saturate(1.4); }
.fx-fog .color-grid { animation: sab-fog 1.4s ease-in-out infinite alternate; }
@keyframes sab-fog { from { opacity: .06; filter: blur(10px); } to { opacity: .4; filter: blur(5px); } }
.fog-overlay { position: fixed; inset: 0; display: grid; place-items: center; font-size: 140px; pointer-events: none; opacity: .5; background: radial-gradient(#ffffff55, #c9d4e0aa); animation: fade-in .3s; }
.fx-swap .color-grid { animation: jitter .3s infinite; }
.throw-target.nobody { border-style: dashed; }

/* ---------- 🔤 Najduža reč ---------- */
/* Poslednjih 10 s: tajmer pocrveni i pulsira (TV i telefon). */
.words-live.hurry .word-timer, .words-phone.hurry .word-timer { animation: words-hurry .5s ease-in-out infinite alternate; border-color: #e01b1b; }
.words-live.hurry .word-timer div, .words-phone.hurry .word-timer div { background: #e01b1b; }
@keyframes words-hurry { to { transform: scale(1.04, 1.5); } }
/* Otkrivanje: reč iskače slovo po slovo, posle svog reda. */
.word-found.spell i { font-style: normal; display: inline-block; animation: words-letter .28s cubic-bezier(.2, 1.6, .4, 1) var(--d, 0ms) backwards; }
@keyframes words-letter { from { opacity: 0; transform: translateY(-18px) scale(1.6); } }
.words-result .longest { animation: rise .4s ease-out var(--d, 0ms) backwards; }
.player .tap-zone.words-phone-result > :not(.react-bar) { animation-delay: calc(var(--t, 0ms) + var(--late, 0ms)); }
.player .tap-zone.words-phone-result .pts-big { animation-delay: calc(var(--t, 0ms) + var(--late, 0ms) + 300ms); }

/* Preokreti: zlatno slovo, slova koja tek stižu (kapaljka), svako svoja slova. */
.letter-row.many { gap: 8px; }
.letter-row.many .tile { width: 64px; height: 74px; font-size: 40px; }
.letter-row .tile.gold, .phone-tiles .tile.gold { background: #ffe600; box-shadow: 0 5px 0 #b38f00, 0 0 0 3px #111118; position: relative; }
.letter-row .tile.gold::after, .phone-tiles .tile.gold::after { content: '★'; position: absolute; top: -2px; right: 4px; font-size: .38em; color: #b3001b; }
.letter-row .tile.ghost, .phone-tiles .tile.ghost { background: transparent; color: #fff8; border: 3px dashed #fff6; box-shadow: none; display: grid; place-items: center; }
.phone-tiles .tile.ghost { aspect-ratio: 1; border-radius: 12px; font: 900 24px var(--font); }
.own-note { font-size: 30px; font-weight: 900; margin: 14px 0 22px; padding: 12px 24px; background: #fff3d6; color: #2a1d00; border-radius: 16px; border: 4px solid var(--edge, #111); box-shadow: 5px 5px 0 var(--drop, #0008); }
.own-letters { display: block; font-size: .72em; letter-spacing: 2px; opacity: .8; font-weight: 700; }
.words-phone .twist-badge { margin: 0 auto 2px; }

/* ---------- 🎨 Nacrtaj! ---------- */
/* Online tabla bez crteža (crtež je veliki na telefonu): samo ko crta, pomoć i pokušaji. */
.draw-live.no-art { grid-template-columns: 1fr; max-width: 760px; }
.draw-live.no-art .draw-side { align-items: center; text-align: center; }
.guess-feed li.close { background: #ffe600; color: #111118; }
.draw-note { margin: 0; font-weight: 800; animation: nudge-x .4s var(--ft, 0ms) backwards; }
.draw-note.close { color: #ffe600; font-size: 20px; animation: soft-pop .5s var(--ft, 0ms) backwards; }

/* ---------- 🕵️‍♂️ Uljez ---------- */
.imp-reveal .sab-unmask, .sab-reveal .sab-unmask { font-size: clamp(40px, calc(5.5 * var(--vw1, calc(1 * var(--vw1, 1vw)))), 72px); }
/* Kompaktni redovi da i 6 igrača stane na 720p uz otkrivenog. */
.sab-reveal .result-row, .imp-reveal .result-row { padding: 6px 14px; margin-bottom: 6px; font-size: 19px; }
.sab-reveal .result-row .avatar, .imp-reveal .result-row .avatar { font-size: 28px; }
.sab-reveal .result-row .pts, .imp-reveal .result-row .pts { font-size: 22px; }
.imp-reveal h1, .imp-reveal h2 { margin: 4px 0; }
.imp-reveal .results { margin-top: 8px; }
.imp-sent { font-weight: 800; font-size: 20px; animation: soft-pop .5s var(--ft, 0ms) backwards; }
.sab-panel h2 { text-shadow: none; color: #111118; }
.sab-panel h2 { -webkit-text-stroke: 0; }

/* Težina reči i preokreti crtanja. */
.draw-tier { display: inline-block; font-weight: 900; color: #111118; background: #fff3d6; border: 3px solid #111118; border-radius: 10px; padding: 2px 10px; box-shadow: 3px 3px 0 #111118; }
.draw-side .draw-tier { font-size: 20px; margin: 2px 0 6px; }
.draw-tier.tier-medium { background: #ffd24d; }
.draw-tier.tier-hard { background: #ff4f8b; color: #fff; }
.guess-phone .draw-tier, .draw-phone .draw-tier { font-size: 14px; padding: 0 6px; box-shadow: none; border-width: 2px; }
.draw-cap { margin: 0; font-size: 20px; font-weight: 800; }
.drawing.tw-upside > :not(rect) { transform: rotate(180deg); transform-origin: 500px 500px; }
.drawing.tw-flash > :not(rect) { animation: draw-flash 3s steps(1, end) infinite; }
@keyframes draw-flash { 0% { opacity: 1; } 35% { opacity: 0; } }
.draw-phone .canvas-wrap { position: relative; display: grid; place-items: center; }
.draw-phone .blind-note { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); pointer-events: none; padding: 4px 12px; border-radius: 12px; background: #111118cc; color: #fff; font-weight: 800; font-size: 15px; white-space: nowrap; }
.draw-phone .strokes-left { font-weight: 900; font-size: 18px; color: #ffe600; align-self: center; }

/* Uljez: preokreti (dva uljeza, uljez zna, nema uljeza). */
.imp-reveal .imp-who { display: inline-block; margin: 0 8px; }
.imp-reveal.no-imp .sab-unmask { font-size: clamp(56px, calc(7 * var(--vw1, 1vw)), 96px); }
.secret-word.imp-knows { color: var(--hot); }
.imp-clue { margin: 0; font-size: 18px; }
.imp-clue b { color: #ffe600; }
.talk-live .twist-badge, .talk-phone .twist-badge, .guess-phone .twist-badge, .draw-phone .twist-badge { margin: 0 auto 4px; }
/* Saboter: tri ponuđena odgovora staju u jedan red. */
.color-grid.opts-3 { grid-template-columns: repeat(3, 1fr); }
.color-grid.opts-3 .color-btn.opt-btn.emoji { font-size: 44px; }

/* =====================================================================================
   ANIMACIJE (b1 + zajednički „strip“ efekti za b2) — crteži su u js/art/*.js
   ===================================================================================== */

/* ---------- zajedničko: pečat, zvezda, čestice, reflektor, kutija, špijun (js/art/bfx.js) ---------- */
/* Pečat: tresne odozgo (veliki → mali), malo se zanjiše i ostane nakrivljen. */
.bx-stamp {
  --c: #e01b1b; display: inline-block; padding: .08em .36em; border: .13em solid var(--c); border-radius: .22em; color: var(--c);
  font-weight: 900; letter-spacing: .06em; line-height: 1.05; text-transform: uppercase; white-space: nowrap; background: #fff;
  box-shadow: inset 0 0 0 .05em #fff, inset 0 0 0 .1em var(--c), .12em .12em 0 #111118; transform: rotate(var(--tilt, -8deg));
  -webkit-text-stroke: 0; text-shadow: none;
  animation: bx-stamp .5s cubic-bezier(.2, 1.4, .4, 1) var(--d, 0ms) backwards;
}
.bx-stamp b { font-weight: 900; }
.bx-stamp.gold { --c: #b87a00; background: #ffe600; }
.bx-stamp.green { --c: #0a8a4a; background: #d6ffe9; }
.bx-stamp.ink { --c: #111118; background: #ffe600; }
.bx-stamp.blue { --c: #1746d1; }
@keyframes bx-stamp {
  0% { opacity: 0; transform: rotate(calc(var(--tilt, -8deg) - 14deg)) scale(3.4); }
  45% { opacity: 1; transform: rotate(var(--tilt, -8deg)) scale(.86); }
  62% { transform: rotate(calc(var(--tilt, -8deg) + 3deg)) scale(1.1); }
  80% { transform: rotate(calc(var(--tilt, -8deg) - 1deg)) scale(.97); }
}
/* Zvezda sa rečju */
.bx-burst { position: relative; display: inline-grid; place-items: center; padding: .5em .9em; line-height: 1; animation: bx-burst .5s cubic-bezier(.2, 1.6, .4, 1) var(--d, 0ms) backwards; }
.bx-burst svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bx-burst polygon { fill: var(--bc, #ffe600); stroke: #111118; stroke-width: 7; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(5px 5px 0 #111118); }
.bx-burst b { position: relative; font-weight: 900; color: var(--bt, #e01b1b); -webkit-text-stroke: 0; text-shadow: 2px 2px 0 #fff; white-space: nowrap; transform: rotate(-6deg); }
.bx-burst.red { --bc: #ff2d2d; --bt: #fff; } .bx-burst.red b { text-shadow: 3px 3px 0 #111118; }
.bx-burst.white { --bc: #fff; --bt: #111118; }
@keyframes bx-burst { 0% { opacity: 0; transform: scale(.1) rotate(-30deg); } 60% { opacity: 1; transform: scale(1.2) rotate(6deg); } }
.bx-back { position: absolute; left: 50%; top: 50%; width: 2.2em; height: 2.2em; margin: -1.1em 0 0 -1.1em; overflow: visible; pointer-events: none; }
.bx-back polygon { fill: var(--bc, #ffe600); stroke: #111118; stroke-width: 6; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: bx-back-spin 9s linear infinite; }
@keyframes bx-back-spin { to { transform: rotate(360deg); } }
/* Čestice: šarene krpice i zvezdice iz jedne tačke. */
.bx-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.bx-sparks i { position: absolute; left: -.16em; top: -.16em; width: .32em; height: .32em; background: #ffe600; border: .05em solid #111118; opacity: 0; animation: bx-spark .9s cubic-bezier(.12, .7, .3, 1) calc(var(--d, 0ms) + var(--k, 0) * 12ms) both; }
.bx-sparks i:nth-child(3n) { background: #ff2d2d; border-radius: 50%; }
.bx-sparks i:nth-child(3n+1) { background: #fff; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); border: 0; width: .44em; height: .44em; }
.bx-sparks i:nth-child(4n) { background: #19d38a; }
.bx-sparks i:nth-child(5n) { background: #00c2ff; }
@keyframes bx-spark {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(.2em) rotate(0) scale(.4); }
  6%, 70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--dist, 2em)) rotate(var(--r)) scale(1); }
}
/* Reflektor */
.bx-spot { position: absolute; left: 50%; bottom: -.1em; width: 3em; height: 4.2em; margin-left: -1.5em; pointer-events: none; transform-origin: 50% 0; animation: bx-spot-in .7s cubic-bezier(.3, 1.3, .5, 1) var(--d, 0ms) backwards; }
.bx-spot i { position: absolute; inset: 0; background: linear-gradient(#fff9, #ffe60088 55%, #ffe60033); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); }
.bx-spot::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -.22em; height: .5em; border-radius: 50%; background: #ffe600aa; }
@keyframes bx-spot-in { 0% { opacity: 0; transform: rotate(-50deg); } 55% { opacity: 1; transform: rotate(14deg); } 80% { transform: rotate(-5deg); } }
/* Glasačka kutija */
.bx-box { position: relative; display: inline-block; width: 1.05em; height: 1em; font-size: clamp(110px, calc(13 * var(--vw1, 1vw)), 170px); line-height: 1; }
.bx-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(.04em .04em 0 #111118); }
.bx-box .x-lid { fill: #ffd000; stroke: #111118; stroke-width: 7; stroke-linejoin: round; }
.bx-box .x-body { fill: #ffe600; stroke: #111118; stroke-width: 7; stroke-linejoin: round; }
.bx-box .x-slot { fill: #111118; }
.bx-box .x-shade { fill: rgba(17, 17, 24, .16); }
.bx-box .x-shine { fill: rgba(255, 255, 255, .7); }
.bx-box .x-seal { fill: #ff2d2d; stroke: #111118; stroke-width: 6; }
.bx-box .x-tick { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.bx-votes { position: absolute; left: 0; right: 0; top: -42%; height: 74%; overflow: hidden; pointer-events: none; }
.bx-vote { position: absolute; left: 50%; bottom: 0; width: .26em; height: .34em; margin-left: -.13em; background: #fff; border: .025em solid #111118; border-radius: .02em; opacity: 0; animation: bx-vote .7s cubic-bezier(.5, 0, .7, .4) backwards; }
.bx-vote::before { content: ""; position: absolute; left: 18%; right: 18%; top: 22%; height: .03em; background: #111118; box-shadow: 0 .07em 0 #111118, 0 .14em 0 #111118; }
@keyframes bx-vote {
  0% { opacity: 1; transform: translate(calc(var(--x, 0) * .1em), -120%) rotate(calc(var(--r, 0deg) * 3)); }
  55% { opacity: 1; transform: translate(0, -20%) rotate(var(--r, 0deg)); }
  100% { opacity: 1; transform: translate(0, 110%) rotate(0); }
}
/* Špijun */
.spy-art { display: block; height: 1em; width: auto; overflow: visible; }
.spy-art .s-coat { fill: #2b3a67; stroke: #111118; stroke-width: 7; stroke-linejoin: round; }
.spy-art .s-collar { fill: #3d5196; stroke: #111118; stroke-width: 6; stroke-linejoin: round; }
.spy-art .s-face { fill: #ffd3a3; stroke: #111118; stroke-width: 7; }
.spy-art .s-shade { fill: rgba(17, 17, 24, .16); }
.spy-art .s-band, .spy-art .s-tie { fill: #111118; stroke: #111118; stroke-width: 5; stroke-linejoin: round; }
.spy-art .s-white { fill: #fff; stroke: #111118; stroke-width: 4; }
.spy-art .s-pupils { fill: #111118; animation: spy-look 3.2s ease-in-out infinite; }
.spy-art .s-lid { fill: none; stroke: #111118; stroke-width: 9; stroke-linecap: round; }
.spy-art .s-brow { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; display: none; }
.spy-art .s-mouth { fill: none; stroke: #111118; stroke-width: 6; stroke-linecap: round; display: none; }
.spy-art .m-caught { fill: #5a0c0c; }
.spy-art .s-brim { fill: #1b1b26; stroke: #111118; stroke-width: 7; stroke-linejoin: round; }
.spy-art .s-crown { fill: #33334a; stroke: #111118; stroke-width: 7; stroke-linejoin: round; }
.spy-art .s-ribbon { fill: #ff2d2d; stroke: #111118; stroke-width: 6; stroke-linejoin: round; }
.spy-art .s-shine { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 6; stroke-linecap: round; }
.spy-art .s-sweat { fill: #7fd4ff; stroke: #111118; stroke-width: 4; stroke-linejoin: round; display: none; }
.spy-art:not(.caught):not(.smug):not(.good) .m-sneak, .spy-art.smug .m-smug, .spy-art.caught .m-caught, .spy-art.good .m-good { display: block; }
.spy-art .s-head { transform-box: fill-box; transform-origin: 50% 90%; animation: spy-bob 2.4s ease-in-out infinite; }
.spy-art .s-hat { transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes spy-look { 0%, 38%, 100% { transform: translateX(-5px); } 46%, 88% { transform: translateX(5px); } }
@keyframes spy-bob { 50% { transform: translateY(3px) rotate(-1.5deg); } }
/* uhvaćen: maska spadne, šešir odskoči, oči iskolačene, znoj */
.spy-art.caught .s-mask { transform-box: fill-box; transform-origin: 50% 50%; animation: spy-mask-off .7s cubic-bezier(.4, 0, .8, .6) var(--d, 0ms) both; }
.spy-art.caught .s-lid { display: none; }
.spy-art.caught .s-pupils { animation: none; }
.spy-art.caught .s-white { rx: 17px; ry: 17px; }
.spy-art.caught .s-hat { animation: spy-hat-pop .7s cubic-bezier(.2, 1.5, .4, 1) var(--d, 0ms) both; }
.spy-art.caught .s-sweat { display: block; animation: b-sweat .9s ease-in infinite; }
.spy-art.caught .s-head { animation: spy-shiver .16s linear infinite; }
@keyframes spy-mask-off { 0% { transform: none; opacity: 1; } 30% { transform: translate(6px, -8px) rotate(8deg); opacity: 1; } 100% { transform: translate(40px, 150px) rotate(70deg); opacity: 0; } }
@keyframes spy-hat-pop { 0% { transform: none; } 35% { transform: translateY(-46px) rotate(-14deg); } 100% { transform: translateY(-14px) rotate(-9deg); } }
@keyframes spy-shiver { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
/* izvukao se: namigne i naceri se */
.spy-art.smug .s-lid { stroke-width: 12; }
.spy-art.smug .s-eyes ellipse:nth-of-type(2) { transform-box: fill-box; transform-origin: center; animation: spy-wink 1.6s ease-in-out infinite; }
@keyframes spy-wink { 0%, 55%, 100% { transform: scaleY(1); } 65%, 85% { transform: scaleY(.1); } }
/* običan igrač: bez maske i šešira, kačket */
.spy-art.good .s-mask, .spy-art.good .s-lid { display: none; }
.spy-art.good .s-crown { fill: #1746d1; } .spy-art.good .s-brim { fill: #0f2f8f; } .spy-art.good .s-ribbon { fill: #ffe600; }
.spy-art.good .s-coat { fill: #19d38a; } .spy-art.good .s-collar { fill: #fff; }
.spy-art.good .s-pupils { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .bx-stamp, .bx-burst, .bx-spot, .bx-vote { animation-duration: .01s; }
  .bx-sparks i { animation: none; opacity: 0; }
  .bx-back polygon, .spy-art .s-pupils, .spy-art .s-head, .spy-art.caught .s-head, .spy-art.smug .s-eyes ellipse { animation: none; }
}

/* ---------- 🕵️ Saboter: crteži i animacije ---------- */
/* Tajna uloga (TV): špijun pod reflektorom, upitnici oko njega. */
.sab-hero { position: relative; display: inline-grid; place-items: end center; font-size: clamp(120px, calc(15 * var(--vw1, 1vw)), 190px); line-height: 1; height: 1.12em; margin-bottom: .06em; }
.sab-hero .bx-spot { font-size: .42em; }
.sab-hero .spy-art { position: relative; animation: sab-peek .7s cubic-bezier(.2, 1.5, .4, 1) .15s backwards; }
@keyframes sab-peek { from { transform: translateY(70%) scale(.7); opacity: 0; } }
.sab-qm { position: absolute; font-size: .34em; font-weight: 900; color: #ffe600; -webkit-text-stroke: .12em #111118; paint-order: stroke fill; animation: sab-qm 1.6s ease-in-out infinite; }
.sab-qm.q1 { left: -.9em; top: .3em; rotate: -18deg; }
.sab-qm.q2 { right: -.9em; top: .1em; rotate: 16deg; animation-delay: -.5s; font-size: .44em; }
.sab-qm.q3 { right: -1.7em; top: 1.3em; rotate: 30deg; animation-delay: -1s; font-size: .26em; }
@keyframes sab-qm { 50% { transform: translateY(-.25em) scale(1.15); } }
/* Zadatak: nova „karta“ se okrene (svaki zadatak je nov element). */
.sab-task { perspective: 900px; }
.host .sab-task > * { animation: sab-card-in .42s cubic-bezier(.2, 1.4, .4, 1) backwards; }
@keyframes sab-card-in { 0% { opacity: 0; transform: rotateY(-88deg) scale(.8); } 60% { opacity: 1; transform: rotateY(12deg) scale(1.04); } }
.sab-field i { animation: sab-dot-in .3s cubic-bezier(.2, 1.6, .4, 1) .2s backwards; }
.sab-field i:nth-child(2n) { animation-delay: .26s; } .sab-field i:nth-child(3n) { animation-delay: .32s; }
@keyframes sab-dot-in { from { scale: 0; } }
.sab-odd span, .sab-cards span { animation: sab-dot-in .3s cubic-bezier(.2, 1.6, .4, 1) .22s backwards; }
.sab-odd span:nth-child(2n), .sab-cards span:nth-child(2n) { animation-delay: .3s; }
/* Uzbuna: sirena se vrti, scena blesne crveno, žrtvi poskoči ikonica moći. */
.sab-alert-slot { display: grid; justify-items: center; min-height: 64px; }
.sab-alert:not(.empty) { display: inline-flex; align-items: center; gap: 14px; background: #ff2d2d; animation: sab-alert-in .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes sab-alert-in { 0% { transform: scale(.3) rotate(-6deg); opacity: 0; } 55% { transform: scale(1.12) rotate(2deg); opacity: 1; } 75% { transform: scale(.97) rotate(-1deg); } }
.siren-art { height: 1.5em; width: auto; overflow: visible; flex: none; }
.siren-art .si-dome { fill: #ffe600; stroke: #111118; stroke-width: 7; stroke-linejoin: round; animation: si-blink .3s steps(2, jump-none) 5; }
.siren-art .si-beam { fill: #fff; opacity: .75; transform-box: fill-box; transform-origin: 50% 100%; animation: si-beam .5s ease-in-out 4 alternate; }
.siren-art .si-shine { fill: rgba(255, 255, 255, .7); }
.siren-art .si-base { fill: #111118; stroke: #111118; stroke-width: 6; stroke-linejoin: round; }
.siren-art .si-rays { fill: none; stroke: #ffe600; stroke-width: 8; stroke-linecap: round; animation: si-rays .3s steps(2, jump-none) 6; }
@keyframes si-blink { 50% { fill: #fff; } }
@keyframes si-beam { from { transform: skewX(-22deg); } to { transform: skewX(22deg); } }
@keyframes si-rays { 50% { opacity: 0; } }
.sab-flash { position: fixed; inset: 0; pointer-events: none; background: #ff2d2d; opacity: 0; z-index: 5; animation: sab-flash 1s ease-out; }
@keyframes sab-flash { 0% { opacity: .5; } 20% { opacity: .08; } 36% { opacity: .38; } 56% { opacity: .05; } 70% { opacity: .22; } 100% { opacity: 0; } }
.host .player-chip.sab-hit { background: #ffd9d9; }
.host .sab-fx-ico { display: inline-block; }
.host .player-chip.sab-hit .sab-fx-ico { animation: sab-ico .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes sab-ico { 0% { transform: scale(3.4) rotate(-30deg); opacity: 0; } 40% { transform: scale(.8) rotate(10deg); opacity: 1; } 60% { transform: scale(1.25) rotate(-6deg); } }
.host .player-chip.hit-freeze { background: #c9f1ff; } .host .player-chip.hit-honey { background: #ffe6a3; } .host .player-chip.hit-fog { background: #e3e7ee; }
/* Glasanje: kutija u koju upadaju listići. */
.vote-hero { position: relative; display: inline-grid; place-items: center; margin: clamp(34px, calc(6 * var(--dvh1, 1dvh)), 70px) 0 6px; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) backwards; }
/* Otkrivanje: reflektor pređe, špijunu spadne maska, pečat tresne, scena se zatrese. */
.sab-spy { position: relative; display: inline-grid; place-items: end center; font-size: 1.5em; height: 1em; width: 1em; vertical-align: -.12em; margin-right: .12em; }
.sab-spy .spy-art { position: relative; --d: calc(var(--late, 0ms) + 550ms); }
.sab-spy .bx-spot { font-size: .34em; --d: var(--late, 0ms); }
.sab-spy .bx-sparks { font-size: .3em; --d: calc(var(--late, 0ms) + 700ms); }
.sab-spy.tv { width: 1.1em; }
.sab-spy .bx-back { font-size: .56em; --bc: #ff2d2d; }
.sab-unmask.got-away .spy-art { animation: sab-tiptoe 1s ease-in-out calc(var(--late, 0ms) + 700ms) infinite; }
@keyframes sab-tiptoe { 25% { transform: translate(.1em, -.07em) rotate(5deg); } 50% { transform: translate(.2em, 0) rotate(0); } 75% { transform: translate(.1em, -.07em) rotate(-5deg); } }
.sab-reveal .sab-who.is-caught { text-decoration: none; }
.sab-reveal .sab-verdict h1.sab-stamp {
  display: inline-block; margin: 6px 0 4px; padding: 2px 18px; background: #fff; color: #e01b1b; border: 5px solid #e01b1b; border-radius: 12px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #e01b1b, 6px 6px 0 #111118; -webkit-text-stroke: 0; text-shadow: none; text-transform: uppercase; letter-spacing: 1px;
  --tilt: -4deg; transform: rotate(-4deg); animation: bx-stamp .5s cubic-bezier(.2, 1.4, .4, 1) calc(var(--late, 0ms) + 650ms) backwards;
}
.sab-reveal .sab-verdict h1.sab-stamp.escaped { color: #111118; border-color: #111118; background: #ffe600; box-shadow: 6px 6px 0 #111118; --tilt: 3deg; transform: rotate(3deg) skewX(-6deg); animation: sab-zoom-by .5s cubic-bezier(.2, 1.2, .4, 1) calc(var(--late, 0ms) + 650ms) backwards; }
@keyframes sab-zoom-by { 0% { opacity: 0; transform: translateX(-120%) skewX(-30deg); } 60% { opacity: 1; transform: translateX(6%) skewX(-12deg) rotate(3deg); } }
.sab-live.sab-reveal.quake { animation: quake .45s linear calc(var(--late, 0ms) + 820ms); }
/* Zli TV (nije bilo sabotera) */
.eviltv-art { position: relative; display: block; height: 1em; width: auto; overflow: visible; animation: tv-evil 1.2s ease-in-out infinite; transform-origin: 50% 100%; }
.eviltv-art .tv-box { fill: #ffe600; stroke: #111118; stroke-width: 8; stroke-linejoin: round; }
.eviltv-art .tv-shade { fill: rgba(17, 17, 24, .16); }
.eviltv-art .tv-screen { fill: #2a1030; stroke: #111118; stroke-width: 7; }
.eviltv-art .tv-glare { fill: rgba(255, 255, 255, .25); }
.eviltv-art .tv-horn { fill: #ff2d2d; stroke: #111118; stroke-width: 7; stroke-linejoin: round; }
.eviltv-art .tv-eye { fill: #ffe600; stroke: #111118; stroke-width: 4; stroke-linejoin: round; }
.eviltv-art .tv-pupil { fill: #111118; }
.eviltv-art .tv-grin { fill: #fff; stroke: #111118; stroke-width: 5; stroke-linejoin: round; }
.eviltv-art .tv-leg { fill: none; stroke: #111118; stroke-width: 9; stroke-linecap: round; }
.eviltv-art .tv-face { animation: tv-glitch 2.2s steps(1) infinite; }
@keyframes tv-evil { 50% { transform: rotate(-3deg) scale(1.04, .97); } }
@keyframes tv-glitch { 0%, 100% { transform: none; } 46% { transform: translateX(5px); } 50% { transform: translateX(-4px); } 54% { transform: none; } }

/* Telefon: uloga (crtež umesto emotikona) */
.player .huge.sab-role { font-size: 150px; filter: drop-shadow(5px 5px 0 #111118); display: grid; place-items: center; }
.sab-panel .huge.sab-role { font-size: 110px; margin: 0; }
/* Telefon: odgovor — tačno prsne, pogrešno se zatrese. */
.player .sab-done .huge { position: relative; }
.player .sab-done.ok .huge { animation: pts-pop .45s cubic-bezier(.2, 1.6, .4, 1) var(--since, 0ms) backwards; }
.player .sab-done.out .huge { animation: wrong .45s var(--since, 0ms) backwards; }
.player .sab-done .bx-sparks { font-size: 44px; --d: var(--since, 0ms); }
.player .sab-phone .color-btn:active { transform: translateY(5px) scale(.96); box-shadow: inset 0 -2px 0 #0003; }
.fx-note.on { display: inline-block; align-self: center; padding: 4px 14px; background: #ff2d2d; color: #fff; border: 3px solid #111118; border-radius: 12px; box-shadow: 3px 3px 0 #111118; animation: sab-note .5s ease-in-out infinite alternate; }
@keyframes sab-note { from { transform: rotate(-2deg) scale(1); } to { transform: rotate(2deg) scale(1.06); } }
/* Telefon: efekti sabotaže */
.sab-grid-wrap { position: relative; display: grid; justify-items: center; width: 100%; }
.sab-grid-wrap .color-grid { position: relative; z-index: 1; }
/* 🧊 led raste sa ivica, kocka leda drhti */
.freeze-overlay { z-index: 4; overflow: hidden; }
.frost-wrap { position: absolute; inset: 0; pointer-events: none; }
.frost { position: absolute; left: 0; width: 100%; height: calc(30 * var(--dvh1, 1dvh)); overflow: visible; }
.frost.f-bottom { bottom: 0; transform-origin: 50% 100%; animation: frost-grow .9s cubic-bezier(.2, 1.3, .4, 1) var(--ft, 0ms) backwards; }
.frost.f-top { top: 0; transform-origin: 50% 0; transform: scaleY(-1); animation: frost-grow-top .9s cubic-bezier(.2, 1.3, .4, 1) calc(var(--ft, 0ms) + 120ms) backwards; }
.frost .fr-shard { fill: #e9fbff; stroke: #111118; stroke-width: 4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.frost .fr-line { fill: none; stroke: #7fd4ff; stroke-width: 3; vector-effect: non-scaling-stroke; }
@keyframes frost-grow { from { transform: scaleY(0); } }
.freeze-msg { position: relative; display: grid; justify-items: center; gap: 6px; animation: boom .5s cubic-bezier(.2, 1.6, .4, 1) var(--ft, 0ms) backwards; }
.freeze-msg b { background: #fff; color: #06324a; border: 4px solid #111118; border-radius: 14px; padding: 4px 16px; box-shadow: 4px 4px 0 #111118; font-size: 28px; }
.icecube-art { height: 170px; width: auto; overflow: visible; filter: drop-shadow(5px 5px 0 #111118); animation: ice-shiver .14s linear infinite; }
.icecube-art .ic-body { fill: #9fe3ff; stroke: #111118; stroke-width: 8; stroke-linejoin: round; }
.icecube-art .ic-top { fill: #d9f6ff; stroke: #111118; stroke-width: 6; stroke-linejoin: round; }
.icecube-art .ic-side { fill: rgba(17, 17, 24, .16); }
.icecube-art .ic-edge { fill: none; stroke: #111118; stroke-width: 6; stroke-linecap: round; }
.icecube-art .ic-shine { fill: rgba(255, 255, 255, .8); }
.icecube-art .ic-face { fill: #111118; }
.icecube-art .ic-face path { fill: none; stroke: #111118; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.icecube-art .ic-crack { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ice-shiver { 25% { transform: translateX(-2px) rotate(-.6deg); } 75% { transform: translateX(2px) rotate(.6deg); } }
/* 🌀 vrtlog iza izmešanih dugmadi */
.swirl-art { position: absolute; left: 50%; top: 50%; width: 330px; height: 330px; margin: -165px 0 0 -165px; overflow: visible; animation: spin .9s linear infinite; }
.swirl-art path { fill: none; stroke: #ffe600; stroke-width: 12; stroke-linecap: round; opacity: .85; }
.swirl-art .sw-2 { stroke: #fff; }
/* 🌫️ oblaci plove preko dugmadi */
.fx-fog .color-grid { animation: sab-fog-soft 1.4s ease-in-out infinite alternate; filter: blur(6px); }
@keyframes sab-fog-soft { from { opacity: .08; } to { opacity: .42; } }
.fog-overlay { font-size: 0; opacity: 1; background: #c9d4e055; overflow: hidden; z-index: 4; animation: fade-in .3s var(--ft, 0ms) backwards; }
.cloud-art { position: absolute; width: 76%; height: auto; overflow: visible; }
.cloud-art .cl-body { fill: #fff; stroke: #111118; stroke-width: 6; stroke-linejoin: round; }
.cloud-art .cl-shade { fill: rgba(17, 17, 24, .12); }
.cloud-art .cl-puff { fill: none; stroke: rgba(17, 17, 24, .25); stroke-width: 5; stroke-linecap: round; }
.cloud-art.c1 { left: -30%; top: 26%; animation: fog-drift 3.2s ease-in-out infinite alternate; }
.cloud-art.c2 { left: 40%; top: 42%; width: 88%; animation: fog-drift 2.6s ease-in-out -1s infinite alternate-reverse; }
.cloud-art.c3 { left: -10%; top: 60%; width: 70%; animation: fog-drift 3.8s ease-in-out -2s infinite alternate; }
.cloud-art.c4 { left: 30%; top: 12%; width: 60%; opacity: .9; animation: fog-drift 4.4s ease-in-out -.5s infinite alternate-reverse; }
@keyframes fog-drift { from { transform: translateX(-16%); } to { transform: translateX(22%); } }
/* 🍯 med curi preko dugmadi */
.honey-art { position: absolute; z-index: 2; left: 50%; top: 4px; width: min(380px, 96%); height: 120px; margin-left: calc(min(380px, 96%) / -2); pointer-events: none; overflow: visible; transform-origin: 50% 0; animation: honey-drip .9s cubic-bezier(.3, 1.3, .5, 1) var(--ft, 0ms) backwards, honey-ooze 1.6s ease-in-out calc(var(--ft, 0ms) + 900ms) infinite alternate; }
.honey-art .ho-body { fill: #ffb300; stroke: #111118; stroke-width: 5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.honey-art .ho-shine { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@keyframes honey-drip { from { transform: scaleY(0); } }
@keyframes honey-ooze { to { transform: scaleY(1.14); } }
/* Telefon: glas je ubačen u kutiju */
.vote-hero.phone { margin: 60px 0 0; }
.vote-hero.phone .bx-box { font-size: 150px; }
.player .vote-hero.phone .bx-vote { animation-delay: calc(var(--ft, 0ms) + 250ms); }
.vote-who { position: absolute; left: 50%; top: 67%; transform: translate(-50%, -50%); font-size: 46px; line-height: 1; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 4px solid #111118; }
@media (prefers-reduced-motion: reduce) {
  .sab-qm, .siren-art *, .sab-flash, .icecube-art, .swirl-art, .cloud-art, .honey-art, .eviltv-art, .eviltv-art .tv-face, .fx-note.on, .sab-unmask.got-away .spy-art, .sab-live.sab-reveal.quake { animation: none; }
  .host .sab-task > *, .frost, .sab-hero .spy-art { animation-duration: .01s; }
}
/* Zadatak i tajmer su novi elementi za svaki zadatak — stoje u stalnim „pregradama“, da se ostatak ekrana ne pravi iznova. */
.sab-slot { width: 100%; display: grid; justify-items: center; }
.sab-hero { margin-top: clamp(30px, calc(7 * var(--dvh1, 1dvh)), 80px); }
.sab-reveal .sab-spy { font-size: 1.9em; margin: -.32em .1em -.3em 0; vertical-align: middle; }
.sab-reveal .sab-verdict h1.sab-stamp { font-size: clamp(30px, calc(4.2 * var(--vw1, 1vw)), 54px); margin: -4px 0 4px; position: relative; z-index: 2; }
.sab-reveal .sab-verdict.none .sab-spy { font-size: 1.15em; margin: 0; }
.player .tap-zone.sab-phone.secret .huge.sab-role, .player .tap-zone .huge.sab-role { font-size: 170px; }
.frost.f-top { transform-origin: 50% 50%; }
@keyframes frost-grow-top { from { transform: translateY(-100%) scaleY(-1); } to { transform: scaleY(-1); } }
.swirl-art { width: 430px; height: 430px; margin: -215px 0 0 -215px; }

/* ---------- 🔤 Najduža reč: debele strip-pločice koje se dele, skaču i lupaju ---------- */
.words-slot { width: 100%; display: grid; justify-items: center; }
.letter-row .tile, .phone-tiles .tile { background: #fffdf2; color: #111118; border: 4px solid #111118; box-shadow: 4px 6px 0 #111118; }
.letter-row .tile { position: relative; transform: rotate(var(--tilt, 0deg)); border-radius: 16px; }
.letter-row.small .tile { border-width: 3px; box-shadow: 3px 4px 0 #111118; border-radius: 10px; }
.letter-row .tile.gold, .phone-tiles .tile.gold { background: #ffe600; box-shadow: 4px 6px 0 #111118; overflow: visible; }
.letter-row .tile.ghost, .phone-tiles .tile.ghost { box-shadow: none; }
/* deljenje: pločica padne odozgo, zgnječi se i odskoči (jedna po jedna) */
.host .letter-row .tile { animation: tile-deal .5s cubic-bezier(.3, .9, .4, 1) backwards; animation-delay: calc(120ms + var(--n, 0) * 60ms); }
.host .letter-row .tile.ghost { animation: fade-in .3s backwards; }
@keyframes tile-deal {
  0% { opacity: 0; transform: translateY(-170px) rotate(-28deg) scale(.7); }
  55% { opacity: 1; transform: translateY(8px) rotate(var(--tilt, 0deg)) scale(1.12, .84); }
  75% { transform: translateY(-9px) rotate(var(--tilt, 0deg)) scale(.96, 1.06); }
}
/* neko je našao reč: talas preko pločica + varnice iz natpisa */
.host .tile-wave.wave .tile { animation: tile-wave .55s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(var(--n, 0) * 38ms); }
.host .tile-wave.wave .tile.ghost { animation: none; }
@keyframes tile-wave {
  0% { transform: rotate(var(--tilt, 0deg)); }
  35% { transform: translateY(-26px) rotate(calc(var(--tilt, 0deg) * -2)) scale(1.12); background: #ffe600; }
  70% { transform: translateY(5px) rotate(var(--tilt, 0deg)) scale(1.04, .92); }
}
.words-alert:not(.empty) { position: relative; background: #ffe600; color: #111118; animation: sab-alert-in .5s cubic-bezier(.2, 1.6, .4, 1); }
.words-alert .bx-sparks { font-size: 30px; }
/* zlatno slovo: zvezdica treperi */
.glint-art { position: absolute; right: -14px; top: -16px; width: 30px; height: 30px; overflow: visible; animation: glint 1.5s ease-in-out infinite; }
.glint-art path { fill: #fff; stroke: #111118; stroke-width: 4; stroke-linejoin: round; }
.letter-row .tile.gold::after, .phone-tiles .tile.gold::after { content: none; }
@keyframes glint { 0%, 100% { transform: scale(.5) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
.phone-tiles .tile.gold { position: relative; }
.phone-tiles .tile.gold::before { content: '★'; position: absolute; top: -9px; right: -6px; font-size: 18px; line-height: 1; color: #fff; -webkit-text-stroke: 3px #111118; paint-order: stroke fill; animation: glint 1.5s ease-in-out infinite; }
/* otkrivanje: reč se kuca slovo po slovo — svako slovo „tresne“ kao pločica */
.word-found.spell { letter-spacing: 0; white-space: nowrap; }
.word-found.spell i { min-width: 1.15em; padding: 0 .12em; margin: 0 1px; text-align: center; background: #fffdf2; color: #111118; border: 2.5px solid #111118; border-radius: 6px; box-shadow: 2px 3px 0 #111118; animation: words-thunk .3s cubic-bezier(.3, 1.2, .5, 1) var(--d, 0ms) backwards; }
@keyframes words-thunk { 0% { opacity: 0; transform: translateY(-30px) scale(1.9) rotate(-12deg); } 60% { opacity: 1; transform: translateY(3px) scale(.86, .8); } 80% { transform: translateY(-2px) scale(1.06); } }
.result-row.is-top .word-found.spell i { background: #fff; animation: words-thunk .3s cubic-bezier(.3, 1.2, .5, 1) var(--d, 0ms) backwards, words-hop .5s ease-in-out calc(var(--d, 0ms) + 900ms) 2; }
@keyframes words-hop { 40% { transform: translateY(-9px) rotate(-6deg); background: #ffe600; } }
.words-result .result-row.is-top .tag-pill { display: inline-block; animation: pts-pop .5s cubic-bezier(.2, 1.6, .4, 1) var(--word-ms, 0ms) backwards; }
/* TELEFON */
.phone-tiles { gap: 9px; }
.phone-tiles .tile { border-width: 3px; box-shadow: 0 5px 0 #111118; border-radius: 13px; }
.phone-tiles .tile:not(.used):active { transform: translateY(4px) scale(.94); box-shadow: 0 1px 0 #111118; }
.phone-tiles .tile.used { opacity: .28; transform: translateY(4px); box-shadow: 0 1px 0 #111118; }
.player .phone-tiles .tile { animation: tile-deal-ph .32s cubic-bezier(.3, 1.3, .5, 1) backwards; animation-delay: calc(var(--t, 0ms) + 120ms + var(--i, 0) * 28ms); }
@keyframes tile-deal-ph { from { opacity: 0; transform: translateY(-26px) rotate(-14deg) scale(.6); } }
.player .phone-tiles .tile.just { animation: tile-jump .28s cubic-bezier(.3, 1.2, .5, 1) var(--pick, 0ms) backwards; }
@keyframes tile-jump { 0% { opacity: 1; transform: none; } 45% { opacity: 1; transform: translateY(-20px) rotate(-10deg) scale(1.18); background: #ffe600; } }
.player .phone-tiles.wave .tile:not(.used):not(.just) { animation: tile-wave-ph .5s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(var(--since, 0ms) + var(--i, 0) * 26ms); }
@keyframes tile-wave-ph { 35% { transform: translateY(-13px) scale(1.1); background: #b9ffd9; } 70% { transform: translateY(3px) scale(1.02, .94); } }
.player .phone-tiles.nope { animation: wrong .4s var(--since, 0ms) backwards; }
/* reč koja se slaže: slova uskaču u red kao male pločice */
.word-now { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px; letter-spacing: 0; min-height: 50px; }
.word-now i { font-style: normal; display: grid; place-items: center; min-width: 30px; height: 40px; padding: 0 4px; background: #ffe600; color: #111118; border: 3px solid #111118; border-radius: 8px; box-shadow: 0 3px 0 #111118; font-size: 26px; line-height: 1; }
.player .word-now i.new { animation: word-snap .26s cubic-bezier(.2, 1.7, .4, 1) var(--since, 0ms) backwards; }
@keyframes word-snap { 0% { opacity: 0; transform: translateY(44px) scale(.4) rotate(14deg); } 70% { opacity: 1; transform: translateY(-3px) scale(1.14); } }
.word-feedback { position: relative; }
.word-feedback .bx-sparks { font-size: 24px; --d: var(--since, 0ms); }
.player .word-feedback.ok { display: inline-block; align-self: center; background: #b9ffd9; color: #111118; border: 3px solid #111118; border-radius: 10px; padding: 2px 12px; box-shadow: 3px 3px 0 #111118; animation: bx-stamp .4s cubic-bezier(.2, 1.4, .4, 1) var(--since, 0ms) backwards; --tilt: -2deg; transform: rotate(-2deg); }
/* telefon, rezultat: reč od pločica i pehar */
.word-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; -webkit-text-stroke: 0 !important; text-shadow: none !important; }
.word-tiles i { font-style: normal; display: grid; place-items: center; min-width: 32px; height: 42px; padding: 0 4px; background: #fffdf2; color: #111118; border: 3px solid #111118; border-radius: 8px; box-shadow: 0 3px 0 #111118; font-size: 26px; animation: words-thunk .3s cubic-bezier(.3, 1.2, .5, 1) backwards; animation-delay: calc(var(--t, 0ms) + var(--late, 0ms) + 250ms + var(--k, 0) * 70ms); }
.player .tap-zone.words-phone-result .word-tiles { animation: none; }
.huge.words-cup { position: relative; display: grid; place-items: center; }
.cup-art { height: 1.25em; width: auto; overflow: visible; }
.cup-art .cu-body, .cup-art .cu-base, .cup-art .cu-stem { fill: #ffd000; stroke: #111118; stroke-width: 8; stroke-linejoin: round; }
.cup-art .cu-base { fill: #111118; }
.cup-art .cu-ear { fill: none; stroke: #111118; stroke-width: 9; stroke-linecap: round; }
.cup-art .cu-shade { fill: rgba(17, 17, 24, .16); }
.cup-art .cu-shine { fill: rgba(255, 255, 255, .7); }
.cup-art .cu-star { fill: #fff; stroke: #111118; stroke-width: 5; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: glint 1.6s ease-in-out infinite; }
.words-cup .bx-sparks { font-size: 44px; --d: calc(var(--t, 0ms) + var(--late, 0ms) + 300ms); }
@media (prefers-reduced-motion: reduce) {
  .glint-art, .phone-tiles .tile.gold::before, .cup-art .cu-star { animation: none; }
  .host .letter-row .tile, .host .tile-wave.wave .tile, .word-found.spell i, .player .phone-tiles .tile, .word-tiles i { animation-duration: .01s; }
}
.words-result .word-found.spell { font-size: 23px; }
.words-result .letter-row.small { margin: 2px 0 8px; gap: 7px; }
.words-result .letter-row.small .tile { width: 42px; height: 46px; font-size: 26px; }
.words-result .longest { margin-top: 2px; }

/* ---------- 🎨 Nacrtaj!: papir sa selotejpom, olovka, pečat „TAČNO!“, karta sa rečju ---------- */
.draw-easel { position: relative; width: fit-content; transform: rotate(-.8deg); animation: draw-paper-in .6s cubic-bezier(.2, 1.3, .4, 1) backwards; }
@keyframes draw-paper-in { 0% { opacity: 0; transform: translateY(-60px) rotate(-9deg) scale(.9); } 60% { opacity: 1; transform: translateY(6px) rotate(.6deg); } }
.tape { position: absolute; z-index: 2; width: 92px; height: 30px; background: #ffe600cc; border: 2px solid #11111855; box-shadow: 2px 2px 0 #1111182e; pointer-events: none; }
.tape.t1 { left: -30px; top: 8px; transform: rotate(-38deg); }
.tape.t2 { right: -30px; top: 8px; transform: rotate(36deg); }
.draw-paper, .canvas-wrap { position: relative; }
.draw-paper { display: inline-block; }
.draw-paper .tape, .canvas-wrap .tape { width: 62px; height: 20px; }
.draw-paper .tape.t1, .canvas-wrap .tape.t1 { left: -20px; top: 5px; } .draw-paper .tape.t2, .canvas-wrap .tape.t2 { right: -20px; top: 5px; }
/* olovka: vrh stoji na kraju poslednjeg poteza i klizi za njim (--x/--y: 0–1000) */
.draw-pen-layer { position: absolute; inset: 5px; pointer-events: none; overflow: hidden; border-radius: 14px; z-index: 1; }
.draw-pen { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: translate(calc(var(--x, 500) * .63px), calc(var(--y, 500) * .63px)); transition: transform .27s linear; }
.pencil-art { position: absolute; left: -22px; bottom: 0; width: 44px; height: 150px; overflow: visible; transform-origin: 50% 100%; transform: rotate(32deg); filter: drop-shadow(4px 4px 0 #11111833); animation: pen-scribble .32s ease-in-out infinite alternate; }
@keyframes pen-scribble { from { transform: rotate(27deg); } to { transform: rotate(38deg) translateY(-3px); } }
.pencil-art .pe-body { fill: #ffe600; stroke: #111118; stroke-width: 5; stroke-linejoin: round; }
.pencil-art .pe-stripe { fill: none; stroke: #e0b400; stroke-width: 3; }
.pencil-art .pe-shade { fill: rgba(17, 17, 24, .16); }
.pencil-art .pe-wood { fill: #ffd9a8; stroke: #111118; stroke-width: 5; stroke-linejoin: round; }
.pencil-art .pe-lead { fill: #111118; }
.pencil-art .pe-ring { fill: #cfd6e4; stroke: #111118; stroke-width: 5; stroke-linejoin: round; }
.pencil-art .pe-rubber { fill: #ff6b8e; stroke: #111118; stroke-width: 5; stroke-linejoin: round; }
.pencil-art .pe-shine { fill: rgba(255, 255, 255, .7); }
/* paleta u naslovu */
.draw-who { display: flex; align-items: center; gap: 10px; }
.palette-art { height: 1.7em; width: auto; overflow: visible; flex: none; filter: drop-shadow(3px 3px 0 #111118); animation: pal-bob 2.2s ease-in-out infinite; }
@keyframes pal-bob { 50% { transform: rotate(-7deg) translateY(-3px); } }
.palette-art .pa-board { fill: #f1c58a; stroke: #111118; stroke-width: 8; stroke-linejoin: round; }
.palette-art .pa-shade { fill: rgba(17, 17, 24, .16); }
.palette-art .pa-hole { fill: #1746d1; stroke: #111118; stroke-width: 7; }
.palette-art .pa-dot { stroke: #111118; stroke-width: 5; }
.palette-art .d1 { fill: #ff2d2d; } .palette-art .d2 { fill: #ffe600; } .palette-art .d3 { fill: #19d38a; } .palette-art .d4 { fill: #00c2ff; } .palette-art .d5 { fill: #b44dff; }
.palette-art .br-stick { fill: #fff; stroke: #111118; stroke-width: 6; stroke-linejoin: round; }
.palette-art .br-tip { fill: #ff2d2d; stroke: #111118; stroke-width: 6; stroke-linejoin: round; }
.palette-art .pa-brush { transform-box: fill-box; transform-origin: 20% 80%; animation: brush-dab 1.1s ease-in-out infinite; }
@keyframes brush-dab { 50% { transform: rotate(-9deg) translate(4px, -4px); } }
/* pokušaji: najnoviji uleti na vrh */
.host .guess-feed li { animation: feed-in .4s cubic-bezier(.2, 1.5, .4, 1); transform-origin: 0 50%; }
@keyframes feed-in { 0% { opacity: 0; transform: translateX(-70px) scale(.7) rotate(-5deg); } 60% { opacity: 1; transform: translateX(6px) scale(1.06) rotate(1deg); } }
.host .guess-feed li.ok { animation: feed-in .4s cubic-bezier(.2, 1.5, .4, 1), soft-pop .5s ease-out .45s 2; }
.host .guess-feed li.close { animation: feed-in .4s cubic-bezier(.2, 1.5, .4, 1), wrong .45s .4s; }
/* tačan pogodak: zvezda + konfete + pečat, pa nestane */
.draw-hit-slot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 4; pointer-events: none; }
.draw-live.no-art .draw-hit-slot { position: relative; left: auto; top: auto; width: 100%; height: 0; }
.draw-hit { position: absolute; left: 0; top: 0; width: 0; height: 0; display: grid; place-items: center; font-size: 64px; animation: draw-hit-out .4s ease-in 1.9s forwards; }
.draw-live.no-art .draw-hit { left: 50%; top: -140px; font-size: 40px; }
@keyframes draw-hit-out { to { opacity: 0; transform: scale(.6) translateY(-40px); } }
.draw-hit > * { grid-area: 1 / 1; }
.dh-burst { width: 6.4em; height: 6.4em; overflow: visible; animation: bx-burst .5s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.dh-burst polygon { fill: #ffe600; stroke: #111118; stroke-width: 9; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: bx-back-spin 7s linear infinite; }
.dh-who { display: grid; justify-items: center; line-height: 1; white-space: nowrap; transform: translateY(-.55em); animation: pts-pop .5s cubic-bezier(.2, 1.6, .4, 1) .1s backwards; }
.dh-who .avatar { font-size: 1.9em; filter: drop-shadow(4px 4px 0 #111118); }
.dh-who b { font-size: .55em; color: #111118; }
.draw-hit .bx-stamp { transform: translateY(1.35em) rotate(-8deg); --d: 250ms; font-size: 1em; animation-name: draw-stamp; }
@keyframes draw-stamp { 0% { opacity: 0; transform: translateY(1.35em) rotate(-22deg) scale(3.4); } 45% { opacity: 1; transform: translateY(1.35em) rotate(-8deg) scale(.86); } 62% { transform: translateY(1.35em) rotate(-5deg) scale(1.1); } 100% { transform: translateY(1.35em) rotate(-8deg); } }
.draw-hit .bx-sparks { --d: 150ms; }
/* otkrivanje: reč se okrene kao karta */
.draw-card { perspective: 900px; width: fit-content; max-width: 100%; }
.draw-card .dc-in { position: relative; display: grid; transform-style: preserve-3d; animation: draw-flip .8s cubic-bezier(.3, 1.3, .5, 1) .15s backwards; }
.draw-card .dc-in > * { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.draw-card h1.accent, .host .draw-side .draw-card h1.accent { margin: 0; padding: 10px 26px; background: #fff; color: #e01b1b; border: 5px solid #111118; border-radius: 18px; box-shadow: 7px 7px 0 #111118; -webkit-text-stroke: 0; text-shadow: none; animation: none; transform: rotate(-2deg); overflow-wrap: anywhere; }
.draw-card .dc-back { display: grid; place-items: center; background: #ff2d2d; color: #ffe600; border: 5px solid #111118; border-radius: 18px; font-size: 60px; font-weight: 900; transform: rotateY(180deg); }
@keyframes draw-flip { 0% { transform: rotateY(-180deg) scale(.7); } 30% { transform: rotateY(-180deg) scale(1); } }
/* TELEFON */
.draw-got { position: absolute; left: 50%; top: 50%; width: 0; height: 0; display: grid; place-items: center; font-size: 46px; z-index: 3; }
.draw-got > * { grid-area: 1 / 1; }
.draw-got .bx-stamp { --d: var(--ft, 0ms); }
.draw-got .bx-sparks { --d: var(--ft, 0ms); }
.player .guess-phone.got .draw-paper { animation: soft-pop .5s ease-out var(--ft, 0ms) backwards; }
.player .draw-result .draw-word { display: inline-block; background: #fff; color: #e01b1b; border: 4px solid #111118; border-radius: 12px; padding: 2px 14px; box-shadow: 4px 4px 0 #111118; -webkit-text-stroke: 0; text-shadow: none; transform: rotate(-2deg); animation: word-card-flip .6s cubic-bezier(.3, 1.4, .5, 1) calc(var(--t, 0ms) + 250ms) backwards; }
@keyframes word-card-flip { 0% { transform: rotateX(90deg) scale(.6); opacity: 0; } 60% { transform: rotateX(-12deg) rotate(-2deg) scale(1.08); opacity: 1; } }
.player .draw-phone .swatch { border: 3px solid #111118; box-shadow: 0 3px 0 #111118; transition: transform .15s cubic-bezier(.2, 1.6, .4, 1); }
.player .draw-phone .swatch.on { transform: scale(1.25) translateY(-3px); border-color: #fff; box-shadow: 0 0 0 3px #111118, 0 5px 0 3px #111118; }
@media (prefers-reduced-motion: reduce) {
  .pencil-art, .palette-art, .palette-art .pa-brush, .dh-burst polygon { animation: none; }
  .draw-easel, .draw-card .dc-in, .host .guess-feed li { animation-duration: .01s; }
}
.draw-hit > *, .draw-got > * { position: absolute; left: 50%; top: 50%; translate: -50% -50%; grid-area: auto; }
.draw-hit .bx-sparks, .draw-got .bx-sparks { translate: none; }
.draw-card h1.accent, .host .draw-side .draw-card h1.accent { font-size: clamp(40px, calc(5 * var(--vw1, 1vw)), 68px); line-height: 1.1; }
.draw-card { margin: 6px 0 10px; }
.player .draw-got { animation: draw-hit-out .4s ease-in calc(var(--ft, 0ms) + 2000ms) forwards; }

/* ---------- 🕵️‍♂️ Uljez: govornik pod reflektorom, lupa koja traži uljeza ---------- */
.imp-slot { width: 100%; display: grid; justify-items: center; }
.imp-stage { position: relative; display: inline-grid; place-items: end center; font-size: clamp(84px, calc(10.5 * var(--vw1, 1vw)), 136px); line-height: 1; height: 1.25em; margin: clamp(26px, calc(6 * var(--dvh1, 1dvh)), 60px) 0 4px; }
.imp-stage .bx-spot { font-size: .5em; }
.imp-stage .avatar { position: relative; display: inline-block; filter: drop-shadow(.05em .05em 0 #111118); transform-origin: 50% 100%; animation: imp-hop-in .55s cubic-bezier(.2, 1.5, .4, 1) .1s backwards, imp-talk .5s ease-in-out .7s infinite alternate; }
@keyframes imp-hop-in { 0% { opacity: 0; transform: translateY(80%) scale(.4, 1.3); } 60% { opacity: 1; transform: translateY(-12%) scale(1.1, .9); } }
@keyframes imp-talk { from { transform: rotate(-4deg) scale(1, 1); } to { transform: rotate(4deg) scale(1.04, .95); } }
.imp-bubble { position: absolute; left: 92%; top: -8%; display: inline-flex; gap: .16em; align-items: center; padding: .22em .3em; font-size: .36em; line-height: 1; background: #fff; border: .09em solid #111118; border-radius: 50% 50% 50% 12% / 60% 60% 60% 30%; box-shadow: .1em .1em 0 #111118; transform-origin: 0 100%; animation: boom .4s cubic-bezier(.2, 1.6, .4, 1) .45s backwards; }
.imp-bubble i { width: .3em; height: .3em; border-radius: 50%; background: #111118; animation: imp-dot .9s ease-in-out infinite; }
.imp-bubble i:nth-child(2) { animation-delay: .15s; } .imp-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes imp-dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-.28em); } }
.host .talk-live .player-chip.has-bomb { animation: bounce-soft .5s var(--ease-out); }
/* uhvaćen — poslednja šansa */
.imp-caught .sab-spy { font-size: 1.7em; margin: 0 .15em 0 0; vertical-align: middle; }
/* otkrivanje: red igrača, lupa pređe levo-desno pa stane */
.imp-lineup { position: relative; display: flex; justify-content: center; font-size: clamp(40px, calc(5 * var(--vw1, 1vw)), 66px); --cw: 1.55em; line-height: 1; margin: 6px 0 2px; width: fit-content; }
.imp-cell { position: relative; width: var(--cw); height: 1.5em; display: grid; place-items: center; }
.imp-cell .avatar { position: relative; display: inline-block; filter: drop-shadow(.05em .05em 0 #111118); }
.imp-cell:not(.is-imp) { animation: imp-dim .4s ease-out var(--sweep, 0ms) forwards; }
.imp-reveal.no-imp .imp-cell { animation: imp-cheer .5s cubic-bezier(.2, 1.6, .4, 1) var(--sweep, 0ms) 2; }
@keyframes imp-dim { to { opacity: .45; transform: scale(.82); } }
@keyframes imp-cheer { 40% { transform: translateY(-.3em) rotate(-8deg); } }
.imp-cell.is-imp .avatar { animation: imp-found .6s cubic-bezier(.2, 1.6, .4, 1) var(--sweep, 0ms) both; }
@keyframes imp-found { 0% { transform: none; } 30% { transform: scale(.8) rotate(-14deg); } 60% { transform: scale(1.55) rotate(8deg); } 100% { transform: scale(1.3); } }
.imp-cell .bx-back { font-size: .8em; --bc: #ff2d2d; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1) var(--sweep, 0ms) backwards; }
.imp-glass { position: absolute; left: 0; top: 0; width: var(--cw); height: 1.5em; z-index: 3; pointer-events: none; animation: imp-sweep var(--sweep, 1900ms) cubic-bezier(.45, 0, .35, 1) both; }
.glass-art { position: absolute; left: .11em; top: .08em; width: 1.9em; height: 1.9em; overflow: visible; filter: drop-shadow(.06em .06em 0 #11111866); }
.glass-art .gl-handle { fill: #ff2d2d; stroke: #111118; stroke-width: 8; stroke-linejoin: round; }
.glass-art .gl-ring { fill: #ffe600; stroke: #111118; stroke-width: 8; }
.glass-art .gl-lens { fill: rgba(190, 235, 255, .45); stroke: #111118; stroke-width: 6; }
.glass-art .gl-shine { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; }
.glass-art .gl-shine.dot { fill: #fff; stroke: none; }
.imp-glass b { position: absolute; left: 0; right: 0; top: .1em; text-align: center; font-size: .9em; color: #e01b1b; -webkit-text-stroke: .1em #fff; paint-order: stroke fill; animation: pop .3s cubic-bezier(.2, 1.6, .4, 1) calc(var(--sweep, 0ms) * .9) backwards; }
@keyframes imp-sweep {
  0% { opacity: 0; transform: translateX(calc(var(--cw) * -1.5)) rotate(-20deg); }
  10% { opacity: 1; transform: translateX(0) rotate(-6deg); }
  40% { transform: translateX(calc(var(--cw) * (var(--n) - 1))) rotate(8deg); }
  68% { transform: translateX(calc(var(--cw) * (var(--n) - 1) * .12)) rotate(-8deg); }
  88% { transform: translateX(calc(var(--cw) * var(--to))) rotate(0) scale(1); }
  94% { transform: translateX(calc(var(--cw) * var(--to))) scale(1.3); }
  100% { opacity: 1; transform: translateX(calc(var(--cw) * var(--to))) scale(1.12); }
}
.imp-reveal.no-imp .imp-glass { animation: imp-sweep var(--sweep, 1900ms) cubic-bezier(.45, 0, .35, 1) both, imp-glass-drop .7s cubic-bezier(.5, 0, .9, .5) calc(var(--sweep, 0ms) + 500ms) forwards; }
@keyframes imp-glass-drop { from { opacity: 1; transform: translateX(calc(var(--cw) * var(--to))) scale(1.12); } to { opacity: 0; transform: translate(calc(var(--cw) * var(--to)), 2.4em) rotate(70deg) scale(.9); } }
.host .imp-reveal .sab-unmask { font-size: clamp(30px, calc(4 * var(--vw1, 1vw)), 52px); animation-delay: var(--sweep, 0ms); }
.imp-reveal .sab-unmask .sab-spy { font-size: 1.5em; margin: -.2em 0 -.2em .1em; vertical-align: middle; --late: var(--sweep, 0ms); }
.imp-reveal .sab-unmask .bx-stamp { font-size: 1em; --d: var(--sweep, 0ms); }
.imp-reveal > h2 { animation: rise .4s ease-out calc(var(--sweep, 0ms) + 150ms) backwards; font-size: clamp(18px, calc(2.2 * var(--vw1, 1vw)), 28px); }
.imp-reveal > h1.caught, .imp-reveal > h1.escaped {
  display: inline-block; padding: 2px 18px; background: #fff; color: #e01b1b; border: 5px solid #e01b1b; border-radius: 12px; font-size: clamp(24px, calc(3.2 * var(--vw1, 1vw)), 42px);
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #e01b1b, 6px 6px 0 #111118; -webkit-text-stroke: 0; text-shadow: none; text-transform: uppercase;
  --tilt: -3deg; transform: rotate(-3deg); animation: bx-stamp .5s cubic-bezier(.2, 1.4, .4, 1) calc(var(--sweep, 0ms) + 350ms) backwards;
}
.imp-reveal > h1.escaped { color: #111118; border-color: #111118; background: #ffe600; box-shadow: 6px 6px 0 #111118; --tilt: 2deg; transform: rotate(2deg); }
.imp-reveal.no-imp > h1.caught { color: #0a8a4a; border-color: #0a8a4a; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #0a8a4a, 6px 6px 0 #111118; }
.imp-reveal .imp-tag { display: inline-block; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1) var(--sweep, 0ms) backwards; }
.talk-live.imp-reveal { animation: quake .45s linear calc(var(--sweep, 0ms) + 400ms); }
/* TELEFON: tajna reč je karta koja se okrene; tvoj red — mikrofon i žuti okvir */
.player .talk-phone .secret-word { display: inline-block; background: #fff; color: #e01b1b; border: 4px solid #111118; border-radius: 16px; padding: 10px 22px; box-shadow: 5px 5px 0 #111118; transform: rotate(-2deg); animation: secret-flip .6s cubic-bezier(.3, 1.4, .5, 1) calc(var(--t, 0ms) + 250ms) backwards; }
@keyframes secret-flip { 0% { transform: perspective(600px) rotateY(100deg) scale(.7); opacity: 0; } 30% { opacity: 1; } 60% { transform: perspective(600px) rotateY(-14deg) rotate(-2deg) scale(1.06); } }
.player .talk-phone.my-turn::before { content: ""; position: fixed; inset: 0; border: 10px solid #ffe600; pointer-events: none; z-index: 2; animation: imp-frame .6s ease-in-out var(--ft, 0ms) infinite alternate; }
@keyframes imp-frame { from { opacity: .35; } to { opacity: 1; } }
.imp-mic { height: 96px; display: grid; place-items: center; }
.player .tap-zone.talk-phone > .imp-mic { animation: emoji-in .5s cubic-bezier(.2, 1.6, .4, 1) var(--ft, 0ms) backwards; }
.mic-art { height: 96px; width: auto; overflow: visible; filter: drop-shadow(4px 4px 0 #111118); animation: mic-bop .45s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes mic-bop { from { transform: rotate(-7deg); } to { transform: rotate(7deg) scale(1.05); } }
.mic-art .mi-head { fill: #ff2d2d; stroke: #111118; stroke-width: 7; }
.mic-art .mi-shade { fill: rgba(17, 17, 24, .16); }
.mic-art .mi-grill { fill: none; stroke: #111118; stroke-width: 4; opacity: .45; }
.mic-art .mi-shine { fill: rgba(255, 255, 255, .7); }
.mic-art .mi-arm, .mic-art .mi-stand { fill: none; stroke: #111118; stroke-width: 8; stroke-linecap: round; }
.mic-art .mi-face { fill: #111118; }
.mic-art .mi-mouth { fill: #5a0c0c; stroke: #111118; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: mic-mouth .3s ease-in-out infinite alternate; }
@keyframes mic-mouth { to { transform: scaleY(.3); } }
.mic-art .mi-waves { fill: none; stroke: #ffe600; stroke-width: 7; stroke-linecap: round; animation: si-rays .5s steps(2, jump-none) infinite; }
.player .talk-phone.evil .huge.sab-role { font-size: 96px; margin: 0; }
@media (max-height: 700px) { .imp-mic, .mic-art { height: 64px; } .player .talk-phone.evil .huge.sab-role { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .imp-stage .avatar, .imp-bubble i, .mic-art, .mic-art .mi-mouth, .mic-art .mi-waves, .player .talk-phone.my-turn::before, .talk-live.imp-reveal { animation: none; }
  .imp-glass, .imp-reveal.no-imp .imp-glass { animation-duration: .01s; }
}
.glass-art .gl-lens { fill: rgba(200, 240, 255, .35); stroke: none; }
.glass-art .gl-rim { fill: none; stroke: #111118; stroke-width: 24; }
.glass-art .gl-ring { fill: none; stroke: #ffe600; stroke-width: 11; }
.imp-reveal.no-imp .twist-badge { display: none; }
.imp-reveal.no-imp > h1.caught { font-size: clamp(18px, calc(2.3 * var(--vw1, 1vw)), 30px); }
.talk-live > .round-label, .talk-live > .muted, .talk-live > .twist-badge, .sab-live > .round-label { position: relative; z-index: 2; }
.sab-reveal .sab-verdict.none .sab-unmask { font-size: clamp(40px, calc(5 * var(--vw1, 1vw)), 64px); line-height: 1; }

/* Tabla u online sobi (854×480): manji crteži, da ekran ne mora mnogo da se umanji. */
body.board-body .sab-hero { font-size: 104px; margin-top: 26px; }
body.board-body .vote-hero { margin-top: 30px; } body.board-body .vote-hero .bx-box { font-size: 92px; }
body.board-body .imp-stage { font-size: 78px; margin-top: 26px; }
body.board-body .sab-reveal .sab-spy { font-size: 1.5em; }
body.board-body .imp-lineup { font-size: 40px; }
/* Telefon se stalno crta iznova: beskonačne petlje nastavljaju tamo gde su stale (sat --ft / --t), da ne trzaju. */
.player .swirl-art { animation-delay: var(--ft, 0ms); }
.player .cloud-art.c1 { animation-delay: var(--ft, 0ms); } .player .cloud-art.c2 { animation-delay: calc(var(--ft, 0ms) - 1s); }
.player .cloud-art.c3 { animation-delay: calc(var(--ft, 0ms) - 2s); } .player .cloud-art.c4 { animation-delay: calc(var(--ft, 0ms) - .5s); }
.player .phone-tiles .tile.gold::before { animation-delay: var(--t, 0ms); }
.player .fx-note.on { animation-delay: var(--ft, 0ms); }

/* ---------- uvodni ekrani: crtež umesto emotikona (b1 + b2) ---------- */
.intro-art { position: relative; display: inline-grid; grid-auto-flow: column; place-items: end center; line-height: 1; filter: none; }
.intro-art > svg { height: 1em; width: auto; position: relative; }
.ia-sab .spy-art, .ia-imp .spy-art { height: 1.05em; }
.ia-imp .glass-art { position: absolute; left: 46%; top: 30%; width: .95em; height: .95em; animation: ia-search 2.4s ease-in-out infinite; }
@keyframes ia-search { 0%, 100% { transform: translate(-.5em, 0) rotate(-10deg); } 50% { transform: translate(.1em, -.1em) rotate(8deg); } }
.ia-draw .palette-art { height: 1em; }
.ia-words { gap: .08em; place-items: center; }
.ia-words i { font-style: normal; display: grid; place-items: center; width: 1.05em; height: 1.2em; font-size: .62em; font-weight: 900; background: #fffdf2; color: #111118; border: .1em solid #111118; border-radius: .22em; box-shadow: .08em .12em 0 #111118; animation: ia-tile 1.8s ease-in-out infinite; }
.ia-words i:nth-child(1) { transform: rotate(-7deg); } .ia-words i:nth-child(2) { background: #ffe600; animation-delay: .15s; } .ia-words i:nth-child(3) { transform: rotate(6deg); animation-delay: .3s; }
@keyframes ia-tile { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -.25em; } }
.ia-liar .liar-art { height: 1em; filter: none; }
.ia-sheep .sheep-art.second { height: .7em; margin-left: -.12em; }
.ia-sheep .sheep-art:first-child { animation: sheep-bob 1s ease-in-out infinite; transform-origin: 50% 100%; }
.ia-who { font-size: 1em; }
.ia-who .who-crown { position: absolute; left: 50%; bottom: 78%; font-size: .6em; margin-left: -.67em; transform-origin: 50% 100%; animation: who-crown-drop .8s cubic-bezier(.3, .7, .4, 1) .5s backwards, who-crown-tilt 1.2s ease-in-out 1.3s infinite alternate; }
.player .ia-who .who-crown { animation: who-crown-tilt 1.2s ease-in-out infinite alternate; }
.ia-closest .dart { left: 52%; top: 44%; font-size: .42em; animation: dart-in .32s cubic-bezier(.4, 0, .8, .6) .7s backwards, dart-wobble .4s ease-out 1.02s; }
.player .ia-closest .dart { animation: none; }
.ia-closest .target-art { height: 1.1em; }
@media (prefers-reduced-motion: reduce) { .ia-imp .glass-art, .ia-words i, .ia-sheep .sheep-art:first-child, .ia-who .who-crown { animation: none; } }
.canvas-wrap .tape.t1 { left: -8px; top: -4px; } .canvas-wrap .tape.t2 { right: -8px; top: -4px; }
