/* Bee Mania — style. Barwy marki: granat #1d1e4f, żółty #ffc93c/#ffd84d, różowy #ff5c8a, morski #5fd3c6.
 * Fonty: Bungee (nagłówki, polecenia) + Baloo 2 (tekst); Press Start 2P (COUNT!), Patrick Hand (POP THE RED ONES!, poprawki na czerwono), Special Elite (FIX THE TYPO!).
 * Każda mikrogra ma własny styl tła i elementów: [data-style] na .app. */
:root {
  --navy: #1d1e4f; --navy2: #2a2b6e; --yellow: #ffc93c; --yellow2: #ffd84d; --pink: #ff5c8a; --teal: #5fd3c6;
  --ink: #fff; --display: "Bungee", "Baloo 2", "Dela Gothic One", sans-serif; --body: "Baloo 2", "M PLUS Rounded 1c", system-ui, sans-serif; /* fonty japońskie (znaki CJK) game.js ładuje tylko dla ja */
  --hud: 56px; --fuse: 60px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--navy); color: var(--ink); font-family: var(--body); overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
button { font-family: inherit; cursor: pointer; touch-action: manipulation; }

/* na desktopie kolumna o proporcji telefonu (szerokość z wysokości okna); rozmiary tekstów liczone od jej szerokości (cqw) */
.app { position: relative; width: min(100%, calc(100vh * 0.5625), 480px); width: min(100%, calc(100dvh * 0.5625), 480px); container-type: inline-size; height: 100vh; height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; background: var(--navy); transition: background .25s; }
.app.shake { animation: shake .4s linear; }
.app.shakeSoft { animation: shakeSoft .3s linear; } /* łagodny wstrząs — ekran przed Bumble Jumble (Szymon 2026-10-06) */
@keyframes shakeSoft { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-3px, 2px); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, 1px); } }
@keyframes shake { 0%, 100% { transform: translate(0, 0); } 15% { transform: translate(-7px, 4px) rotate(-.6deg); } 30% { transform: translate(6px, -5px) rotate(.5deg); } 45% { transform: translate(-5px, 3px); } 60% { transform: translate(5px, 4px) rotate(-.4deg); } 80% { transform: translate(-3px, -2px); } }

/* ---------- tła stylów ---------- */
.app[data-style="idle"], .app[data-style="zizi"] { background: repeating-conic-gradient(from 0deg at 50% 42%, #ff7aa2 0 11deg, #ff5c8a 11deg 22deg); }
/* obracające się promienie za Zizi na ekranie przejścia: wolno, a na werblu przed poleceniem rozpędzają się (Szymon 2026-10-02, „podkręcanie tempa”); obrót w game.js */
.ilRays { display: none; position: absolute; left: 50%; top: 42%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(#ff7aa2 0 11deg, #ff5c8a 11deg 22deg); pointer-events: none; }
.app[data-style="zizi"] .ilRays { display: block; }
.ilRays::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; }
.ilRays.spin::after { animation: ilFlash .8s ease-in forwards; } /* błysk na uderzenie werbla (sama przezroczystość — tanie) */
@keyframes ilFlash { 0%, 70% { opacity: 0; } 100% { opacity: .28; } }
.app[data-style="speed"] { background: #1d1e4f; }
.app[data-style="popart"] { background: radial-gradient(#f0862a 20%, transparent 22%) 0 0 / 16px 16px, #ffd84d; }
.app[data-style="clay"] { background: linear-gradient(#9fd0a8 0 66%, #a9723f 66%); }
.app[data-style="collage"] { background: linear-gradient(#bcd4e8 0 40%, #ece4cf 40%); }
.app[data-style="paint"] { background: #fff; }
.app[data-style="picto"] { background: #f3f3ec; }
.app[data-style="pixel"] { background: repeating-linear-gradient(#1d1e4f 0 3px, #22246a 3px 4px); }

/* ---------- HUD ---------- */
.hud { position: relative; z-index: 6; height: var(--hud); flex: none; display: flex; align-items: center; justify-content: space-between; padding: max(8px, env(safe-area-inset-top)) 12px 0; }
.hearts { position: absolute; left: 50%; top: max(8px, env(safe-area-inset-top)); transform: translateX(-50%); display: flex; gap: 6px; padding: 7px 14px; background: var(--navy); border: 3px solid var(--yellow); border-radius: 99px; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.heart { width: 24px; height: 22px; display: block; }
.heart.losing { animation: heartLose .45s ease-in forwards; }
.heart.gaining { animation: heartGain .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes heartLose { 0% { transform: scale(1); } 30% { transform: scale(1.4) rotate(-12deg); } 60% { transform: scale(1.1) rotate(10deg); } 100% { transform: scale(.4); opacity: .4; } }
@keyframes heartGain { 0% { transform: scale(0); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }
.counter { display: flex; gap: 3px; min-width: 44px; }
.digit { display: inline-block; min-width: 30px; height: 40px; line-height: 40px; text-align: center; background: var(--navy); color: var(--yellow); border: 3px solid var(--yellow); border-radius: 9px; font: 22px/36px var(--display); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.digit.flip { animation: flip .45s ease-out; }
@keyframes flip { 0% { transform: rotateX(90deg); } 60% { transform: rotateX(-18deg); } 100% { transform: rotateX(0); } }
.mute { width: 44px; height: 44px; border: 3px solid var(--yellow); border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; padding: 0; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.mute svg { width: 24px; height: 24px; }
.mute .off, .mute.muted .on { display: none; }
.mute.muted .off { display: block; }

/* ---------- polecenie ---------- */
.command { position: absolute; left: 50%; z-index: 7; width: 94%; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; pointer-events: none; transition: top .3s cubic-bezier(.3,1.3,.5,1), transform .3s cubic-bezier(.3,1.3,.5,1); }
.cmdText { font-family: var(--display); line-height: .95; color: #fff; text-shadow: 3px 3px 0 var(--navy), -2px -2px 0 var(--navy), 2px -2px 0 var(--navy), -2px 2px 0 var(--navy), 0 7px 0 var(--navy); transition: font-size .3s; display: block; }
.cmdText s { color: #ffd1dc; text-decoration-color: #e8232a; text-decoration-thickness: 5px; }
.cmdText u { text-decoration-thickness: 5px; }
.cmdHint { font: 800 18px/1 var(--body); color: var(--navy); background: #fff; border: 3px solid var(--navy); border-radius: 99px; padding: 6px 14px; box-shadow: 0 3px 0 var(--navy); }
.cmdBurst { position: absolute; left: 50%; top: 50%; width: 125vw; width: 125cqw; max-width: 600px; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(8deg); z-index: -1; transition: opacity .2s;
  /* gwiazda jako gotowy obrazek SVG (#ffd84d = --yellow2), bez clip-path i pustego filtra cienia — przy powiększeniu 3,2× na wejściu polecenia gubiły klatki na telefonie (Szymon 2026-10-02) */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon fill='%23ffd84d' points='50,0 60,32 92,18 74,44 100,50 74,56 92,82 60,68 50,100 40,68 8,82 26,56 0,50 26,44 8,18 40,32'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
/* TAP IT (pop-art, żółte tło): gwiazda biała z granatowym cieniem — żółta zlewała się z tłem, różowa z różowymi promieniami przejścia tuż przed nią (Szymon 2026-10-02) */
/* Gwiazda + cień jako JEDEN obrazek SVG, bez clip-path i filtra: wersja 10 miała drugą wycinaną warstwę na cień i mocno zamulała wejście do gry na telefonie (Szymon 2026-10-02) */
.app[data-style="popart"] .cmdBurst { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 101.6 101.6'%3E%3Cpolygon transform='translate(1.6 1.6)' fill='%231d1e4f' points='50,0 60,32 92,18 74,44 100,50 74,56 92,82 60,68 50,100 40,68 8,82 26,56 0,50 26,44 8,18 40,32'/%3E%3Cpolygon fill='%23fff' points='50,0 60,32 92,18 74,44 100,50 74,56 92,82 60,68 50,100 40,68 8,82 26,56 0,50 26,44 8,18 40,32'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.command.slam { top: 46%; transform: translate(-50%, -50%); animation: slam .45s cubic-bezier(.2,1.4,.4,1); }
.command.slam .cmdText { font-size: clamp(44px, 13vw, 68px); font-size: clamp(44px, 13cqw, 68px); padding: 20px; }
.command.slam.long .cmdText { font-size: clamp(30px, 9.5vw, 48px); font-size: clamp(30px, 9.5cqw, 48px); }
.command.slam .cmdBurst { animation: burstSpin .6s ease-out; }
@keyframes slam { 0% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; } 55% { transform: translate(-50%, -50%) scale(.92); opacity: 1; } 75% { transform: translate(-50%, -50%) scale(1.06); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes burstSpin { 0% { transform: translate(-50%, -50%) rotate(-40deg) scale(.4); } 100% { transform: translate(-50%, -50%) rotate(8deg) scale(1); } }
/* osiada: kurczy się do miejsca nagłówka mikrogry i znika, a nagłówek gry (w jej stylu) przejmuje polecenie */
.command.settled { top: calc(var(--hud) + 10px); transform: translate(-50%, 0); opacity: 0; transition: top .3s cubic-bezier(.3,1.3,.5,1), transform .3s cubic-bezier(.3,1.3,.5,1), opacity .25s .15s; }
.command.settled .cmdText { font-size: clamp(18px, 5.4vw, 24px); font-size: clamp(18px, 5.4cqw, 24px); white-space: nowrap; }
.command.settled .cmdBurst { opacity: 0; }
.command.settled .cmdHint { display: none; }

/* ---------- scena ---------- */
.stage { position: relative; flex: 1; min-height: 0; margin-top: 8px; margin-bottom: 6px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.stage.won { animation: wonPulse .5s ease-out; }
@keyframes wonPulse { 0% { filter: brightness(1); } 30% { filter: brightness(1.6); } }
.stage.lost { animation: lostDim .4s ease-out forwards; }
@keyframes lostDim { to { filter: saturate(.3) brightness(.8); } }

/* ---------- Zizi między grami ---------- */
.interlude { position: absolute; inset: var(--hud) 0 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px calc(var(--fuse) + 10px); }
.ziziWrap { width: min(64%, 300px, 42vh); width: min(64%, 300px, 42dvh); filter: drop-shadow(0 10px 0 rgba(0,0,0,.18)); }
.ziziWrap svg { width: 100%; height: auto; overflow: visible; }
.interlude.normal .ziziWrap { animation: hover 1.4s ease-in-out infinite; }
.interlude.win .ziziWrap { animation: dance .5s ease-in-out infinite; }
.interlude.lose .ziziWrap { animation: tremble .18s linear infinite; }
.interlude.over .ziziWrap { animation: sink 2.2s ease-in forwards; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes dance { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-18px); } }
@keyframes tremble { 0%, 100% { transform: translateX(-3px) rotate(-1deg); } 50% { transform: translateX(3px) rotate(1deg); } }
@keyframes sink { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(40px) rotate(-8deg) scale(.92); } }
.zizi .wing { transform-box: fill-box; transform-origin: 85% 90%; animation: flap .12s ease-in-out infinite alternate; }
.zizi .wl { transform-origin: 85% 85%; }
.zizi .wr { transform-origin: 15% 85%; }
@keyframes flap { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
.zizi .tear { transform-box: fill-box; transform-origin: top; animation: tears .5s linear infinite; }
@keyframes tears { from { transform: scaleY(.3); opacity: 1; } to { transform: scaleY(1); opacity: .6; } }
.zizi .sweat { transform-box: fill-box; animation: drip .7s ease-in infinite; }
@keyframes drip { from { transform: translateY(-6px); opacity: 1; } to { transform: translateY(14px); opacity: 0; } }
.speech { font: 400 clamp(26px, 8vw, 38px) var(--display); font: 400 clamp(26px, 8cqw, 38px) var(--display); color: var(--navy); background: #fff; border: 4px solid var(--navy); border-radius: 20px; padding: 10px 22px; position: relative; box-shadow: 0 6px 0 var(--navy); animation: popIn .35s cubic-bezier(.3,1.6,.5,1); }
/* ogonek dymka w stronę Zizi: klasyczny trójkąt — granatowa obwódka (::before) i biały środek (::after), który zakrywa linię ramki u nasady */
.speech::before, .speech::after { content: ""; position: absolute; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-style: solid; border-color: transparent; border-top-width: 0; }
.speech::before { top: -22px; border-width: 0 15px 22px; border-bottom-color: var(--navy); }
.speech::after { top: -13px; border-width: 0 9px 15px; border-bottom-color: #fff; }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.nextLabel { margin: 14px 0 0; font: 400 clamp(32px, 10vw, 48px) var(--display); font: 400 clamp(32px, 10cqw, 48px) var(--display); color: #fff; text-shadow: 3px 3px 0 var(--navy), 5px 5px 0 var(--pink); letter-spacing: 1px; animation: popIn .35s .1s cubic-bezier(.3,1.6,.5,1) both; }
.nextLabel.boss { color: var(--yellow2); animation: popIn .35s .1s cubic-bezier(.3,1.6,.5,1) both, tremble .18s .45s linear infinite; }
/* pasek postępu cyklu: kropka na grę (zaliczona / przegrana / bieżąca), na końcu czaszka = boss */
.progress { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 7px); gap: clamp(4px, 1.4cqw, 7px); padding: 8px 12px; background: var(--navy); border-radius: 999px; box-shadow: 0 4px 0 rgba(0,0,0,.2); }
.progress i { width: clamp(10px, 3vw, 14px); width: clamp(10px, 3cqw, 14px); aspect-ratio: 1; border-radius: 50%; background: #3b3d80; }
.progress i.ok { background: #3ecf6e; }
.progress i.bad { background: var(--pink); }
.progress i.just { animation: dotPop .45s cubic-bezier(.3,1.8,.5,1); }
.progress i.cur { background: var(--yellow2); animation: dotCur .5s ease-in-out infinite alternate; }
.progress .boss { width: clamp(20px, 6.4vw, 28px); width: clamp(20px, 6.4cqw, 28px); margin-left: 3px; color: #8c8fc4; display: flex; }
.progress .boss svg { width: 100%; height: auto; }
.progress .boss.cur { color: #fff; animation: skullBob .3s ease-in-out infinite alternate; }
@keyframes dotPop { 0% { transform: scale(2.2); } 100% { transform: scale(1); } }
@keyframes dotCur { from { transform: scale(1.1); box-shadow: 0 0 0 0 rgba(255,216,77,.6); } to { transform: scale(1.45); box-shadow: 0 0 0 4px rgba(255,216,77,0); } }
@keyframes skullBob { from { transform: scale(1.1) rotate(-10deg); } to { transform: scale(1.35) rotate(10deg); } }

/* ---------- SPEED UP! / boss / serce ---------- */
.banner { position: absolute; inset: var(--hud) 0 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 20px; }
.banner b { display: block; font: 400 clamp(60px, 19vw, 104px)/.92 var(--display); font: 400 clamp(60px, 19cqw, 104px)/.92 var(--display); color: var(--yellow2); text-shadow: 5px 5px 0 var(--pink), 8px 8px 0 var(--navy); transform: rotate(-6deg); animation: bannerIn .9s cubic-bezier(.2,1.2,.4,1) both; }
.banner.boss b { font-size: clamp(42px, 13vw, 72px); font-size: clamp(42px, 13cqw, 72px); color: #fff; text-shadow: 4px 4px 0 var(--pink), 7px 7px 0 var(--navy); transform: rotate(-3deg); }
.banner.heart b { color: var(--pink); text-shadow: 4px 4px 0 #fff, 7px 7px 0 var(--navy); }
.banner.hit b { animation: bannerHit .5s ease-out; }
@keyframes bannerIn { 0% { transform: rotate(-6deg) scale(.2); opacity: 0; letter-spacing: 20px; } 70% { opacity: 1; } 100% { transform: rotate(-6deg) scale(1); letter-spacing: 0; } }
@keyframes bannerHit { 0% { transform: rotate(-6deg) scale(1); } 30% { transform: rotate(-6deg) scale(1.3); filter: brightness(2); } 100% { transform: rotate(-6deg) scale(1); } }
.banner span { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tag { display: inline-block; font: 400 clamp(14px, 4.4vw, 20px) var(--display); font: 400 clamp(14px, 4.4cqw, 20px) var(--display); padding: 10px 16px; border-radius: 12px; box-shadow: 0 5px 0 rgba(0,0,0,.3); animation: popIn .4s .25s cubic-bezier(.3,1.6,.5,1) both; }
.tag.y { background: var(--yellow2); color: var(--navy); }
.tag.p { background: var(--pink); color: #fff; }
/* SPEED UP!: promienie rozkręcają się i zmieniają kolor, pasy jadą, litery spadają, Zizi wiruje, tagi wlatują; uderzenie na 2,4 s robi game.js */
.spd { position: absolute; inset: 0; overflow: hidden; }
.spdRays { position: absolute; left: 50%; top: 45%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(#2a2b6e 0 10deg, #1d1e4f 10deg 20deg); animation: spdSpin 2.6s cubic-bezier(.6,0,1,1) forwards; }
@keyframes spdSpin { 0% { transform: translate(-50%, -50%) rotate(0); background: repeating-conic-gradient(#2a2b6e 0 10deg, #1d1e4f 10deg 20deg); } 60% { background: repeating-conic-gradient(#ff5c8a 0 10deg, #1d1e4f 10deg 20deg); } 100% { transform: translate(-50%, -50%) rotate(1440deg); background: repeating-conic-gradient(#ffd84d 0 10deg, #ff5c8a 10deg 20deg); } }
.spdStripes { position: absolute; left: -20%; right: -20%; height: 13%; background: repeating-linear-gradient(-45deg, #ffd84d 0 26px, #1d1e4f 26px 52px); }
.spdStripes.t { top: 3%; animation: spdL .5s linear infinite; } .spdStripes.b { bottom: 3%; animation: spdR .5s linear infinite; }
@keyframes spdL { to { transform: translateX(-74px); } } @keyframes spdR { to { transform: translateX(74px); } }
.spdLetters { position: absolute; left: 0; right: 0; top: 22%; text-align: center; font: 400 clamp(52px, 18vw, 86px)/.95 var(--display); font: 400 clamp(52px, 18cqw, 86px)/.95 var(--display); color: var(--yellow2); text-shadow: 5px 5px 0 var(--pink), 8px 8px 0 #000; }
.spdLetters span { display: inline-block; opacity: 0; animation: spdDrop .3s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes spdDrop { 0% { opacity: 0; transform: translateY(-160px) scale(2) rotate(-20deg); } 100% { opacity: 1; transform: none; } }
.spdZizi { position: absolute; left: 50%; top: 64%; width: 34%; transform: translate(-50%, -50%); animation: spdWhirl 2.2s cubic-bezier(.5,0,1,1) forwards; }
.spdZizi svg { width: 100%; height: auto; display: block; overflow: visible; }
@keyframes spdWhirl { to { transform: translate(-50%, -50%) rotate(2160deg); } }
.spdTags { position: absolute; left: 0; right: 0; top: 79%; display: flex; justify-content: center; gap: 10px; }
.spdTags b { font: 400 clamp(13px, 4.2vw, 18px) var(--display); font: 400 clamp(13px, 4.2cqw, 18px) var(--display); padding: 5px 12px; border-radius: 99px; opacity: 0; }
.spdTags .y { background: var(--yellow2); color: var(--navy); animation: spdTagL .35s 1.9s cubic-bezier(.3,1.6,.5,1) forwards; }
.spdTags .p { background: var(--pink); color: #fff; animation: spdTagR .35s 2.05s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes spdTagL { 0% { opacity: 1; transform: translateX(-260px) rotate(-30deg); } 100% { opacity: 1; transform: rotate(-6deg); } }
@keyframes spdTagR { 0% { opacity: 1; transform: translateX(260px) rotate(30deg); } 100% { opacity: 1; transform: rotate(5deg); } }

/* ---------- lont ---------- */
.fusebar { position: relative; z-index: 6; flex: none; height: var(--fuse); margin: 0 12px max(10px, env(safe-area-inset-bottom)); background: var(--navy); border: 3px solid var(--yellow2); border-radius: 99px; box-shadow: 0 5px 0 rgba(0,0,0,.3); padding: 2px 10px; transition: border-color .2s; }
.fusebar svg { width: 100%; height: 100%; overflow: visible; }
.fusebar.hot { border-color: var(--pink); animation: hotPulse .35s ease-in-out infinite alternate; }
@keyframes hotPulse { from { box-shadow: 0 5px 0 rgba(0,0,0,.3); } to { box-shadow: 0 5px 0 rgba(0,0,0,.3), 0 0 18px var(--pink); } }
.fusebar.boom { animation: boom .6s ease-out; background: var(--pink); }
@keyframes boom { 0% { transform: scale(1); } 20% { transform: scale(1.12, 1.5); filter: brightness(3); } 100% { transform: scale(1); } }
#spark { animation: sparkle .12s linear infinite alternate; transform-box: view-box; }
#fuseBoom { display: none; }
.fusebar.blown #fuseBoom { display: inline; transform-box: fill-box; transform-origin: center; animation: fuseBoomPop .35s cubic-bezier(.3,1.8,.5,1); }
.fusebar.blown #fuseBomb, .fusebar.blown #spark, .fusebar.blown #fusePath { display: none; } /* po wybuchu zostaje tylko wypalony (przerywany) ślad lontu */
@keyframes fuseBoomPop { from { transform: scale(.2) rotate(-40deg); } }
@keyframes sparkle { from { opacity: .7; } to { opacity: 1; } }

/* ---------- efekty ---------- */
.fx { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.conf { position: absolute; width: 11px; height: 11px; margin: -5px; border-radius: 2px; }
.pow { position: absolute; transform: translate(-50%, -50%) rotate(-8deg); font: 400 30px var(--display); color: var(--pink); background: var(--yellow2); padding: 14px 20px; clip-path: polygon(50% 0, 60% 28%, 90% 12%, 76% 42%, 100% 50%, 76% 58%, 90% 88%, 60% 72%, 50% 100%, 40% 72%, 10% 88%, 24% 58%, 0 50%, 24% 42%, 10% 12%, 40% 28%); animation: powIn .6s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes powIn { 0% { transform: translate(-50%, -50%) rotate(-30deg) scale(0); } 50% { transform: translate(-50%, -50%) rotate(-8deg) scale(1.2); opacity: 1; } 100% { transform: translate(-50%, -60%) rotate(4deg) scale(1); opacity: 0; } }
.flash { position: absolute; inset: 0; opacity: .5; animation: flashOut .26s ease-out forwards; }
@keyframes flashOut { to { opacity: 0; } }
.idle { position: absolute; inset: var(--hud) 0 0; display: grid; place-items: center; color: #fff; font: 800 20px var(--body); text-shadow: 2px 2px 0 var(--navy); }

/* ---------- 1. TAP IT! (pop-art) ---------- */
.bubble { width: 86%; background: #fff; border: 5px solid #111; border-radius: 22px; padding: 10px 14px 12px; text-align: center; box-shadow: 6px 6px 0 #111; position: relative; z-index: 2; animation: popIn .3s cubic-bezier(.3,1.6,.5,1); }
.bubble::after { content: ""; position: absolute; left: 24px; bottom: -22px; border: 12px solid transparent; border-top: 16px solid #111; border-bottom: 0; }
.bubble small { display: block; font: 800 12px/1 var(--body); letter-spacing: 2px; color: #111; }
.bubble b { display: block; font: 400 clamp(34px, 10vw, 46px)/1.1 var(--display); font: 400 clamp(34px, 10cqw, 46px)/1.1 var(--display); color: #e8232a; margin-top: 4px; overflow-wrap: anywhere; }
.bubble .picword { font-size: 56px; line-height: 1; }
.fall { position: relative; flex: 1; width: 100%; }
.card { position: absolute; top: 4%; width: 27%; min-width: 92px; padding: 14px 6px; background: #fff; border: 4px solid #111; box-shadow: 5px 5px 0 #111; font: 400 clamp(16px, 5vw, 22px)/1 var(--display); font: 400 clamp(16px, 5cqw, 22px)/1 var(--display); color: #111; text-align: center; transform: rotate(var(--rot)); overflow-wrap: anywhere; cursor: pointer; }
.card.hit { background: var(--yellow2); border-color: #e8232a; color: #e8232a; }
.card.bad { background: #e8232a; color: #fff; }

/* ---------- 2. FEED IT! (plastelina) ---------- */
.clayCard { width: 84%; background: #f6e9c7; border: 4px dashed #8f6a3c; border-radius: 18px; padding: 8px 14px; text-align: center; font: 800 16px/1.2 var(--body); color: #5c3d1a; box-shadow: inset 0 0 0 5px #e8d8af, 0 6px 0 #c9b283; }
.clayCard b { display: block; font: 800 clamp(30px, 9vw, 40px)/1 var(--body); font: 800 clamp(30px, 9cqw, 40px)/1 var(--body); color: #e38a16; text-shadow: 2px 2px 0 #fff; }
.feedZizi { width: min(58%, 250px, 34vh); width: min(58%, 250px, 34dvh); margin: auto 0; filter: drop-shadow(0 8px 0 rgba(0,0,0,.2)); }
.feedZizi svg { width: 100%; height: auto; overflow: visible; }
.feedZizi .mouth { transform-box: fill-box; transform-origin: center; animation: mouthPulse .6s ease-in-out infinite alternate; }
@keyframes mouthPulse { from { transform: scale(.9); } to { transform: scale(1.08); } }
.feedZizi.chomp { animation: chomp .5s ease-out; }
@keyframes chomp { 0% { transform: scale(1); } 40% { transform: scale(1.15, .85); } 100% { transform: scale(1); } }
.feedZizi.yuck { animation: tremble .15s linear infinite; }
.shelf { width: 100%; height: 30%; min-height: 110px; display: flex; justify-content: space-around; align-items: center; padding: 0 6px; }
.food { width: 72px; height: 72px; display: grid; place-items: center; font-size: 46px; border-radius: 48% 52% 50% 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.45), transparent 50%), #d9b27a; box-shadow: inset -4px -5px 0 rgba(0,0,0,.14), 0 5px 0 rgba(0,0,0,.25); transform: rotate(var(--rot)); touch-action: none; cursor: grab; position: relative; z-index: 3; }
.food span { display: block; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.25)); }
.food.drag { z-index: 9; cursor: grabbing; box-shadow: 0 12px 0 rgba(0,0,0,.2); }
.food.back { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.food.eaten { animation: eaten .3s ease-in forwards; }
@keyframes eaten { to { transform: scale(0); opacity: 0; } }

/* ---------- 3. TAP ALL BUT THE…! (kolaż) ---------- */
.ransom { width: 90%; text-align: center; font: 400 clamp(20px, 6.4vw, 28px)/1.5 var(--display); font: 400 clamp(20px, 6.4cqw, 28px)/1.5 var(--display); color: #111; }
.ransom span { display: inline-block; padding: 0 5px; margin: 0 1px; box-shadow: 2px 2px 0 rgba(0,0,0,.3); }
.ransom i { font: 400 clamp(22px, 6.8vw, 30px) "Patrick Hand", cursive; font: 400 clamp(22px, 6.8cqw, 30px) "Patrick Hand", cursive; }
.ransom s { background: #111; color: #fff; padding: 0 8px; text-decoration-color: #e8232a; text-decoration-thickness: 5px; display: inline-block; transform: rotate(3deg); }
.yard { position: relative; flex: 1; width: 100%; }
.cut { position: absolute; width: 34%; aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(54px, 15vw, 72px); font-size: clamp(54px, 15cqw, 72px); background: #fff; clip-path: polygon(4% 8%, 22% 2%, 48% 7%, 71% 1%, 95% 9%, 99% 32%, 93% 55%, 98% 78%, 92% 96%, 68% 99%, 46% 93%, 24% 98%, 3% 92%, 7% 68%, 1% 44%); transform: rotate(var(--rot)); transform-origin: top center; animation: hinge 1.6s var(--d) ease-in-out infinite alternate; filter: drop-shadow(3px 4px 0 rgba(0,0,0,.25)); cursor: pointer; }
@keyframes hinge { from { transform: rotate(calc(var(--rot) - 7deg)); } to { transform: rotate(calc(var(--rot) + 7deg)); } }
.cut.gone { animation: flyAway .45s ease-in forwards; pointer-events: none; }
@keyframes flyAway { to { transform: translate(40px, -140%) rotate(60deg); opacity: 0; } }
.cut.bad { background: #e8232a; animation: tremble .12s linear infinite; }

/* ---------- 4. POP THE RED ONES! (MS Paint) ---------- */
.scribble { font: 400 clamp(30px, 9vw, 40px)/1.05 "Patrick Hand", cursive; font: 400 clamp(30px, 9cqw, 40px)/1.05 "Patrick Hand", cursive; color: #111; text-align: center; width: 92%; }
.scribble u { text-decoration-thickness: 4px; text-underline-offset: 4px; }
.sky { position: relative; flex: 1; width: 100%; }
.balloon { position: absolute; width: 26%; max-width: 110px; animation: sway 2.2s var(--d) ease-in-out infinite alternate, rise var(--dur) linear forwards; cursor: pointer; }
.balloon svg { width: 100%; height: auto; overflow: visible; }
@keyframes sway { from { transform: translateX(-6px) rotate(-4deg); } to { transform: translateX(6px) rotate(4deg); } }
@keyframes rise { from { margin-top: 22%; } to { margin-top: -12%; } }
.balloon.popped { animation: none; }
.popstar { display: block; width: 90px; height: 90px; margin: 10% 0 0 -8px; font: 400 22px/90px var(--display); text-align: center; color: #e8232a; background: #f2c200; clip-path: polygon(50% 0, 60% 28%, 90% 12%, 76% 42%, 100% 50%, 76% 58%, 90% 88%, 60% 72%, 50% 100%, 40% 72%, 10% 88%, 24% 58%, 0 50%, 24% 42%, 10% 12%, 40% 28%); animation: powIn .5s ease-out forwards; }
.balloon.bad { animation: tremble .12s linear infinite; filter: grayscale(1) brightness(.6); }

/* ---------- 5. OPPOSITE! (piktogramy) ---------- */
.pictoHead { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; background: #0d8a3e; color: #fff; padding: 10px 12px; font: 400 clamp(26px, 8vw, 34px) var(--display); font: 400 clamp(26px, 8cqw, 34px) var(--display); }
.pictoHead svg { width: 40px; height: 40px; }
.hazard { width: 100%; height: 12px; background: repeating-linear-gradient(135deg, #111 0 12px, #f7c600 12px 24px); }
.sign { flex: 1 1 0; min-height: 0; margin: 4px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: popIn .3s cubic-bezier(.3,1.6,.5,1); }
.sign svg { height: clamp(90px, 24vh, 230px); height: clamp(90px, 24dvh, 230px); width: auto; max-width: 70%; display: block; }
.sign b { display: block; margin-top: 4px; font: 400 clamp(30px, 9.5vw, 42px) var(--display); font: 400 clamp(30px, 9.5cqw, 42px) var(--display); color: #111; }
.pictoSub { margin: 8px 0; font: 800 13px/1 var(--body); letter-spacing: 3px; color: #333; }
.tiles { flex: none; width: 92%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 12px; border: 5px solid #111; border-radius: 16px; background: #fff; color: #111; font: 400 clamp(20px, 6vw, 28px) var(--display); font: 400 clamp(20px, 6cqw, 28px) var(--display); box-shadow: 0 6px 0 #111; }
.tile svg { width: 64px; height: 64px; }
.tile.blue { background: #1a5fb4; color: #fff; }
.tile.blue svg * { fill: #fff; stroke: #fff; }
.tile.blue svg [fill="none"] { fill: none; }
.tile.ok { background: #1fa64a; color: #fff; }
.tile.ok svg * { fill: #fff; stroke: #fff; } .tile.ok svg [fill="none"] { fill: none; }
.tile.bad { background: #e8232a; color: #fff; animation: tremble .12s linear infinite; }
/* OPPOSITE!: piktogram na kaflu schowany (miejsce zostaje, kafel nie skacze) i „wskakuje” dopiero w zakończeniu */
.tiles.noPic .tile { position: relative; justify-content: center; min-height: 64px; } /* Szymon 2026-10-02: słowo na środku kafla */
.tiles.noPic .tile svg { position: absolute; top: -26px; left: 0; right: 0; margin: 0 auto; width: 48px; height: 48px; padding: 5px; box-sizing: border-box; background: inherit; border: 4px solid #111; border-radius: 50%; transform: scale(0); } /* piktogram nie zajmuje miejsca — wyskakuje jako naklejka na górnej krawędzi */
.tiles.noPic .tile.reveal svg { animation: picPop .45s cubic-bezier(.3,1.8,.5,1) forwards; }
@keyframes picPop { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------- 6. COUNT! (pikselart) ---------- */
.pixTitle { font: 400 clamp(26px, 8.4vw, 36px) "Press Start 2P", monospace; font: 400 clamp(26px, 8.4cqw, 36px) "Press Start 2P", monospace; color: var(--yellow2); text-shadow: 4px 4px 0 #e8232a; margin: 4px 0 10px; }
.pixSub { font: 400 clamp(10px, 3vw, 12px) "Press Start 2P", monospace; font: 400 clamp(10px, 3cqw, 12px) "Press Start 2P", monospace; color: #9fd0ff; margin-bottom: 8px; }
.field { position: relative; width: 90%; flex: 1; background: #2b5dc9; border: 4px solid #0d2a6b; box-shadow: 0 0 0 4px #4a7ff0; image-rendering: pixelated; }
.apple { position: absolute; width: 22%; aspect-ratio: 1; animation: popIn .25s steps(3) both; } /* owoce 12×12 (2026-10-07) */
/* COUNT: równe rzędy po 3 (po 4 przy .c4), niepełny rząd na środku, cała grupa na środku planszy; odstęp między rzędami = odstęp między owocami w rzędzie
   (11% szerokości pola = 9,9% szerokości gry; pole ma 90%) (Szymon 2026-10-07) */
.fruits { position: absolute; inset: 0; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; row-gap: 9.9cqw; }
.fruits .apple { position: relative; margin: 0 5.5%; }
.field.c4 .fruits { row-gap: 7.2cqw; } .field.c4 .fruits .apple { margin: 0 4%; }
.apple svg { width: 100%; height: 100%; }
.pixBtns { width: 92%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 6px; }
.pixBtn { padding: 16px 4px; background: #e9e9ff; color: var(--navy); border: 4px solid #8a8ad6; border-bottom-width: 8px; font: 400 clamp(10px, 3.2vw, 13px) "Press Start 2P", monospace; font: 400 clamp(10px, 3.2cqw, 13px) "Press Start 2P", monospace; overflow-wrap: anywhere; }
.pixBtn:active { border-bottom-width: 4px; transform: translateY(4px); }
.pixBtn.ok { background: #3bd16f; color: #06321a; }
.pixBtn.bad { background: #e8232a; color: #fff; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
}
@media (min-height: 760px) { :root { --fuse: 66px; } }

/* ======================= poziomy trudności (klasy dodawane od 2. i 3. poziomu) ======================= */
.fall.n4 .card { width: 22%; min-width: 72px; font-size: clamp(14px, 4.2vw, 18px); font-size: clamp(14px, 4.2cqw, 18px); padding: 12px 4px; }
.fall.n5 .card { width: 17%; min-width: 60px; font-size: clamp(12px, 3.6vw, 15px); font-size: clamp(12px, 3.6cqw, 15px); padding: 10px 3px; }
.card.sway { animation: sway 1.1s var(--d) ease-in-out infinite alternate; }
.scribble.two { font-size: clamp(22px, 7vw, 30px); font-size: clamp(22px, 7cqw, 30px); }
.feedZizi.wander { animation: wander 1.8s ease-in-out infinite alternate; }
@keyframes wander { from { transform: translateX(-18%) rotate(-4deg); } to { transform: translateX(18%) rotate(4deg); } }
.yard.bounce .cut:not(.gone):not(.bad) { animation: hinge 1.6s var(--d) ease-in-out infinite alternate, bounce 0.9s var(--d) ease-in-out infinite alternate; }
@keyframes bounce { from { margin-top: 0; } to { margin-top: -22px; } }
.yard.n6 .cut { width: 28%; font-size: clamp(44px, 12vw, 60px); font-size: clamp(44px, 12cqw, 60px); }
.sky.c4 .balloon { width: 20%; }
.tiles.n3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles.n4 { grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles.n3 .tile, .tiles.n4 .tile { padding: 6px 4px 8px; font-size: clamp(13px, 4.2vw, 18px); font-size: clamp(13px, 4.2cqw, 18px); border-width: 4px; }
.tiles.n3 .tile svg, .tiles.n4 .tile svg { width: 38px; height: 38px; }
.field.c4 .apple { width: 17%; }
.block.drift { animation: drift 2.4s var(--d) ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-10px, -8px) rotate(-3deg); } to { transform: translate(10px, 8px) rotate(3deg); } }

/* ======================= 7. SORT IT! (patyczaki na papierze) ======================= */
.app[data-style="stick"] { background: repeating-linear-gradient(#fbf6e9 0 27px, #d9d2c0 27px 28px); }
.stickHead { font: 400 clamp(22px, 7vw, 30px) "Patrick Hand", cursive; font: 400 clamp(22px, 7cqw, 30px) "Patrick Hand", cursive; color: #222; letter-spacing: 1px; text-align: center; }
.stickHead i { font-size: .7em; color: #777; }
.sortArea { position: relative; flex: 1; width: 100%; display: grid; place-items: center; overflow: hidden; }
.wall { position: absolute; top: 0; bottom: 0; width: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: 400 clamp(15px, 4.6vw, 20px) "Patrick Hand", cursive; font: 400 clamp(15px, 4.6cqw, 20px) "Patrick Hand", cursive; color: #222; letter-spacing: 1px; background: rgba(255,255,255,.55); border: 3px dashed #999; transition: background .2s, border-color .2s; }
.wall b { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); }
.wall i { font-style: normal; font-size: 28px; }
.wall.left { left: 0; border-left: 0; border-radius: 0 16px 16px 0; }
.wall.right { right: 0; border-right: 0; border-radius: 16px 0 0 16px; }
.wall.ok { background: #c9f5c9; border-color: #3bd16f; }
.wall.bad { background: #ffb9b9; border-color: #e8232a; }
.stickSub { font: 800 11px/1 var(--body); letter-spacing: 3px; color: #777; margin: 6px 0 10px; }
.sortItem.flyLeft { transition: transform .3s ease-in, opacity .3s; transform: translateX(-140%) rotate(-30deg) !important; opacity: 0; }
.sortItem.flyRight { transition: transform .3s ease-in, opacity .3s; transform: translateX(140%) rotate(30deg) !important; opacity: 0; }
.sortItem { width: 112px; height: 112px; border-radius: 50%; background: #fff; border: 3px solid #222; display: grid; place-items: center; font-size: 64px; touch-action: none; cursor: grab; box-shadow: 4px 5px 0 rgba(0,0,0,.15); position: relative; z-index: 4; }
.sortItem.drag { cursor: grabbing; z-index: 9; box-shadow: 0 14px 0 rgba(0,0,0,.12); }
.sortItem.back { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.sortItem.dropped { animation: eaten .25s ease-in forwards; }

/* ======================= 8. SPELL IT! (ekran LCD) ======================= */
.app[data-style="lcd"] { background: radial-gradient(120% 90% at 50% 0%, #6b6f7a, #3a3d46 70%); }
.lcdCase { width: 92%; margin: auto 0; background: #d9d9dc; border: 4px solid #9a9ca6; border-radius: 26px; padding: 14px 14px 18px; box-shadow: inset 0 3px 0 #fff, 0 10px 0 #7b7e88; display: flex; flex-direction: column; gap: 14px; }
.lcdScreen { background: #9fb98a; border: 6px solid #5c6a4f; border-radius: 12px; padding: 14px 10px; text-align: center; box-shadow: inset 0 0 0 2px #7f9470, inset 0 6px 14px rgba(0,0,0,.25); font-family: "Press Start 2P", monospace; color: #1f2a16; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 2px, transparent 2px 4px); }
.lcdPic { display: block; font-size: 56px; line-height: 1.1; padding-bottom: 14px; filter: grayscale(1) contrast(1.3); } /* emoji rysuje się poza swoją ramką w dół — odstęp, żeby nie nachodziło na słowo (Szymon 2026-10-07) */
.lcdWord { display: block; font-size: clamp(22px, 7.5vw, 34px); font-size: clamp(22px, 7.5cqw, 34px); letter-spacing: 4px; margin: 12px 0 8px; }
.lcdWord .blank { font-style: normal; color: #a6252a; animation: blink .6s steps(2) infinite; }
@keyframes blink { to { opacity: .2; } }
.lcdScreen small { display: block; font-size: 9px; opacity: .7; }
.lcdKeys { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.lcdKeys.n4 { grid-template-columns: repeat(4, 1fr); }
.lcdKeys.n5 { grid-template-columns: repeat(5, 1fr); }
.lcdKey { padding: 14px 0; border-radius: 12px; border: 3px solid #6c6f7b; border-bottom-width: 7px; background: #f3f3f5; color: #222; font: 400 clamp(16px, 5.5vw, 24px) "Press Start 2P", monospace; font: 400 clamp(16px, 5.5cqw, 24px) "Press Start 2P", monospace; }
.lcdKey:active { border-bottom-width: 3px; transform: translateY(4px); }
.lcdKey.ok { background: #7fe08a; }
.lcdKey.bad { background: #ff7b7b; }

/* ======================= 9. ODD ONE OUT! (sci-fi neon) ======================= */
.app[data-style="neon"] { background: linear-gradient(rgba(95,211,198,.12) 1px, transparent 1px) 0 0 / 100% 28px, linear-gradient(90deg, rgba(95,211,198,.12) 1px, transparent 1px) 0 0 / 28px 100%, radial-gradient(80% 60% at 50% 100%, #1a2a6e, #090c22 70%); }
.neonHead { font: 400 clamp(26px, 8.4vw, 36px) var(--display); font: 400 clamp(26px, 8.4cqw, 36px) var(--display); color: #e6fffb; text-shadow: 0 0 8px var(--teal), 0 0 24px var(--teal), 0 0 2px #fff; margin-top: 4px; }
.neonSub { font: 800 11px/1 var(--body); letter-spacing: 3px; color: #8ff0e5; margin: 8px 0 14px; }
.neonGrid { width: 92%; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: auto 0; }
.neonGrid.n5, .neonGrid.n6 { gap: 10px; }
.neonTile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 14px; background: rgba(9,12,34,.7); border: 2px solid var(--teal); color: #e6fffb; box-shadow: 0 0 10px rgba(95,211,198,.5), inset 0 0 14px rgba(95,211,198,.15); font: 400 clamp(14px, 4.6vw, 20px) var(--display); font: 400 clamp(14px, 4.6cqw, 20px) var(--display); overflow-wrap: anywhere; }
.neonTile span { font-size: 40px; line-height: 1.1; }
.neonGrid.n6 .neonTile, .neonGrid.n5 .neonTile { padding: 12px 4px; font-size: clamp(13px, 4vw, 17px); font-size: clamp(13px, 4cqw, 17px); }
.neonTile.ok { border-color: #a6ff6b; color: #a6ff6b; box-shadow: 0 0 18px #a6ff6b; }
.neonTile.bad { border-color: var(--pink); color: var(--pink); box-shadow: 0 0 18px var(--pink); animation: tremble .12s linear infinite; }

/* ======================= 10. FLIP IT! (anime błysk) ======================= */
.app[data-style="anime"] { background: repeating-conic-gradient(from 0deg at 50% 30%, rgba(255,255,255,.08) 0 6deg, transparent 6deg 14deg), linear-gradient(160deg, #ff8ec7, #8f5cff 60%, #4d2fd1); }
.animeHead { font: 400 clamp(28px, 9vw, 40px) var(--display); font: 400 clamp(28px, 9cqw, 40px) var(--display); color: #fff; text-shadow: 0 0 10px #fff, 3px 3px 0 #c13ea8; margin-top: 4px; }
.animeQ { min-height: 2.2em; font: 800 clamp(16px, 5.2vw, 22px)/1.2 var(--body); font: 800 clamp(16px, 5.2cqw, 22px)/1.2 var(--body); color: #fff; background: rgba(40,10,80,.55); border: 2px solid #fff; border-radius: 14px; padding: 8px 14px; margin: 8px 0 12px; text-align: center; }
.animeQ em { font-style: normal; color: var(--yellow2); }
.cards { width: 92%; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: auto 0; perspective: 800px; }
.cards.n6 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cards.n3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cards.n4 { grid-template-columns: repeat(2, calc((100% - 20px) / 3)); justify-content: center; gap: 10px; } /* Szymon: 2×2 na środku, karty jak przy 3 i 5 */
.cards.n5 { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; } /* 3 + 2, dolny rząd na środku */
.cards.n5 .fcard { width: calc((100% - 20px) / 3); }
.cards.n3 .fcard .front i, .cards.n5 .fcard .front i { font-size: clamp(32px, 10vw, 46px); font-size: clamp(32px, 10cqw, 46px); }
.fcard { position: relative; aspect-ratio: 3/4; max-height: 150px; border: 0; background: transparent; padding: 0; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.4,1.4,.6,1); }
.fcard.flipped { transform: rotateY(180deg); }
.fcard .face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.fcard .front { background: #fff8ff; }
.fcard .front i { font-style: normal; font-size: clamp(40px, 13vw, 60px); font-size: clamp(40px, 13cqw, 60px); }
.cards.n6 .fcard .front i { font-size: clamp(32px, 10vw, 46px); font-size: clamp(32px, 10cqw, 46px); }
.fcard .back { background: radial-gradient(circle at 50% 40%, #ffb6e2, #c13ea8 70%); color: #fff; font-size: 40px; transform: rotateY(180deg); text-shadow: 0 0 8px #fff; }
.fcard.ok .front { background: #c9ffd3; border-color: #3bd16f; }
.fcard.bad .front { background: #ffc9c9; border-color: #e8232a; }

/* ======================= 11. TAP IN ORDER! (kanciaste 3D) ======================= */
.app[data-style="poly"] { background: linear-gradient(135deg, #0f3b6b 0 30%, #ff7a2f 30% 31%, #10426e 31% 55%, #ffd84d 55% 56%, #0b2f57 56%); }
.polyHead { font: 400 clamp(24px, 7.6vw, 32px) var(--display); font: 400 clamp(24px, 7.6cqw, 32px) var(--display); color: #fff; text-shadow: 3px 3px 0 #ff7a2f, 6px 6px 0 #0b2f57; margin-top: 4px; transform: skewX(-8deg); }
.polySub { font: 800 11px/1 var(--body); letter-spacing: 3px; color: #ffd84d; margin: 8px 0 4px; }
.polyField { position: relative; flex: 1; width: 100%; }
.block { position: absolute; width: 42%; aspect-ratio: 1.6; border: 0; padding: 0; color: #fff; font: 400 clamp(15px, 4.8vw, 20px) var(--display); font: 400 clamp(15px, 4.8cqw, 20px) var(--display); background: hsl(calc(200deg + var(--hue)) 70% 45%); box-shadow: 10px 10px 0 hsl(calc(200deg + var(--hue)) 70% 28%), -4px -4px 0 hsl(calc(200deg + var(--hue)) 70% 62%); clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); overflow-wrap: anywhere; }
.block.ok { background: #3bd16f; box-shadow: 10px 10px 0 #1c7a3c; color: #06321a; }
.block.bad { background: #e8232a; box-shadow: 10px 10px 0 #7a1116; animation: tremble .12s linear infinite; }

/* ======================= 12. WHAT TIME IS IT? (gotyk) ======================= */
.app[data-style="gothic"] { background: radial-gradient(70% 50% at 50% 0%, #4a2a6e, #1a1026 70%); }
.gothHead { font: 400 clamp(22px, 7vw, 30px) var(--display); font: 400 clamp(22px, 7cqw, 30px) var(--display); color: #f1d27a; text-shadow: 0 0 12px rgba(241,210,122,.6), 3px 3px 0 #000; margin-top: 4px; letter-spacing: 1px; }
.clock { width: min(60%, 230px, 32vh); width: min(60%, 230px, 32dvh); margin: auto 0; filter: drop-shadow(0 8px 0 rgba(0,0,0,.4)); }
.clock svg { width: 100%; height: auto; }
.timeOpts { width: 92%; display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 8px; }
.timeOpts.n4 { grid-template-columns: 1fr 1fr; }
.timeOpt { padding: 12px 8px; border-radius: 10px; border: 2px solid #f1d27a; background: #2a1a3d; color: #f1d27a; font: 400 clamp(13px, 4.2vw, 18px) var(--display); font: 400 clamp(13px, 4.2cqw, 18px) var(--display); box-shadow: 0 4px 0 #000; overflow-wrap: anywhere; }
.timeOpt.ok { background: #f1d27a; color: #1a1026; }
.timeOpt.bad { background: #7a1a2a; border-color: var(--pink); color: #fff; animation: tremble .12s linear infinite; }

/* ======================= 13. SERVE IT! (bar w stylu diner) ======================= */
/* .diner to „świat” większy niż kadr: szyld nad kadrem i kolejka po bokach wychodzą na wierzch, gdy zakończenie oddala kamerę (.pull) */
.app[data-style="diner"] { background: repeating-linear-gradient(90deg, #bdeedd 0 24px, #a9e4d0 24px 48px); }
.diner { position: absolute; inset: 0; transform-origin: 50% 45%; transition: transform .55s cubic-bezier(.3,1.15,.4,1); }
.diner::before { content: ""; position: absolute; inset: -90% -90% -40%; background: repeating-linear-gradient(90deg, #bdeedd 0 24px, #a9e4d0 24px 48px); z-index: -1; }
.diner.pull { transform: scale(.56); }
.dinerHead { position: absolute; top: 1%; left: 50%; transform: translateX(-50%) rotate(-3deg); font: 400 clamp(24px, 8vw, 34px) var(--display); font: 400 clamp(24px, 8cqw, 34px) var(--display); color: #fff; background: #e8434f; padding: 4px 18px; border-radius: 12px; border: 3px solid var(--navy); box-shadow: 0 5px 0 var(--navy); white-space: nowrap; transition: opacity .3s; }
.diner.pull .dinerHead { opacity: 0; }
.dinerSign { position: absolute; top: -30%; left: 50%; transform: translateX(-50%); font: 400 clamp(34px, 12vw, 56px) var(--display); font: 400 clamp(34px, 12cqw, 56px) var(--display); color: #fff; white-space: nowrap; padding: 6px 22px; border-radius: 18px; background: var(--navy); border: 5px solid #ff7b86; box-shadow: 0 0 18px #ff7b86, inset 0 0 12px rgba(255,123,134,.5); text-shadow: 0 0 10px #ff7b86; }
.dinerSign b { font-weight: 400; color: var(--yellow2); text-shadow: 0 0 10px var(--yellow2); }
.diner.pull .dinerSign { animation: signBlink .25s steps(2) 3; }
@keyframes signBlink { 50% { opacity: .35; } }
.dinerCounter { position: absolute; left: -90%; right: -90%; bottom: 0; height: 36%; background: linear-gradient(#e6edf2 0 12px, #9aa8b4 12px 16px, #e8434f 16px 46%, #fff 46% 52%, #e8434f 52%); border-top: 3px solid var(--navy); }
.cust { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); width: 92%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.order { position: relative; background: #fff; border: 3px solid var(--navy); border-radius: 18px; padding: 8px 14px; font: 800 clamp(17px, 5.4vw, 23px)/1.2 "Baloo 2", sans-serif; font: 800 clamp(17px, 5.4cqw, 23px)/1.2 "Baloo 2", sans-serif; color: var(--navy); text-align: center; box-shadow: 0 4px 0 var(--navy); animation: popIn .3s cubic-bezier(.3,1.6,.5,1); }
.order::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 16px; height: 16px; background: #fff; border: 3px solid var(--navy); border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }
.order b { font: 400 1.05em var(--display); color: #e8434f; }
.custFace { position: relative; display: block; width: min(46vw, 30vh, 210px); width: min(46cqw, 30dvh, 210px); margin-top: 6px; animation: hover 1.2s ease-in-out infinite; }
.custFace svg, .qFace svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 0 rgba(29,30,79,.18)); }
.custFace .pop { position: absolute; right: -6%; top: 0; font-size: clamp(30px, 10vw, 46px); font-size: clamp(30px, 10cqw, 46px); font-style: normal; opacity: 0; }
.vein { transform-box: fill-box; transform-origin: center; animation: throb .35s ease-in-out infinite alternate; }
@keyframes throb { from { scale: .85; } to { scale: 1.2; } }
.tray { position: absolute; left: 50%; bottom: -6%; width: 1px; height: 1px; }
.qFace { position: absolute; top: 30%; width: clamp(60px, 20vw, 96px); width: clamp(60px, 20cqw, 96px); transition: transform .6s .3s ease-in, opacity .6s .3s; }
.qFace.q0 { left: -24%; } .qFace.q1 { left: -42%; top: 26%; } .qFace.q2 { left: 106%; } .qFace.q3 { left: 124%; top: 26%; }
.goods { position: absolute; left: 4%; right: 4%; bottom: 7%; display: flex; justify-content: center; align-items: flex-end; gap: 3%; }
.good { flex: 0 0 auto; width: min(24vw, 104px); width: min(24cqw, 104px); aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--navy); background: radial-gradient(circle, #fff 55%, #e6edf2 56%); box-shadow: 0 5px 0 var(--navy); display: grid; place-items: center; transition: transform .3s cubic-bezier(.3,1.2,.5,1); }
.goods.n4 .good { width: min(20vw, 92px); width: min(20cqw, 92px); }
.goods.n5 .good { width: min(17vw, 80px); width: min(17cqw, 80px); }
.good span { font-size: clamp(30px, 11vw, 50px); font-size: clamp(30px, 11cqw, 50px); line-height: 1; pointer-events: none; }
.goods.n5 .good span { font-size: clamp(26px, 9vw, 42px); font-size: clamp(26px, 9cqw, 42px); }
.good.sent { z-index: 3; box-shadow: none; }
.tipCoin { position: absolute; left: 70%; top: -20%; font-size: clamp(30px, 10vw, 44px); font-size: clamp(30px, 10cqw, 44px); opacity: 0; }
/* wygrana: klient zajada, serduszko, kolejka podskakuje, napiwek spada na ladę */
.cust.yum .custFace { animation: munch .18s ease-in-out 6; }
.cust.yum .custFace .pop { animation: heartUp .9s .1s ease-out forwards; }
.cust.yum ~ .goods .good.sent { animation: eaten .5s .35s ease-in forwards; }
.diner.pull:not(.mad) .qFace { animation: hop .32s ease-in-out infinite alternate; }
.diner.pull:not(.mad) .qFace.q1, .diner.pull:not(.mad) .qFace.q3 { animation-delay: .16s; }
.diner.tip .tipCoin { animation: coinDrop .5s cubic-bezier(.5,0,.7,1.4) forwards; }
@keyframes munch { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.12, .88); } }
@keyframes heartUp { 0% { opacity: 0; transform: translateY(10px) scale(.5); } 30% { opacity: 1; transform: translateY(0) scale(1.2); } 100% { opacity: 0; transform: translateY(-40px) scale(1); } }
@keyframes eaten { to { opacity: 0; scale: .2; } }
@keyframes hop { from { transform: translateY(0); } to { transform: translateY(-12%); } }
@keyframes coinDrop { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 1; transform: translateY(330%) rotate(360deg); } }
/* pudło: klient czerwienieje i drży, powtarza zamówienie; kolejka też się złości, pierwszy z kolejki odchodzi */
.cust.angry .custFace { animation: tremble .1s linear infinite; }
.cust.angry .order { background: #ffe1e4; border-color: #b0182a; animation: popIn .3s cubic-bezier(.3,1.6,.5,1); }
.diner.mad .qFace:not(.q0) { animation: tremble .14s linear infinite; }
.diner.mad .qFace.q0 { transform: translateX(-120%); opacity: 0; }

/* ======================= 14. FIX THE TYPO! (maszyna do pisania na biurku) ======================= */
.app[data-style="typewriter"] { background: repeating-linear-gradient(100deg, #9b6a45 0 18px, #8f603d 18px 22px, #a3724b 22px 40px); }
.tw { position: absolute; inset: 0; transform-origin: 50% 40%; transition: transform .55s cubic-bezier(.3,1.15,.4,1); }
.tw::before { content: ""; position: absolute; inset: -90% -90%; background: repeating-linear-gradient(100deg, #9b6a45 0 18px, #8f603d 18px 22px, #a3724b 22px 40px); z-index: -1; }
.paper { position: absolute; top: 2%; left: 7%; right: 7%; bottom: 29%; z-index: 1; background: repeating-linear-gradient(#fffdf5 0 30px, #e8eef8 30px 31px); border-radius: 4px 4px 0 0; box-shadow: 0 6px 18px rgba(0,0,0,.25); display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; padding: 10px 6px 24px; }
.twHead { font: 400 clamp(22px, 7.4vw, 32px) "Special Elite", monospace; font: 400 clamp(22px, 7.4cqw, 32px) "Special Elite", monospace; color: var(--navy); border-bottom: 3px solid var(--navy); letter-spacing: 1px; }
.twPic { font-size: clamp(54px, 18vw, 84px); font-size: clamp(54px, 18cqw, 84px); line-height: 1; }
.twWord { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1.4vw; gap: 1.4cqw; width: 94%; }
.twKey { position: relative; aspect-ratio: .78; display: grid; place-items: center; padding: 0; border: 0; border-bottom: 3px solid rgba(29,30,79,.25); background: transparent; color: var(--navy); font: 400 min(15vw, calc(78vw / var(--n)), 64px) "Special Elite", monospace; font: 400 min(15cqw, calc(78cqw / var(--n)), 64px) "Special Elite", monospace; }
.twWord.wobble .twKey { animation: keyWobble 1.1s ease-in-out infinite; animation-delay: var(--d); }
@keyframes keyWobble { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-6%); } }
.twSub { font: 400 clamp(11px, 3.4vw, 14px) "Special Elite", monospace; font: 400 clamp(11px, 3.4cqw, 14px) "Special Elite", monospace; color: #6b6f9e; letter-spacing: 2px; }
.twWord .twKey.miss { color: var(--pink); animation: tremble .1s linear infinite; }
.twWord .twKey.out { animation: keyOut .26s ease-in forwards; }
.twWord .twKey.in { animation: keyIn .25s cubic-bezier(.3,1.8,.5,1); }
@keyframes keyOut { to { transform: translateY(-160%) rotate(220deg); opacity: 0; } }
@keyframes keyIn { from { transform: translateY(-80%) scale(1.6); } to { transform: none; } }
.twWord.fixed .twKey { color: #1b8a3f; text-shadow: 0 0 10px rgba(46,204,113,.6); animation: none; }
/* pudło: literówka w czerwonym kółku, nad nią poprawna litera „długopisem” */
.twWord .twKey.typoMark { animation: none; }
.twKey.typoMark::before { content: ""; position: absolute; inset: 4% -8%; border: 3px solid #e8232a; border-radius: 50%; transform: rotate(-6deg); animation: popIn .25s cubic-bezier(.3,1.6,.5,1); }
.redfix { position: absolute; left: 50%; top: -58%; transform: translateX(-50%) rotate(-8deg); font: 400 .8em "Patrick Hand", cursive; font-style: normal; color: #e8232a; animation: popIn .3s .15s cubic-bezier(.3,1.6,.5,1) both; }
.stamp { position: absolute; right: 4%; bottom: 3%; font: 400 clamp(22px, 7.6vw, 34px) var(--display); font: 400 clamp(22px, 7.6cqw, 34px) var(--display); padding: 2px 10px; border: 4px solid; border-radius: 8px; transform: rotate(-14deg); opacity: 0; pointer-events: none; }
.stamp.ok { color: #1b8a3f; animation: stampIn .25s cubic-bezier(.3,1.4,.5,1) forwards; }
.stamp.bad { color: #e8232a; animation: stampIn .25s cubic-bezier(.3,1.4,.5,1) forwards; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-14deg) scale(2.6); } to { opacity: .9; transform: rotate(-14deg) scale(1); } }
/* ======================= wspólne dla zakończeń: dymek postaci i podpis z poprawną odpowiedzią ======================= */
.ufoSay, .twrSay, .cuSay, .btqSay, .dojoSay { position: absolute; z-index: 5; background: #fff; color: var(--navy); border: 3px solid var(--navy); border-radius: 14px; padding: 2px 10px; font: 400 clamp(14px, 4.6vw, 20px) var(--display); font: 400 clamp(14px, 4.6cqw, 20px) var(--display); box-shadow: 0 3px 0 var(--navy); white-space: nowrap; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.ufoSay.on, .twrSay.on, .cuSay.on, .btqSay.on, .dojoSay.on { transform: scale(1); }
.ufoTag, .twrTag, .gTag, .btqTag { position: absolute; left: 50%; z-index: 5; transform: translateX(-50%) scale(0); font: 400 clamp(13px, 4.4vw, 19px) var(--display); font: 400 clamp(13px, 4.4cqw, 19px) var(--display); padding: 4px 14px; border-radius: 99px; white-space: nowrap; background: var(--navy); color: #fff; transition: transform .3s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.ufoTag.on, .twrTag.on, .gTag.on, .btqTag.on { transform: translateX(-50%) scale(1); }

/* ======================= 9. ODD ONE OUT! — UFO (styl neon) ======================= */
.ufoW { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; }
.ufoWrap { position: relative; z-index: 2; width: min(54%, 230px); margin-top: 2px; animation: ufoHover 2.4s ease-in-out infinite alternate; }
.ufoWrap svg { width: 100%; height: auto; display: block; }
.ufoWrap.locked { animation-play-state: paused; }
@keyframes ufoHover { from { transform: translateX(-14%) rotate(-3deg); } to { transform: translateX(14%) rotate(3deg); } }
.ufoLight { animation: ufoBlink .6s steps(2) infinite; }
@keyframes ufoBlink { 50% { fill: #ff5c8a; } }
.beam { position: absolute; z-index: 1; pointer-events: none; background: linear-gradient(rgba(166,255,107,.8), rgba(166,255,107,.15)); animation: beamOn .2s ease-out; }
@keyframes beamOn { from { opacity: 0; } }
.neonTile { position: relative; }
.neonTile.taken { opacity: .2; }
.neonTile.abducted { z-index: 3; pointer-events: none; }
.neonTile.abducted.spat { animation: spat .5s ease-in forwards; }
@keyframes spat { 0% { transform: translate(var(--dx), var(--dy)) scale(.25); } 70% { transform: none; } 85% { transform: translateY(-10%) rotate(-12deg); } 100% { transform: rotate(6deg); } }
.neonTile.bye::after { content: "👋"; position: absolute; top: -22%; right: -8%; font-size: 24px; animation: wave .25s ease-in-out infinite alternate; }
@keyframes wave { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.ufoW.leave .ufoWrap { animation: ufoLeave .9s cubic-bezier(.5,0,.8,.4) forwards; }
@keyframes ufoLeave { 0% { transform: none; } 25% { transform: translate(-10%, 12%) rotate(-8deg); } 100% { transform: translate(170%, -340%) rotate(20deg) scale(.8); } } /* przysiad i odlot za ekran w prawo-górę */
.carry { position: absolute; left: 50%; top: 80%; transform: translateX(-50%); width: 36%; height: 110%; background: linear-gradient(rgba(166,255,107,.75), rgba(166,255,107,.1)); clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%); display: flex; align-items: flex-end; justify-content: center; }
.carry span { font-size: clamp(22px, 8vw, 34px); font-size: clamp(22px, 8cqw, 34px); animation: hover 1s ease-in-out infinite; }
.ufoSay { top: 15%; right: 4%; }
.ufoTag { bottom: 2%; background: var(--pink); }

/* ======================= 11. TAP IN ORDER! — wieża z klocków (styl tower) ======================= */
.app[data-style="tower"] { background: linear-gradient(#7fd3ff, #c9ecff 60%, #f2fbff); }
.twr { position: absolute; inset: 0; transform-origin: 50% 80%; transition: transform .6s cubic-bezier(.3,1.1,.4,1); }
.twr.pull { transform: scale(.85); } /* Szymon: animacja z Zizi na szczycie ma być dobrze widoczna (było .56, potem .72) */
.twrSky { position: absolute; inset: -150% -90% 0; z-index: -1; background: linear-gradient(#3a8fd9, #7fd3ff 55%, #c9ecff); }
.twrGround { position: absolute; left: -90%; right: -90%; top: 66%; bottom: -60%; background: #6cc56a; border-top: 4px solid var(--navy); }
.twr .cl { position: absolute; width: 22%; height: 5%; background: #fff; border-radius: 99px; opacity: .92; }
.twr .cl::before { content: ""; position: absolute; left: 20%; top: -70%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.twr .c1 { left: 6%; top: 18%; } .twr .c2 { left: 70%; top: -26%; } .twr .c3 { left: -30%; top: -46%; width: 30%; }
.twrSun { position: absolute; top: -56%; right: -14%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: #ffd84d; box-shadow: 0 0 40px #ffd84d; }
.twr .polyHead { position: absolute; top: 1%; left: 50%; margin: 0; transform: translateX(-50%) skewX(-8deg); white-space: nowrap; text-shadow: 3px 3px 0 var(--navy), 5px 5px 0 var(--pink); }
.twr .polySub { position: absolute; top: 10%; left: 0; right: 0; margin: 0; text-align: center; color: var(--navy); }
.twr .polyHead, .twr .polySub { transition: opacity .3s; }
.twr.pull .polyHead, .twr.pull .polySub { opacity: 0; }
.twrSlot { position: absolute; left: 33%; width: 34%; height: 7.6%; }
.block.tblock { width: 34%; height: 7.6%; aspect-ratio: auto; clip-path: none; border-radius: 6px; border: 3px solid var(--navy); font-size: clamp(12px, 4vw, 17px); font-size: clamp(12px, 4cqw, 17px); transform: rotate(var(--rot)); transition: transform .35s cubic-bezier(.3,1.2,.5,1); box-shadow: inset 0 -6px 0 hsl(calc(200deg + var(--hue)) 70% 30%), 0 4px 0 var(--navy); }
.block.tblock.placed { z-index: 2; }
.block.tblock.bad { background: #e8232a; box-shadow: inset 0 -6px 0 #7a1116, 0 4px 0 var(--navy); }
.twrZizi { position: absolute; left: 33%; width: 34%; z-index: 3; opacity: 0; pointer-events: none; }
.twrZizi svg { width: 100%; height: auto; display: block; overflow: visible; }
.twrZizi.jump { opacity: 1; animation: zJump .55s cubic-bezier(.3,.6,.5,1) both; }
@keyframes zJump { 0% { transform: translate(-160%, 200%) rotate(-40deg); } 60% { transform: translate(-30%, -50%) rotate(12deg); } 100% { transform: none; } }
.twrFlag { position: absolute; right: -26%; top: -8%; font-size: clamp(30px, 10vw, 46px); font-size: clamp(30px, 10cqw, 46px); animation: popIn .3s .5s cubic-bezier(.3,1.6,.5,1) both; }
.twrZizi.fall { opacity: 1; left: 50%; animation: zFall .55s cubic-bezier(.5,0,.8,.6) both; }
@keyframes zFall { 0% { transform: translateY(-300%) rotate(0); } 80% { transform: translateY(6%) rotate(170deg); } 100% { transform: rotate(180deg); } }
.twrDizzy { position: absolute; left: 30%; bottom: -16%; font-size: clamp(20px, 7vw, 30px); font-size: clamp(20px, 7cqw, 30px); transform: rotate(180deg); }
.twrSay { top: 16%; left: 4%; }
.twrTag { top: 22%; background: #fff; color: var(--navy); border: 3px solid var(--navy); }

/* ======================= 12. WHAT TIME IS IT? — zegar z kukułką na wieży zamku (styl gotycki) ======================= */
.gw { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 38%; transition: transform .6s cubic-bezier(.3,1.1,.4,1); }
.gw.pull { transform: scale(.56); }
.gw::before { content: ""; position: absolute; inset: -90%; z-index: -2; background: radial-gradient(50% 35% at 50% 20%, #4a2a6e, #1a1026 70%); }
.gTower { position: absolute; left: -12%; width: 124%; top: -24%; height: 190%; z-index: -1; }
.gTower svg { width: 100%; height: 100%; display: block; }
.gMoon { position: absolute; top: -34%; right: -26%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: #fff6c8; box-shadow: 0 0 30px #fff6c8; }
.cuWrap { position: relative; width: min(56%, 220px, 30vh); width: min(56%, 220px, 30dvh); margin: auto 0; }
.cuWrap svg.cuckoo { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 8px 0 rgba(0,0,0,.4)); }
.cuckoo .pendulum { transform-box: view-box; transform-origin: 100px 178px; animation: swing 1s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.cuckoo .door { transform-box: fill-box; transform-origin: left center; transition: transform .25s; }
.cuWrap.open .cuckoo .door { transform: scaleX(.12); }
.cuWrap.spin .cuckoo .hands { transform-box: view-box; transform-origin: 100px 125px; animation: handsSpin .9s cubic-bezier(.2,.7,.4,1); }
@keyframes handsSpin { from { transform: rotate(0); } to { transform: rotate(720deg); } }
.cuZizi { position: absolute; left: 50%; top: 21.6%; width: 32%; z-index: 2; transform: translate(-50%, -50%) scale(0); transition: transform .35s .15s cubic-bezier(.3,1.8,.5,1); }
.cuZizi svg { width: 100%; height: auto; display: block; overflow: visible; }
.cuWrap.cuckooOut .cuZizi { transform: translate(-50%, -80%) scale(1); animation: cuBob .19s .5s ease-in-out 6 alternate; }
@keyframes cuBob { to { margin-top: -6%; } }
.batFly { position: absolute; left: 50%; top: 21.6%; width: 40%; z-index: 3; opacity: 0; pointer-events: none; }
.batFly svg { width: 100%; height: auto; display: block; }
.cuWrap.batOut .batFly { animation: batLoop 1.3s ease-in-out forwards; }
.cuWrap.batOut .wingsBat { transform-box: fill-box; transform-origin: center; animation: batFlap .12s linear infinite alternate; }
@keyframes batFlap { to { transform: scaleY(.55); } }
@keyframes batLoop { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.2); } 30% { transform: translate(60%, -170%) scale(1); } 55% { transform: translate(-180%, -120%) scale(1) rotate(-15deg); } 80% { transform: translate(-60%, -230%) scale(1); } 100% { opacity: 1; transform: translate(140%, -320%) scale(.9); } }
.cuSay { top: -8%; right: -30%; }
.gTag { bottom: 30%; background: #2a1a3d; color: #f1d27a; border: 2px solid #f1d27a; }
.gTag.ok { background: #f1d27a; color: #1a1026; }
.gTag.bad { background: #7a1a2a; color: #fff; border-color: var(--pink); }

/* ======================= 15. DRAW …! — butik z manekinem ======================= */
.app[data-style="boutique"] { background: repeating-linear-gradient(90deg, #ffe3ec 0 26px, #ffd3e1 26px 52px); }
.btq { position: absolute; inset: 0; transform-origin: 50% 45%; transition: transform .55s cubic-bezier(.3,1.15,.4,1); }
.btq.pull { transform: scale(.5); }
.btq::before { content: ""; position: absolute; inset: -90%; z-index: -1; background: repeating-linear-gradient(90deg, #ffe3ec 0 26px, #ffd3e1 26px 52px); }
.btq::after { content: ""; position: absolute; inset: -4% -48%; border: 14px solid var(--navy); border-radius: 20px; box-shadow: 0 0 0 6px #ff5c8a; pointer-events: none; } /* rama witryny — widać ją dopiero po oddaleniu */
.btqSign { position: absolute; top: -24%; left: 50%; transform: translateX(-50%); font: 400 clamp(30px, 11vw, 48px) var(--display); font: 400 clamp(30px, 11cqw, 48px) var(--display); letter-spacing: 6px; color: #fff; background: #ff5c8a; border: 4px solid var(--navy); border-radius: 14px; padding: 6px 20px; box-shadow: 0 6px 0 var(--navy); }
.btqSide { position: absolute; top: 20%; width: 44%; } .btqSide.l { left: -46%; } .btqSide.r { left: 102%; }
.btqSide svg { width: 100%; height: auto; display: block; }
.btqHead { position: absolute; top: 2%; left: 50%; transform: translateX(-50%); max-width: 94%; text-align: center; font: 400 clamp(18px, 6vw, 26px)/1.1 var(--display); font: 400 clamp(18px, 6cqw, 26px)/1.1 var(--display); color: #fff; background: #ff5c8a; border: 3px solid var(--navy); border-radius: 12px; padding: 4px 12px; box-shadow: 0 4px 0 var(--navy); z-index: 2; transition: opacity .3s; }
.btqHead { white-space: nowrap; max-width: 96%; font-size: clamp(12px, 3.9vw, 19px); font-size: clamp(12px, 3.9cqw, 19px); pointer-events: none; } /* jedna linia, dotyk przechodzi do manekina (Szymon 2026-10-02) */
.btqHead b { font-size: 1.4em; color: var(--yellow2); vertical-align: -.06em; }
.btq.pull .btqHead { opacity: 0; }
.mqWrap { position: absolute; left: 50%; top: 13%; width: min(74%, 52vh); width: min(74%, 52dvh); transform: translateX(-50%); }
.mq { width: 100%; height: auto; display: block; overflow: visible; touch-action: none; }
.facePart { fill: var(--navy); }
.facePart.line { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mq polyline { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.guideBox { fill: rgba(255,92,138,.12); stroke: #ff5c8a; stroke-width: 3; stroke-dasharray: 6 5; animation: signBlink .4s steps(2) 4; }
.guideTxt { font: 400 11px "Bungee", sans-serif; fill: #e8235a; text-anchor: middle; }
.btq.star .mqWrap::after { content: "✨"; position: absolute; right: -6%; top: 2%; font-size: clamp(30px, 10vw, 46px); font-size: clamp(30px, 10cqw, 46px); animation: popIn .3s cubic-bezier(.3,1.6,.5,1); }
.btqSay { top: 8%; right: 2%; }
.btqTag { bottom: 2%; background: #ff5c8a; }

/* ======================= 16. CUT THE …! — dojo (Fruit Ninja) ======================= */
.app[data-style="dojo"] { background: radial-gradient(90% 70% at 50% 40%, transparent, rgba(0,0,0,.55)), repeating-linear-gradient(90deg, #4a3020 0 62px, #3c2617 62px 66px); }
.dojo { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.dojoHead { position: absolute; top: 2%; left: 50%; transform: translateX(-50%); font: 400 clamp(22px, 7vw, 32px) var(--display); font: 400 clamp(22px, 7cqw, 32px) var(--display); color: #fff; text-shadow: 3px 3px 0 #e8232a, 5px 5px 0 #000; white-space: nowrap; pointer-events: none; z-index: 2; }
.cutItem { position: absolute; left: 0; top: 0; line-height: 1; pointer-events: none; will-change: transform; filter: drop-shadow(0 5px 0 rgba(0,0,0,.45)); }
.cutHalf { position: absolute; line-height: 1; pointer-events: none; animation: halfFly .75s ease-in forwards; }
.cutHalf.a { clip-path: inset(0 50% 0 0); } .cutHalf.b { clip-path: inset(0 0 0 50%); }
@keyframes halfFly { to { transform: translate(var(--dx), 200px) rotate(var(--rot)); opacity: 0; } }
.juice { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 46% 54% 40% 60%; opacity: .7; pointer-events: none; animation: juice .9s ease-out forwards; }
@keyframes juice { 0% { transform: scale(.2); } 30% { transform: scale(1.1); } 100% { transform: scale(1.25); opacity: 0; } }
svg.slash { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
svg.slash polyline { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .15s; filter: drop-shadow(0 0 6px #fff); }
svg.slash polyline.on { opacity: .9; } /* svg.slash — nie .slash: Zizi w walce dostaje klasę „slash” (poza) i przejmowała inset:0 → wylatywała na górę (Szymon 2026-10-02) */
.dojoZizi { position: absolute; left: 50%; bottom: -50%; width: 46%; transform: translateX(-50%); transition: bottom .35s cubic-bezier(.3,1.5,.5,1); z-index: 6; pointer-events: none; }
.dojoZizi.on { bottom: 4%; }
.stage.fullDojo .dojoZizi.on { bottom: calc(4% + 26px); } /* Szymon 2026-10-08: plansza sięga pod lont, więc Zizi wystawała zza niego za mało — o 26 px wyżej */
.dojoZizi svg { width: 100%; height: auto; display: block; overflow: visible; }
.dojoSay { bottom: 44%; left: 56%; }

/* ======================= 17. ERASE THE …! — szkolna tablica z kredą ======================= */
.app[data-style="chalk"] { background: #c9a27a; }
.board { position: absolute; inset: 1% 3% 2%; border: 12px solid #8a5a34; border-radius: 10px; background: radial-gradient(120% 90% at 50% 40%, #3f6e55, #2a4a3a); box-shadow: inset 0 0 40px rgba(0,0,0,.45), 0 6px 0 #5a3a20; overflow: hidden; }
.chalkHead { position: absolute; top: 3%; left: 4%; right: 4%; text-align: center; font: 400 clamp(26px, 8.5vw, 38px)/1.05 "Patrick Hand", cursive; font: 400 clamp(26px, 8.5cqw, 38px)/1.05 "Patrick Hand", cursive; color: #fff; opacity: .94; text-shadow: 0 0 2px rgba(255,255,255,.6); z-index: 2; pointer-events: none; }
.faceWrap { position: absolute; left: 0; right: 0; margin: 0 auto; top: 15%; width: min(86%, 46vh); width: min(86%, 46dvh); aspect-ratio: 200 / 240; }
.faceWrap canvas { position: absolute; top: 0; left: -12%; width: 124%; height: 100%; } /* = ERASE_PAD w game.js */
.board { touch-action: none; cursor: none; } /* ERASE: gąbka zamiast kursora na całej tablicy, nie tylko na twarzy */
.faceWrap.angry { animation: tremble .1s linear infinite; }
.faceWrap.laugh { animation: hop .18s ease-in-out infinite alternate; }
.faceWrap.surprised { animation: popIn .3s cubic-bezier(.3,1.8,.5,1); }
.faceWrap.sad { animation: slowSink 1.2s ease-out forwards; }
@keyframes slowSink { to { transform: translateY(4%) rotate(-3deg); } }
.sponge { position: absolute; left: 0; top: 0; font-size: clamp(36px, 12vw, 52px); font-size: clamp(36px, 12cqw, 52px); line-height: 1; pointer-events: none; opacity: 0; z-index: 4; transition: opacity .1s; }
.sponge.on { opacity: .8; }
.sponge.press { opacity: 1; font-size: clamp(32px, 11vw, 48px); font-size: clamp(32px, 11cqw, 48px); } /* wciśnięta gąbka lekko się „przyciska” */
.chalkSay { position: absolute; bottom: 13%; left: 50%; max-width: 84%; text-align: center; z-index: 5; background: #fff; color: #2a4a3a; border: 3px solid #1d1e4f; border-radius: 16px; padding: 4px 12px; font: 400 clamp(18px, 5.8vw, 26px)/1.05 "Patrick Hand", cursive; font: 400 clamp(18px, 5.8cqw, 26px)/1.05 "Patrick Hand", cursive; box-shadow: 0 3px 0 #1d1e4f; transform: translateX(-50%) scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.chalkSay.on { transform: translateX(-50%) scale(1); }
.chalkTray { position: absolute; left: 4%; right: 4%; bottom: 0; height: 6%; background: #8a5a34; border-radius: 6px 6px 0 0; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.chalkTray i { width: 30px; height: 8px; border-radius: 3px; background: #fff; transform: rotate(-4deg); } .chalkTray i.p { background: #ffb3c9; transform: rotate(6deg); } .chalkTray i.y { background: #ffe680; }
.chalkTray span { margin-left: auto; font-size: 22px; }

/* ======================= BOSS: Captain Bee-ard na statku (zaakceptowany w makiecie mockup-boss.html) ======================= */
.app[data-style="ship"] { background: #0d0a12; } /* pas nad planszą bossa na czarno — kolor nie komponował się z niebem i błyskami (Szymon 2026-10-02) */
.ship { position: absolute; inset: 0; overflow: hidden; touch-action: none; background: #ffb36b; }
html.bossNoZoom, html.bossNoZoom body { touch-action: none; } /* walka z bossem: bez przybliżania na iPhonie także poza planszą (Szymon 2026-10-06) */
.shipBg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; } /* plansza bossa z art.js (bossScene) */
.shipBg .bsDrift { animation: bsDrift 26s linear infinite; } .shipBg .bsDrift2 { animation-duration: 38s; animation-delay: -12s; }
@keyframes bsDrift { from { transform: translateX(-30%); } to { transform: translateX(130%); } }
.shipBg .bsWave { animation: bsWave 3s linear infinite; }
@keyframes bsWave { from { transform: translateX(0); } to { transform: translateX(-40px); } }
.shipBg .bsRock { transform-box: view-box; transform-origin: 50% 70%; animation: bsRock 3.4s ease-in-out infinite alternate; }
@keyframes bsRock { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg) translateY(-3px); } }
.shipBg .bsGlow { animation: bsGlow 2.6s ease-in-out infinite alternate; } @keyframes bsGlow { from { opacity: .7; } to { opacity: 1; } }
.shipBg .bsLamp { animation: bsLamp .18s steps(2) infinite alternate; } @keyframes bsLamp { to { opacity: .75; } }
.shipBg .bsFlag { transform-box: fill-box; transform-origin: left center; animation: bsFlag .5s ease-in-out infinite alternate; } @keyframes bsFlag { to { transform: skewY(6deg) scaleX(.94); } }
/* dawne słońce (.ship::before) — teraz w bossScene */
.ship .sea { position: absolute; left: 0; top: 40%; width: 100%; height: 14%; display: block; }
.ship .pwave { animation: pwave 2.4s steps(6) infinite; } .ship .pwave.p2 { animation-duration: 3.2s; animation-direction: reverse; }
@keyframes pwave { to { transform: translateX(-30px); } } /* jak w prototypie Papuga: skokowo, jeden okres fali */
.shipRail { position: absolute; left: 0; right: 0; top: 54%; height: 4%; background: #6b4228; border-top: 3px solid #1b1b1b; border-bottom: 3px solid #1b1b1b; }
.sbBar { position: absolute; top: 1%; left: 3%; right: 3%; z-index: 20; display: flex; align-items: center; gap: 8px; background: rgba(29,30,79,.88); border-radius: 12px; padding: 5px 10px; }
.sbBar b { font: 400 clamp(11px, 3.4vw, 14px) var(--display); font: 400 clamp(11px, 3.4cqw, 14px) var(--display); color: #fff; white-space: nowrap; }
.sbHp { flex: 1; display: flex; gap: 4px; }
.sbHp i { flex: 1; height: 12px; border-radius: 4px; background: var(--pink); border: 2px solid var(--navy); transition: background .15s, transform .15s; }
.sbHp i.off { background: #3b3d80; transform: scaleY(.6); }
.sbCap { position: absolute; left: 50%; top: 13%; width: 46%; transform: translate(-50%, 0); z-index: 6; transition: transform .14s; }
.ship .cutItem, .ship .cutHalf, .ship .juice { z-index: 9; } /* kule i miód przed kapitanem (Szymon: pojawiały się za nim) */
.sbCap svg { width: 100%; height: auto; display: block; overflow: visible; }
.sbCap.jolt { animation: sbJolt .3s; }
@keyframes sbJolt { 25% { margin-left: -8px; } 75% { margin-left: 8px; } }
.sbSay { position: absolute; left: 4%; top: 13%; z-index: 16; background: #fff; color: var(--navy); border: 3px solid var(--navy); border-radius: 14px; padding: 2px 10px; font: 400 clamp(14px, 4.6vw, 19px) var(--display); font: 400 clamp(14px, 4.6cqw, 19px) var(--display); box-shadow: 0 3px 0 var(--navy); white-space: nowrap; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.sbSay.on { transform: scale(1); }
.sbLabel { position: absolute; left: 50%; top: 57%; z-index: 15; transform: translateX(-50%) scale(0); text-align: center; font: 400 clamp(17px, 5.6vw, 24px)/1.05 var(--display); font: 400 clamp(17px, 5.6cqw, 24px)/1.05 var(--display); color: #fff; text-shadow: 3px 3px 0 var(--pink), 5px 5px 0 var(--navy); white-space: nowrap; transition: transform .25s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.sbLabel.on { transform: translateX(-50%) scale(1); }
.sbLabel small { display: block; width: max-content; margin: 4px auto 0; font: 800 clamp(11px, 3.4vw, 14px) var(--body); font: 800 clamp(11px, 3.4cqw, 14px) var(--body); letter-spacing: 1px; text-shadow: none; color: var(--navy); background: var(--yellow2); border-radius: 99px; padding: 1px 10px; }
.sbZizi { position: absolute; left: 3%; bottom: 1%; width: 34%; z-index: 11; animation: sbBob .9s ease-in-out infinite alternate; transform-origin: 50% 100%; pointer-events: none; }
.sbZizi svg { width: 100%; height: auto; display: block; overflow: visible; }
.sbZizi.cheer { animation: sbJump .25s ease-out 3 alternate; } .sbZizi.ouch { animation: sbShake .1s linear 5; } .sbZizi.slash { animation: sbLunge .3s ease-out; }
@keyframes sbBob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-6px) rotate(2deg); } }
@keyframes sbJump { to { transform: translateY(-22%) rotate(4deg); } }
@keyframes sbShake { 50% { transform: translateX(-8px) rotate(-6deg); } }
@keyframes sbLunge { 50% { transform: translate(10%, -8%) rotate(8deg); } }
.sbZizi .wb { transform-box: fill-box; transform-origin: 20% 80%; animation: sbFlap .1s linear infinite alternate; }
@keyframes sbFlap { to { transform: rotate(-10deg) scaleY(.9); } }
.sbBarrels { position: absolute; left: 38%; right: 2%; bottom: 10%; display: flex; justify-content: center; align-items: flex-end; gap: 8px; z-index: 10; } /* Szymon: większe pole kliknięcia */
.bsPropL, .bsPropR { transition: transform .4s cubic-bezier(.3,1.25,.5,1); } .ship.barrelsOn .bsPropL { transform: translateX(-72px); } .ship.barrelsOn .bsPropR { transform: translateX(72px); } /* skrzynie robią miejsce beczkom (2026-10-09) */
.sbBarrels.row { left: 5%; right: 5%; bottom: 21%; gap: 10px; } .sbBarrels.row .sbBarrel { max-width: 24%; } /* ta sama wielkość beczki przy 3 i 4 */ .sbBarrels.row .sbBarrel b { font-size: clamp(14px, 5.4cqw, 22px); } /* L2–L3, 4 beczki (Szymon 2026-10-09: „powiększyć ciut”): rząd nad Zizi na prawie całą szerokość — przy Zizi zostawało 48 px na beczkę */
.sbBarrel { position: relative; flex: 1 1 0; min-width: 0; max-width: 34%; aspect-ratio: .78; touch-action: manipulation; padding: 0; border-radius: 40% / 18%; background: repeating-linear-gradient(90deg, #a5683c 0 12px, #8f5730 12px 14px); border: 3px solid #3a2418; box-shadow: inset 0 10px 0 -6px #c9ced8, inset 0 -10px 0 -6px #c9ced8, 0 4px 0 #3a2418; display: grid; place-items: center; }
.sbBarrel::before { content: ""; position: absolute; inset: -18px -4px -12px; } /* niewidoczny margines, który też łapie dotknięcie */
.sbBarrel b { font: 400 clamp(12px, 4vw, 17px) var(--display); font: 400 clamp(12px, 4cqw, 17px) var(--display); pointer-events: none; display: block; max-width: 90%; overflow: hidden; color: #fff; background: rgba(29,30,79,.85); padding: 2px 4px; text-align: center; border-radius: 6px; white-space: nowrap; }
.sbBarrel b span { display: inline-block; transform-origin: 0 50%; } /* długie słowo zwężone w poziomie (fitBarrels, 2026-10-09) */
.sbFx { position: absolute; z-index: 18; font-size: clamp(54px, 18vw, 80px); font-size: clamp(54px, 18cqw, 80px); line-height: 1; pointer-events: none; transform: translate(-50%, -50%); filter: drop-shadow(0 0 10px #fff); animation: sbFx .75s ease-out forwards; }
.sbFx.small { font-size: clamp(34px, 11vw, 50px); font-size: clamp(34px, 11cqw, 50px); animation-duration: .55s; } /* przecięta kula i trafienie iskrą */
.sbSpark { position: absolute; z-index: 17; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, #ffd84a 45%, #ff7a2e 75%, transparent 76%); box-shadow: 0 0 12px 4px rgba(255,170,60,.8); transform: translate(-50%, -50%); pointer-events: none; }
@keyframes sbFx {0% { transform: translate(-50%, -50%) scale(.3); } 50% { transform: translate(-50%, -50%) scale(1.6); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(2); opacity: 0; } }
.sbMeter { position: absolute; left: 44%; right: 6%; bottom: 10%; z-index: 15; pointer-events: none; /* niewidoczny pasek przykrywał środek beczek (Szymon: „łapie tylko dolną część”) */ height: 24px; border-radius: 99px; background: rgba(29,30,79,.88); border: 3px solid #fff; overflow: hidden; opacity: 0; transition: opacity .2s; }
.sbMeter.on { opacity: 1; }
.sbMeter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--yellow2), var(--pink)); transition: width .1s; }
.sbRipple { position: absolute; z-index: 28; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; pointer-events: none; animation: sbRipple .4s ease-out forwards; }
@keyframes sbRipple { to { transform: scale(3); opacity: 0; } }
.sbBanner { position: absolute; left: 50%; top: 50%; z-index: 25; background: rgba(29,30,79,.9); border: 4px solid var(--yellow2); border-radius: 22px; padding: 12px 26px 14px; box-shadow: 0 6px 0 rgba(0,0,0,.35); /* tabliczka na morzu — na 40% napis ginął na słońcu (Szymon 2026-10-02) */ transform: translate(-50%, -50%) scale(0); text-align: center; font: 400 clamp(32px, 11vw, 48px)/1 var(--display); font: 400 clamp(32px, 11cqw, 48px)/1 var(--display); color: var(--yellow2); text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 var(--navy); white-space: nowrap; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.sbBanner.on { transform: translate(-50%, -50%) scale(1); }
.sbBanner .heart { display: inline-block; width: .95em; height: .87em; vertical-align: -.06em; filter: drop-shadow(3px 3px 0 var(--navy)); }
.sbBanner small { display: block; font: 400 clamp(13px, 4.4vw, 18px) var(--display); font: 400 clamp(13px, 4.4cqw, 18px) var(--display); color: #fff; text-shadow: 2px 2px 0 var(--navy); margin: 8px auto 0;
  white-space: normal; width: max-content; max-width: 70vw; max-width: calc(100vw - 96px); max-width: calc(100cqw - 96px); text-wrap: balance; } /* długi podpis (en, es, it) zawija się w tabliczce zamiast wychodzić za ekran */
/* pasek życia Zizi w walce (3 serduszka): błąd zabiera jedno, 3 błędy = przegrane starcie (−1 główne serce) */
.sbZBar { position: absolute; bottom: 1.5%; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 6px; background: rgba(29,30,79,.88); border-radius: 14px; padding: 2px 12px; }

.sbZBar span { display: flex; gap: 6px; } /* Szymon: same serduszka, bez napisu, większe */
.sbZBar i { display: block; width: clamp(26px, 8vw, 34px); width: clamp(26px, 8cqw, 34px); margin: 4px 0; color: #3b3d80; } /* serce SVG (ZHEART w game.js) zamiast znaku ♥ — na części telefonów był emoji ❤️ */
.sbZBar i svg { display: block; width: 100%; height: auto; }
.sbZBar i.on { color: var(--pink); }
.sbZBar i.on svg { filter: drop-shadow(0 0 4px rgba(255,92,138,.6)); }
.sbZBar i.pop { animation: sbHeartLoss .5s ease-out; }
@keyframes sbHeartLoss { 0% { transform: scale(1.8); color: #fff; } 100% { transform: scale(1); } }
/* finał TAP THE BOSS: pulsujący celownik na kapitanie, kapitan buja się; powiększone pole stuknięcia */
.sbCap.target { cursor: pointer; }
.sbCap.target::before { content: ""; position: absolute; inset: -12% -14%; }
.sbCap.target svg { animation: sbSway 1.1s ease-in-out infinite alternate; }
@keyframes sbSway { from { transform: translateX(-12%) rotate(-6deg); } to { transform: translateX(12%) rotate(6deg); } }
.sbCap.target::after { content: ""; position: absolute; left: 50%; top: 58%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 4px solid #ff3b4e; background: radial-gradient(circle, transparent 0 22%, #ff3b4e 22% 30%, transparent 30%), linear-gradient(#ff3b4e, #ff3b4e) center / 4px 100% no-repeat, linear-gradient(90deg, #ff3b4e, #ff3b4e) center / 100% 4px no-repeat; opacity: .85; pointer-events: none; animation: sbAim .6s ease-in-out infinite alternate; }
@keyframes sbAim { from { transform: translate(-50%, -50%) scale(.85); } to { transform: translate(-50%, -50%) scale(1.1); } }
.sbBanner.lose { color: #ff5c8a; text-shadow: 3px 3px 0 var(--navy), 6px 6px 0 #000; }

/* ======================= ostrzeżenie przed bossem (napięcie przed walką) ======================= */
.app[data-style="bosswarn"] { background: #12030a; }
.bw { position: absolute; inset: 0; overflow: hidden; background: #12030a; }
.bwPulse { position: absolute; inset: -10%; background: radial-gradient(60% 50% at 50% 45%, transparent 30%, #7a0a1e 75%, #2a0410); animation: bwBeat .7s ease-out infinite; }
@keyframes bwBeat { 0% { opacity: .55; transform: scale(1.04); } 15% { opacity: 1; transform: scale(1); } 100% { opacity: .55; transform: scale(1.04); } }
.bwStripe { position: absolute; left: -20%; right: -20%; height: 9%; background: repeating-linear-gradient(-45deg, #ffd84d 0 22px, #111 22px 44px); box-shadow: 0 0 20px rgba(255,216,77,.4); }
.bwStripe.t { top: 2%; animation: bwInT .35s .1s cubic-bezier(.3,1.4,.5,1) both, spdL .6s .45s linear infinite; }
.bwStripe.b { bottom: 12%; animation: bwInB .35s .1s cubic-bezier(.3,1.4,.5,1) both, spdR .6s .45s linear infinite; }
@keyframes bwInT { from { transform: translateX(-110%); } } @keyframes bwInB { from { transform: translateX(110%); } }
.bwWarn { position: absolute; left: 0; right: 0; text-align: center; font: 400 clamp(18px, 6vw, 26px) var(--display); font: 400 clamp(18px, 6cqw, 26px) var(--display); color: #ff3b4e; letter-spacing: 6px; text-shadow: 0 0 10px #ff3b4e; animation: bwBlink .27s steps(2) .3s infinite; opacity: 0; }
.bwWarn.t { top: 12%; } .bwWarn.b { bottom: 22%; }
@keyframes bwBlink { 0% { opacity: 1; } 100% { opacity: 0; } }
.bwSil { position: absolute; left: 50%; top: 22%; width: 60%; transform: translateX(-50%); animation: bwGrow 3s cubic-bezier(.6,0,.9,.6) both; }
.bwSil svg { width: 100%; height: auto; display: block; overflow: visible; filter: brightness(0) drop-shadow(0 0 10px #ff3b4e) drop-shadow(0 0 22px #7a0a1e); }
@keyframes bwGrow { from { transform: translateX(-50%) scale(.35); opacity: 0; } 20% { opacity: 1; } to { transform: translateX(-50%) scale(1.1); opacity: 1; } }
.bwGlint { position: absolute; left: 33%; top: 44%; width: 16%; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 6px #fff); opacity: 0; animation: bwGlint .5s 2.3s ease-out both; }
@keyframes bwGlint { 0% { opacity: 0; transform: scale(0) rotate(0); } 50% { opacity: 1; transform: scale(1.3) rotate(45deg); } 100% { opacity: .9; transform: scale(1) rotate(90deg); } }
.bwText { position: absolute; left: 0; right: 0; top: 50%; text-align: center; font: 400 clamp(56px, 19vw, 92px)/.95 var(--display); font: 400 clamp(56px, 19cqw, 92px)/.95 var(--display); color: var(--yellow2); text-shadow: 5px 5px 0 #ff3b4e, 9px 9px 0 #000; }
.bwText span { display: inline-block; opacity: 0; animation: bwSlam .22s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes bwSlam { from { opacity: 0; transform: scale(3) rotate(-12deg); } to { opacity: 1; transform: none; } }
.bwBar { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); }
.bwBar .boss { color: #ff3b4e; animation: skullBob .2s ease-in-out infinite alternate; }
.bwFlash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: bwFlash .4s 3.1s ease-out forwards; /* forwards, nie both — inaczej biel przez całe opóźnienie */ }
@keyframes bwFlash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ======================= ekran awansu po bossie ======================= */
.app[data-style="levelup"] { background: #1d1e4f; }
.lvlUp { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lvlRays { position: absolute; left: 50%; top: 42%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(#2a2b6e 0 10deg, #1d1e4f 10deg 20deg); animation: lvlSpin 6s linear infinite; }
@keyframes lvlSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.lvlZizi { position: relative; width: min(46%, 220px); animation: dance .4s ease-in-out infinite; }
.lvlZizi svg { width: 100%; height: auto; display: block; overflow: visible; }
.lvlBig { position: relative; font: 400 clamp(44px, 15vw, 70px)/1 var(--display); font: 400 clamp(44px, 15cqw, 70px)/1 var(--display); color: var(--yellow2); text-shadow: 4px 4px 0 var(--pink), 7px 7px 0 #000; animation: popIn .45s cubic-bezier(.3,1.6,.5,1) both; }
.lvlStars { position: relative; display: flex; gap: 10px; font-size: clamp(30px, 10vw, 44px); font-size: clamp(30px, 10cqw, 44px); }
.lvlStars i { font-style: normal; color: #3b3d80; } .lvlStars i.on { color: var(--yellow2); text-shadow: 0 0 12px var(--yellow2); animation: popIn .4s cubic-bezier(.3,1.6,.5,1) both; }
.lvlStars i.on:nth-child(2) { animation-delay: .15s; } .lvlStars i.on:nth-child(3) { animation-delay: .3s; }
.lvlSub { position: relative; font: 800 clamp(15px, 4.8vw, 20px) var(--body); font: 800 clamp(15px, 4.8cqw, 20px) var(--body); color: #fff; background: var(--pink); border-radius: 99px; padding: 4px 16px; }

/* ======================= dopasowanie długich słów (fitWord): jedna linia, czcionka maleje zamiast łamać ======================= */
.card, .opt, .pixBtn, .timeOpt, .neonTile b, .tile b, .block b, .bubble b.plword, .clayCard b { white-space: nowrap; overflow: hidden; overflow-wrap: normal; }
.neonTile b, .tile b, .block b { display: block; max-width: 100%; }

/* boss (Szymon 2026-10-02): licznik 5-4-3-2-1 nad kapitanem w fazie beczek, cięcie hakiem, nokaut w zwolnionym tempie na czarnym tle */
.sbCount { position: absolute; left: 50%; top: calc(1% + 38px); z-index: 17; transform: translateX(-50%) scale(0); font: 400 clamp(40px, 15vw, 64px) var(--display); font: 400 clamp(40px, 15cqw, 64px) var(--display); color: #fff; -webkit-text-stroke: 3px var(--navy); paint-order: stroke; text-shadow: 0 4px 0 var(--navy); pointer-events: none; opacity: 0; }
.sbCount.on { opacity: 1; transform: translateX(-50%) scale(1); }
.sbCount.beat { animation: sbCount .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes sbCount { from { transform: translateX(-50%) scale(1.8); color: #ff3b4e; } }
.sbSlash { position: absolute; z-index: 18; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-30deg); border-radius: 50%; border-top: 10px solid #fff; border-right: 6px solid #ff3b4e; filter: drop-shadow(0 0 8px #fff); pointer-events: none; animation: sbSlash .45s ease-out forwards; }
@keyframes sbSlash { from { transform: translate(-50%, -50%) rotate(-110deg) scale(.6); opacity: 1; } to { transform: translate(-50%, -50%) rotate(40deg) scale(1.1); opacity: 0; } }
.sbDark { position: absolute; inset: 0; z-index: 13; background: #05050f; opacity: 0; pointer-events: none; transition: opacity .25s; }
.ship.ko .sbDark { opacity: .94; }
.ship.ko .sbCap, .ship.ko .sbZizi { z-index: 15; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px rgba(255,255,255,.55)); }
.ship.ko .sbZizi { animation: none; }
.ship.ko .sbBar, .ship.ko .sbZBar, .ship.ko .sbLabel { opacity: 0; }

/* balans poziomów (Szymon 2026-10-02) */
.clayCard.two b { font-size: clamp(22px, 6.6vw, 30px); font-size: clamp(22px, 6.6cqw, 30px); }
.clayCard b small { font: 800 .5em var(--body); color: #8f6a3c; text-shadow: none; }
.clayCard i { display: block; font: italic 700 14px/1.3 var(--body); }
.yard.sway .cut:not(.gone):not(.bad) { animation: hinge 1.6s var(--d) ease-in-out infinite alternate, swayDrift 2.2s var(--d) ease-in-out infinite alternate; } /* 3. poziom: lekko, nie skacze */
@keyframes swayDrift { from { margin-left: -6px; margin-top: 0; } to { margin-left: 6px; margin-top: -6px; } }
.tiles.n5 { grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles.n5 .tile:last-child { grid-column: 1 / -1; }
.tiles.n5 .tile { padding: 5px 4px 6px; font-size: clamp(13px, 4.2vw, 18px); font-size: clamp(13px, 4.2cqw, 18px); border-width: 4px; }
.tiles.n5 .tile svg { width: 32px; height: 32px; }
.neonGrid.n3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.neonGrid.n3 .neonTile { padding: 12px 4px; font-size: clamp(13px, 4vw, 17px); font-size: clamp(13px, 4cqw, 17px); }
.neonGrid.sway .neonTile:not(.bad):not(.abducted) { animation: swayDrift 2s ease-in-out infinite alternate; }
.neonGrid.sway .neonTile:nth-child(2n) { animation-delay: -1s; } .neonGrid.sway .neonTile:nth-child(3n) { animation-delay: -.6s; }

/* plansza bossa (Szymon 2026-10-02): w walce burza — chmury pędzą, pioruny błyskają w rytm pętli megaboss (.ship.beat, --beat = 168 BPM),
   Zizi kołysze się do rytmu; po wygranej .ship.clear — rozpogadza się (burza znika, wychodzą promienie zachodu) */
.shipBg .bsStormCloud { animation: bsStormCloud 8s linear infinite; }
@keyframes bsStormCloud { from { transform: translateX(-20%); } to { transform: translateX(140%); } }
.shipBg .bsStorm { transition: opacity 1.8s ease-out; }
.ship.clear .bsStorm { opacity: 0; }
.shipBg .bsRays { opacity: 0; transition: opacity 1.8s ease-out; transform-box: view-box; transform-origin: 180px 262px; animation: bsSpin 12s linear infinite; }
.ship.clear .bsRays { opacity: 1; }
@keyframes bsSpin { to { transform: rotate(360deg); } }
.ship.beat .bsSkyFlash { animation: bsSkyFlash calc(var(--beat) * 8) linear 60ms infinite; }
@keyframes bsSkyFlash { 0% { opacity: .85; } 2.5% { opacity: .15; } 4.5% { opacity: .65; } 12% { opacity: .1; } 20%, 100% { opacity: 0; } } /* podwójny błysk i powolne wygaszanie */
.shipBg .bsCalm { opacity: 0; transition: opacity 1.8s ease-out .6s; } .ship.clear .bsCalm { opacity: 1; }
/* Zizi do rytmu (Szymon 2026-10-02, wybrany wariant B): kołysanie na boki co 2 uderzenia z podbiciem na każde */
.ship.beat .sbZizi:not(.cheer):not(.ouch):not(.slash):not(.dash) { animation: zgSway calc(var(--beat) * 2) ease-in-out 60ms infinite; }
@keyframes zgSway { 0% { transform: rotate(-6deg); } 25% { transform: rotate(-2deg) translateY(-5%); } 50% { transform: rotate(6deg); } 75% { transform: rotate(2deg) translateY(-5%); } 100% { transform: rotate(-6deg); } } /* B: kołysanie na boki z podbiciem co uderzenie */
@media (prefers-reduced-motion: reduce) { .ship.beat .sbZizi, .ship.beat .bsSkyFlash, .shipBg .bsStormCloud, .shipBg .bsRays { animation: none; } }

/* boss, faza beczek: kapitan czerwienieje przy odliczaniu (--rage 0 → 1 przy „5” → „1”), świeci i trzęsie się coraz mocniej */
.sbCap.rage svg { filter: drop-shadow(0 0 calc(var(--rage) * 16px) #ff2a2a) sepia(calc(var(--rage) * .55)) saturate(calc(1 + var(--rage) * 2.6)) hue-rotate(calc(var(--rage) * -28deg)); animation: capRage calc(.16s - var(--rage) * .08s) linear infinite alternate; transition: filter .25s; }
@keyframes capRage { from { transform: translateX(calc(var(--rage) * -4px)) rotate(calc(var(--rage) * -2deg)); } to { transform: translateX(calc(var(--rage) * 4px)) rotate(calc(var(--rage) * 2deg)); } }
@media (prefers-reduced-motion: reduce) { .sbCap.rage svg { animation: none; } }

/* ============ warianty przejść (Szymon 2026-10-02, test: ?fx=1|2|3) ============ */
/* 1. TELEWIZOR — gra odlatuje w ramce (game.js), Zizi spada z góry z odbiciem, numer gry obraca się jak tarcza */
#stage.tvOut { outline: 10px solid var(--navy); outline-offset: -10px; border-radius: 26px; box-shadow: 0 0 0 6px var(--yellow2); transform-origin: 50% 50%; }
.app.fx1 .interlude:not([hidden]) .ziziWrap { animation: fxDrop .48s cubic-bezier(.3,1.5,.5,1) both, hover 1.4s .5s ease-in-out infinite; }
.app.fx1 .interlude.win:not([hidden]) .ziziWrap { animation: fxDrop .48s cubic-bezier(.3,1.5,.5,1) both, dance .5s .5s ease-in-out infinite; }
.app.fx1 .interlude.lose:not([hidden]) .ziziWrap { animation: fxDrop .48s cubic-bezier(.3,1.5,.5,1) both, tremble .18s .5s linear infinite; }
@keyframes fxDrop { 0% { transform: translateY(-140%) scaleY(1.15); } 70% { transform: translateY(0) scale(1.12, .86); } 100% { transform: none; } }
.app.fx1 .interlude:not([hidden]) .nextLabel { animation: fxFlip .5s .2s cubic-bezier(.3,1.4,.5,1) both; transform-origin: 50% 50%; }
@keyframes fxFlip { from { transform: perspective(300px) rotateX(-100deg); opacity: 0; } 60% { transform: perspective(300px) rotateX(18deg); opacity: 1; } to { transform: perspective(300px) rotateX(0); } }
/* 2. BUM — promienie wirują, Zizi z przybliżenia z uderzeniem, dymek wskakuje, licznik przeskakuje (game.js), polecenie z błyskiem */
.app.fx2 .interlude:not([hidden])::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: repeating-conic-gradient(from 0deg at 50% 42%, rgba(255,255,255,.22) 0 6deg, transparent 6deg 22deg); animation: fxSpin .9s cubic-bezier(.1,.7,.3,1) both; pointer-events: none; }
@keyframes fxSpin { from { transform: rotate(-200deg) scale(.6); opacity: 1; } to { transform: rotate(0) scale(1); opacity: 0; } }
.app.fx2 .interlude:not([hidden]) .ziziWrap { animation: fxZoom .32s cubic-bezier(.2,1.3,.4,1) both, hover 1.4s .35s ease-in-out infinite; }
.app.fx2 .interlude.win:not([hidden]) .ziziWrap { animation: fxZoom .32s cubic-bezier(.2,1.3,.4,1) both, dance .5s .35s ease-in-out infinite; }
.app.fx2 .interlude.lose:not([hidden]) .ziziWrap { animation: fxZoom .32s cubic-bezier(.2,1.3,.4,1) both, tremble .18s .35s linear infinite; }
@keyframes fxZoom { from { transform: scale(2.6) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.app.fx2 .interlude:not([hidden]) .speech { animation: fxSlam .3s .14s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes fxSlam { from { transform: scale(0) rotate(10deg); } to { transform: none; } }
.app.fx2 .nextLabel.roll { animation: fxRoll .28s cubic-bezier(.2,1.5,.4,1); }
@keyframes fxRoll { from { transform: translateY(-70%) scaleY(1.3); filter: blur(2px); } to { transform: none; filter: none; } }
/* 3. KOMIKS — ukośny pas z kropkami przecina ekran, Zizi wpada z boku z liniami prędkości, numer wbija się jak pieczątka, polecenie nadlatuje z głębi */
.fxWipe { position: absolute; inset: -20% -60%; z-index: 30; pointer-events: none; background: radial-gradient(rgba(29,30,79,.25) 22%, transparent 24%) 0 0 / 14px 14px, #ffd84d; border-left: 10px solid var(--navy); border-right: 10px solid var(--navy); transform: skewX(-18deg) translateX(-130%); animation: fxWipe .5s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes fxWipe { to { transform: skewX(-18deg) translateX(130%); } }
.app.fx3 .ziziWrap { position: relative; }
.app.fx3 .interlude:not([hidden]) .ziziWrap { animation: fxSlide .42s .12s cubic-bezier(.2,1.4,.4,1) both, hover 1.4s .6s ease-in-out infinite; }
.app.fx3 .interlude.win:not([hidden]) .ziziWrap { animation: fxSlide .42s .12s cubic-bezier(.2,1.4,.4,1) both, dance .5s .6s ease-in-out infinite; }
.app.fx3 .interlude.lose:not([hidden]) .ziziWrap { animation: fxSlide .42s .12s cubic-bezier(.2,1.4,.4,1) both, tremble .18s .6s linear infinite; }
@keyframes fxSlide { from { transform: translateX(-160%) skewX(-14deg); } 70% { transform: translateX(8%) skewX(6deg); } to { transform: none; } }
.app.fx3 .interlude:not([hidden]) .ziziWrap::after { content: ""; position: absolute; left: -60%; top: 30%; width: 60%; height: 40%; background: repeating-linear-gradient(transparent 0 10px, rgba(255,255,255,.85) 10px 14px); animation: fxLines .5s .12s ease-out both; pointer-events: none; }
@keyframes fxLines { from { opacity: 1; transform: scaleX(1.4); } to { opacity: 0; transform: scaleX(.4) translateX(-40%); } }
.app.fx3 .interlude:not([hidden]) .nextLabel { animation: fxStamp .3s .3s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes fxStamp { from { transform: scale(2.6) rotate(-14deg); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
.app.fx3 .command.slam { animation: fxDepth .42s cubic-bezier(.2,1.3,.4,1); }
@keyframes fxDepth { from { transform: translate(-50%, -50%) scale(.1); filter: blur(6px); opacity: 0; } 60% { filter: blur(0); opacity: 1; } to { transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) { .app.fx1 .interlude .ziziWrap, .app.fx2 .interlude .ziziWrap, .app.fx3 .interlude .ziziWrap, .app.fx1 .interlude .nextLabel, .app.fx3 .interlude .nextLabel, .app.fx2 .interlude .speech, .fxWipe { animation: none !important; } }

/* wariant testowy walki z kapitanem ?kule=miod (2026-10-07): przecięty słoik — miód spływa po ekranie */
.honeySplash { position: absolute; inset: 0; z-index: 12; pointer-events: none;
  background: radial-gradient(ellipse 40% 26% at 30% 22%, rgba(255, 190, 40, .92) 0 60%, rgba(255, 190, 40, 0) 62%), radial-gradient(ellipse 34% 30% at 72% 40%, rgba(255, 176, 20, .9) 0 58%, rgba(255, 176, 20, 0) 60%),
    radial-gradient(ellipse 30% 22% at 46% 64%, rgba(255, 200, 60, .88) 0 58%, rgba(255, 200, 60, 0) 60%), linear-gradient(to bottom, rgba(255, 190, 40, .35), rgba(255, 190, 40, 0) 80%); }

/* makieta 2026-10-07 (?pomylka=A|B|C): słówko z nietrafionej rundy na ekranie Zizi */
.speech { text-align: center; } /* wyśrodkowany tekst dymka (Szymon 2026-10-07, przy słówku po pomyłce) */
.speech small { display: block; margin-top: 6px; font: 800 clamp(15px, 4.6cqw, 21px)/1.15 "Baloo 2", sans-serif; color: var(--navy); letter-spacing: 0; }
.speech small span { font-family: var(--display); font-weight: 400; color: var(--pink); }
.ilWord[hidden] { display: none; }
.ilWord.vB { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 4px solid var(--navy); border-radius: 18px; padding: 10px 26px 12px; box-shadow: 0 6px 0 rgba(0,0,0,.2);
  transform: rotate(-3deg); animation: popIn .35s .15s cubic-bezier(.3,1.6,.5,1) both; }
.ilWord.vB .e { font-size: clamp(30px, 10cqw, 46px); line-height: 1; }
.ilWord.vB b { font: 400 clamp(26px, 8.5cqw, 40px)/1 var(--display); color: var(--pink); text-shadow: 2px 2px 0 var(--navy); }
.ilWord.vB i { font: 800 clamp(17px, 5.4cqw, 24px)/1.1 "Baloo 2", sans-serif; font-style: normal; color: var(--navy); }
.ilWord.vC { display: flex; align-items: center; gap: 8px; background: rgba(29,30,79,.9); color: #fff; border-radius: 999px; padding: 6px 16px; font: 800 clamp(16px, 5cqw, 22px)/1.1 "Baloo 2", sans-serif; animation: popIn .35s .15s cubic-bezier(.3,1.6,.5,1) both; }
.ilWord.vC .e { font-size: 1.3em; } .ilWord.vC b { font: 400 1.05em/1 var(--display); color: var(--yellow2); } .ilWord.vC b::after { content: " ="; color: #fff; } .ilWord.vC i { font-style: normal; }
.speech small .mwPic { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.28em; } /* piktogram przeciwieństwa w dymku */
.speech small .mwNum { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; border-radius: 6px; background: var(--navy); color: #fff; font: 400 .85em/1 var(--display); vertical-align: .05em; } /* cyfra liczebnika */
.speech small .mwNum.mwOrd { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; padding: 0 .2em; } .speech small .mwOrd sup { font-size: .55em; line-height: 0; vertical-align: .55em; margin-left: .05em; } /* 5th (2026-10-09) */
.stage.fullDojo .dojo { bottom: calc(-1 * (var(--fuse) + 22px + env(safe-area-inset-bottom))); } /* CUT (2026-10-07): plansza pod paskiem lontu — margines planszy 6 px + pasek lontu + jego margines ≥ 10 px */
/* POP COLOR v2: gwiazdka POP osobno na planszy */
.popstar.popV2 { position: absolute; margin: 0; z-index: 3; pointer-events: none; }
/* SPELL IT (2026-10-07): bieżąca luka przy dwóch lukach */
.lcdWord .blank.cur { color: #c0392b; }
/* FIX THE TYPO! (2026-10-07, scena A2): maszyna w ciasnym kadrze — wałek (66% planszy) i korpus wychodzą poza ekran, bez kubka i kosza */
.tw .twCar { position: absolute; inset: 0; z-index: 3; transition: transform .3s cubic-bezier(.5,0,.3,1); }
.tw .paper { left: 7%; right: 7%; bottom: calc(34% - 3cqw); transition: transform .35s cubic-bezier(.3,1.3,.5,1); }
.tw .twCarSvg, .tw .twBody { position: absolute; left: 0; width: 100%; top: calc(66% - 27.78cqw); overflow: visible; pointer-events: none; }
.tw .twCarSvg { z-index: 2; }
.tw .twBody { z-index: 2; filter: drop-shadow(0 -2px 0 rgba(0,0,0,.15)); }
.tw .stamp { bottom: calc(3cqw + 10%); }
.tw .lever { transform-box: view-box; transform-origin: 6px 22px; transition: transform .18s ease-in; }
.tw.lever .lever { transform: rotate(16deg); }
.tw.ret .twCar { transform: translateX(14%); }
.tw.feed .paper { transform: translateY(-7%); }
.tw.jam .paper { animation: twShake .3s 2; }
@keyframes twShake { 25% { translate: -2cqw 0; } 75% { translate: 2cqw 0; } }
.twBub { position: absolute; z-index: 6; padding: 1cqw 3.5cqw; background: #fff; color: var(--navy); border: 3px solid var(--navy); border-radius: 4cqw; font: 400 9cqw/1.1 var(--display); white-space: nowrap; transform: translate(-50%, -50%) scale(0); pointer-events: none; animation: twBubIn .35s cubic-bezier(.3,1.7,.5,1) forwards; }
@keyframes twBubIn { to { transform: translate(-50%, -50%) scale(1) rotate(-6deg); } }
.twPuff { position: absolute; z-index: 5; top: calc(66% + 4cqw); width: 8cqw; height: 8cqw; border-radius: 50%; background: #e8e4dc; opacity: 0; pointer-events: none; animation: twPuff .8s ease-out forwards; }
@keyframes twPuff { 0% { opacity: .95; transform: scale(.3); } 100% { opacity: 0; transform: translate(var(--dx), -14cqw) scale(1.8); } }
@media (prefers-reduced-motion: reduce) { .tw .twCar, .tw .paper { transition: none; } .tw.jam .paper { animation: none; } }
  58% { left: 6%; top: 52%; transform: rotate(380deg); }
  74% { left: 1%; top: 44%; transform: rotate(560deg); }
  100% { opacity: 1; left: -16%; top: 96%; transform: rotate(820deg); }
}
/* POP COLOR: napis polecenia zawsze nad balonami (przelatują za nim), lekkie tło (2026-10-07) */
.scribble.pop { position: relative; z-index: 4; background: rgba(255,255,255,.82); border-radius: 14px; padding: 2px 8px; }
.scribble.pop + .sky { z-index: 1; }
/* NOWE 17 (lokalny test, ?nowe=1): makieta z paczki w ramce na całą planszę gry — nad HUD, lontem i poleceniem silnika */
.extGame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; background: transparent; } /* pod paskiem serc i lontem (z-index 6) oraz gwiazdką (7) */
/* gwiazdka polecenia nowych gier (lokalny test): ciemnoniebieska zamiast żółtej — dla rozróżnienia (Szymon 2026-10-07) */
.app[data-style="ext"] { background: var(--extBg, var(--navy)); } /* nowe gry: gwiazdka żółta jak w starych, na kolorze sceny gry (EXT_BG w game.js; Szymon 2026-10-08 — granatowa gwiazdka na granacie gryzła się z białym błyskiem) */
/* kapitan: pasek energii w górnym pasku gry (2026-10-08, jak u Bumble Jumble) — nazwa nad kreskami, między licznikiem a głośnikiem (serduszka w walce schowane) */
.hud .sbBar.inHud { position: absolute; top: max(8px, env(safe-area-inset-top)); left: 62px; right: 62px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 4px; background: none; padding: 0; border-radius: 0; z-index: 1; transition: opacity .2s; }
.hud .sbBar.inHud b { text-align: center; color: var(--yellow2); letter-spacing: .06em; font-size: clamp(11px, 3.4vw, 14px); font-size: clamp(11px, 3.4cqw, 14px); }
.hud .sbBar.inHud .sbHp { flex: none; }
.hud .sbBar.inHud.ko { opacity: 0; }
/* nokaut kapitana (Szymon 2026-10-08): w ciemności znikają też licznik i głośnik, wracają razem z serduszkami gracza */
.hud .counter, .hud .mute { transition: opacity .35s ease; }
.hud.koHide .counter, .hud.koHide .mute { opacity: 0; pointer-events: none; }
/* SPEED UP i LEVEL UP: promienie wychodzą w górę pod górny pasek, jak niebo kapitana (Szymon 2026-10-08: granatowy pas nad planszą) */
.app[data-style="speed"] .stage, .app[data-style="levelup"] .stage { overflow: visible; }
.app[data-style="speed"] .spd, .app[data-style="levelup"] .lvlUp { overflow: visible; clip-path: inset(-300px 0 -300px 0); } /* także w dół — pod planszą był cienki pas tła aplikacji (Szymon 2026-10-08) */
/* gry ze „światem” większym niż kadr (.diner/.tw/.gw/.btq ::before, inset −90%): świat widać też pod górnym paskiem — wzór tła aplikacji zaczynał się w innym miejscu niż wzór świata i pasy się rozjeżdżały (Szymon 2026-10-08, SERVE IT) */
.app[data-style="diner"] .stage, .app[data-style="boutique"] .stage { overflow: visible; clip-path: inset(-300px 0 0 0); }
.app[data-style="typewriter"] .stage { overflow: visible; clip-path: inset(-300px 0 -300px 0); } /* FIX THE TYPO: także w dół — pod paskiem lontu korpus maszyny z klawiszami zamiast drewna (Szymon 2026-10-08) */
/* SERVE IT i DRAW: pod paskiem ten sam świat co na planszy, więc przy oddaleniu (.pull) oddala się razem z nim; szyld czeka ukryty i pojawia się dopiero przy oddaleniu (inaczej wystawał zza serduszek) */
.dinerSign, .btqSign, .btq::after { opacity: 0; transition: opacity .2s; }
.diner.pull .dinerSign, .btq.pull .btqSign, .btq.pull::after { opacity: 1; } /* rama witryny DRAW też: jej górna krawędź wystawała pod paskiem */
/* WARNING przed bossem — to samo (Szymon 2026-10-08); tło .bw w górę cieniem, pulsująca winieta wyższa o 200 px z gradientem przeliczonym tak, by w starym polu wyglądała identycznie */
.app[data-style="bosswarn"] .stage { overflow: visible; }
.app[data-style="bosswarn"] .bw { overflow: visible; clip-path: inset(-300px 0 -300px 0); box-shadow: 0 -300px 0 0 #12030a, 0 300px 0 0 #12030a; }
.app[data-style="bosswarn"] .bwPulse { top: calc(-10% - 200px); background: radial-gradient(60% calc(50% - 100px) at 50% calc(45% + 110px), transparent 30%, #7a0a1e 75%, #2a0410); }
/* kapitan: niebo sceny przedłużone w górę pod górny pasek gry (2026-10-08) — w art.js prostokąty nieba sięgają 300 jednostek ponad scenę;
   plansza i scena mogą wyjść 200 px w górę (boki i dół przycięte jak dotąd), górny pasek gry zostaje nad sceną; przy K.O. ciemność też pod paskiem */
.stage.skyUp { overflow: visible; }
.stage.skyUp .ship { overflow: visible; clip-path: inset(-200px 0 0 0); } /* przycięcie boków i dołu maską zamiast overflow (overflow ucinał też górę) */
.stage.skyUp .shipBg { overflow: visible; }
.stage.skyUp .sbDark { top: -200px; }
/* PAUZA przy powrocie do aplikacji (2026-10-09): nad wszystkim, wznowienie stuknięciem */
.pauseOv { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(14, 10, 26, .84); color: #fff; text-align: center; cursor: pointer; touch-action: manipulation; }
.pauseOv[hidden] { display: none; }
.pauseOv b { font: 400 clamp(40px, 13cqw, 64px)/1 var(--display); color: var(--yellow2); text-shadow: 3px 3px 0 #ff5c8a, 6px 6px 0 #1d1e4f; letter-spacing: .04em; }
.pauseOv small { font: 800 clamp(16px, 5cqw, 22px)/1.2 var(--body); color: #fff; animation: pausePulse 1.4s ease-in-out infinite; }
@keyframes pausePulse { 50% { opacity: .55; } }
