*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none}
html,body{touch-action:none}body{font-family:"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif;background:radial-gradient(circle at 50% 0%,#24357a,#0b1026 70%);color:#fff;display:flex;flex-direction:column;touch-action:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
button{font:inherit;cursor:pointer}
#sky,#party{position:fixed;inset:0;pointer-events:none}
#party{z-index:50}

#start{position:fixed;inset:0;z-index:99;background:rgba(11,16,38,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:20px}
#start img{width:200px;border-radius:50%;background:#fff;animation:hop 1.6s infinite}
#start h1{margin:0;font-size:46px;color:#ffd23f}
#start p{margin:0;font-size:22px;opacity:.85}
#start button,.big{font-size:30px;border:0;border-radius:999px;padding:18px 44px;background:#ffd23f;color:#1d2b64;box-shadow:0 7px 0 #c99a00}
#start button:active,.big:active{transform:translateY(5px);box-shadow:0 2px 0 #c99a00}

#top{display:flex;align-items:center;gap:12px;padding:10px 16px 4px;z-index:2;position:relative}
#home{width:62px;height:62px;border-radius:50%;border:0;background:#ffd23f;font-size:32px;box-shadow:0 5px 0 #c99a00;flex:none}
#home.hide{visibility:hidden}
#bubble{flex:1;background:#fff;color:#1d2b64;border-radius:22px;padding:12px 18px;font-size:22px;min-height:54px;display:flex;align-items:center}
#fazik{width:70px;height:70px;border-radius:50%;background:#fff;flex:none}
.hop{animation:hop .5s}
@keyframes hop{30%{transform:translateY(-16px) rotate(-8deg)}60%{transform:translateY(0) rotate(6deg)}}

#stage{flex:1;position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 14px 14px;min-height:0}
#stage svg{width:100%;height:100%;max-height:100%;touch-action:none}

/* menu */
.menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px;width:100%;max-width:1100px;align-content:center}
.tile{position:relative;border:0;border-radius:28px;padding:20px 10px;color:#fff;font-size:24px;display:flex;flex-direction:column;align-items:center;gap:8px;box-shadow:0 8px 0 rgba(0,0,0,.35);min-height:150px;justify-content:center}
.tile b{font-size:64px;line-height:1}
.tile:active{transform:translateY(6px);box-shadow:0 2px 0 rgba(0,0,0,.35)}
.tile .st{position:absolute;top:8px;right:12px;font-size:30px}
.shelf{margin-top:18px;font-size:22px;text-align:center}
.shelf span{font-size:40px;margin:0 3px;filter:grayscale(1) opacity(.3)}
.shelf span.on{filter:none;animation:pop .7s}

/* wspólne */
.bar{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.btn{border:0;border-radius:999px;padding:12px 22px;font-size:22px;background:#ffd23f;color:#1d2b64;box-shadow:0 5px 0 #c99a00}
.btn.off{background:#3a4a8a;color:#fff;box-shadow:0 5px 0 #222c57}
.btn:active{transform:translateY(4px);box-shadow:0 1px 0 #c99a00}
.stars{font-size:28px;margin-bottom:6px}
@keyframes pop{0%{transform:scale(.2)}70%{transform:scale(1.25)}100%{transform:scale(1)}}
@keyframes shake{20%,60%{transform:translateX(-14px)}40%,80%{transform:translateX(14px)}}

/* dom */
.room{cursor:pointer}
.room .dark{transition:opacity .6s}
.room.lit .dark{opacity:0;pointer-events:none}
.thing{font-size:62px;transform-box:fill-box;transform-origin:center}
.room.lit .thing{animation:pop .7s}
.thing.jump{animation:jump .6s!important}
@keyframes jump{40%{transform:translateY(-30px) scale(1.2)}}
.eye{transform-box:fill-box;transform-origin:center;animation:blink 3.5s infinite}
@keyframes blink{0%,92%,100%{transform:scaleY(1)}96%{transform:scaleY(.1)}}
.cone{opacity:0;transition:opacity .6s}
.room.lit .cone{opacity:.35}

/* choinka */
.lamp{transition:fill .3s}
.lamp.on{animation:tw 1.2s infinite alternate}
@keyframes tw{from{opacity:1}to{opacity:.55}}
.drag{cursor:grab}

/* żarówki */
.bulbs{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;max-width:1000px}
.bulb{width:96px;cursor:pointer}
.bulbs.simon .bulb{width:150px}
.bulb .glass{aspect-ratio:1;border-radius:50%;background:#2b3466;transition:background .12s,box-shadow .12s;border:5px solid #8ea0e0}
.bulb .base{width:46%;height:34px;margin:-5px auto 0;background:repeating-linear-gradient(#bbb 0 7px,#777 7px 12px);border-radius:0 0 12px 12px}
.bulb.on .glass{box-shadow:0 0 50px 18px var(--c);background:var(--c);border-color:#fff}

/* memory */
.mem{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;width:min(100%,calc((100vh - 200px) * 1.4));max-width:860px}
.card{aspect-ratio:1;perspective:800px;cursor:pointer}
.card .in{position:relative;width:100%;height:100%;transition:transform .45s;transform-style:preserve-3d}
.card.up .in{transform:rotateY(180deg)}
.card .f,.card .b{position:absolute;inset:0;border-radius:22px;display:flex;align-items:center;justify-content:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;font-size:min(9vw,11vh)}
.card .b{background:linear-gradient(135deg,#ffd23f,#ff9f1a);box-shadow:0 6px 0 #b86d00}
.card .f{background:#fff;transform:rotateY(180deg);box-shadow:0 6px 0 #9aa}
.card.ok .f{background:#d6ffe4}

/* bezpieczny */
.safe{display:flex;flex-direction:column;align-items:center;gap:22px;width:100%;max-width:760px}
.scard{background:#fff;color:#1d2b64;border-radius:32px;padding:28px 24px;width:100%;text-align:center;box-shadow:0 10px 0 rgba(0,0,0,.3)}
.scard .em{font-size:110px;line-height:1.1}
.scard .tx{font-size:28px;margin-top:12px}
.scard.shake{animation:shake .5s}
.scard.in{animation:pop .5s}
.yn{display:flex;gap:40px}
.yn button{width:150px;height:150px;border-radius:50%;border:0;font-size:80px;box-shadow:0 8px 0 rgba(0,0,0,.35)}
.yn .y{background:#3ddc84}.yn .n{background:#ff4d4d}
.yn button:active{transform:translateY(6px);box-shadow:0 2px 0 rgba(0,0,0,.35)}
.dots{font-size:26px;letter-spacing:4px}

/* kolorowanka */
.pal{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.pal button{width:58px;height:58px;border-radius:50%;border:5px solid #fff;box-shadow:0 4px 0 rgba(0,0,0,.35)}
.pal button.sel{transform:scale(1.25);border-color:#ffd23f}
.f{cursor:pointer;transition:fill .2s}

/* salon Kasi */
.sal-top{display:flex;gap:18px;align-items:center;font-size:22px;margin-bottom:6px;flex-wrap:wrap;justify-content:center}
.sal-coins{background:#ffd23f;color:#1d2b64;border-radius:999px;padding:6px 16px;font-weight:bold}
.sal-tabs .btn{font-size:19px;padding:10px 16px}
.sal-main{flex:1;min-height:0;width:100%;display:flex;gap:16px;align-items:stretch}
.sal-view{flex:1.1;min-width:0;background:radial-gradient(circle at 50% 40%,#ffe3f1,#ffb6d9);border-radius:30px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;box-shadow:inset 0 0 0 8px #fff}
.sal-view svg{width:100%;height:100%}
.sal-tools{flex:1;min-width:0;overflow-y:auto;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:flex-start;padding-top:4px;touch-action:pan-y}
.sal-lab{font-size:19px;opacity:.9;text-align:center}
.sal-items{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.sal-it{width:66px;height:66px;border-radius:18px;border:4px solid #fff;background:#fff;font-size:34px;position:relative;box-shadow:0 4px 0 rgba(0,0,0,.3);padding:0}
.sal-it.sel{border-color:#ffd23f;transform:scale(1.12)}
.sal-it small{position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);background:#1d2b64;color:#ffd23f;font-size:13px;border-radius:999px;padding:1px 6px;white-space:nowrap}
.sal-uv{font-size:24px;padding:14px 26px;margin-top:6px}
.sal-view.uv{box-shadow:inset 0 0 0 8px #fff,inset 0 0 120px 40px #8a3cff}
.sal-view.uv svg{filter:drop-shadow(0 0 30px #b14dff)}
.sal-view.flash::after{content:"";position:absolute;inset:0;background:#fff;animation:fl .6s forwards;pointer-events:none}
@keyframes fl{from{opacity:1}to{opacity:0}}
.sal-view.sparkle svg{filter:drop-shadow(0 0 25px #fff) brightness(1.08)}
.sal-view.wind svg{animation:wind 1.2s}
@keyframes wind{20%{transform:rotate(-2deg) translateX(-6px)}40%{transform:rotate(2deg) translateX(6px)}60%{transform:rotate(-1.5deg)}80%{transform:rotate(1deg)}}
.sal-card{background:#fff;color:#1d2b64;border-radius:22px;padding:16px 22px;font-size:21px;text-align:center;animation:pop .5s}
.sal-stars{font-size:38px}
.sal-album{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;width:100%}
.sal-pol{background:#fff;border-radius:10px;padding:8px 8px 4px;color:#1d2b64;text-align:center;transform:rotate(-2deg)}
.sal-pol:nth-child(even){transform:rotate(2deg)}
.sal-pol svg{width:100%;background:#ffd6ea;border-radius:6px}
@media (orientation:portrait){.sal-main{flex-direction:column}.sal-view{flex:1.3}}

/* klocki */
.kl-wrap{flex:1;min-height:0;width:100%;position:relative;border-radius:24px;overflow:hidden}
.kl-wrap canvas{position:absolute;inset:0;width:100%!important;height:100%!important;touch-action:none}
.kl-bar{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:8px}
.kl-b{border:0;border-radius:16px;min-width:64px;height:64px;font-size:28px;background:#fff;color:#1d2b64;box-shadow:0 4px 0 rgba(0,0,0,.3);padding:0 10px}
.kl-b.sel{outline:5px solid #ffd23f;transform:scale(1.08)}
.kl-b svg{width:46px;height:36px}
.kl-c{width:48px;height:48px;border-radius:12px;border:4px solid #fff;box-shadow:0 4px 0 rgba(0,0,0,.3)}
.kl-c.sel{border-color:#ffd23f;transform:scale(1.15)}
.kl-models{position:absolute;inset:0;background:rgba(11,16,38,.85);display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:center;z-index:3}
.kl-models button{width:180px;height:160px;border:0;border-radius:26px;font-size:24px;background:#ffd23f;color:#1d2b64;box-shadow:0 6px 0 #c99a00;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.kl-models b{font-size:64px}
.kl-step{position:absolute;top:10px;left:50%;transform:translateX(-50%);background:#fff;color:#1d2b64;border-radius:999px;padding:6px 18px;font-size:22px;z-index:2}

/* v4: pasek gracza, podpowiedzi, efekty */
#hud{display:flex;align-items:center;gap:8px;flex:none}
#hud:empty{display:none}
#hud .hav{font-size:40px}
#hud .hst{background:#ffd23f;color:#1d2b64;border-radius:999px;padding:6px 14px;font-size:22px;font-weight:bold}
#hud .hst.bump{animation:pop .5s}
#hud .hlv{font-size:15px;opacity:.85;max-width:90px;line-height:1.1}
#fzwrap{position:relative;flex:none}
#q{position:absolute;right:-4px;bottom:-4px;background:#ff4dc4;color:#fff;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:bold;pointer-events:none;animation:qpulse 1.6s infinite}
@keyframes qpulse{50%{transform:scale(1.2)}}
.hand{position:fixed;z-index:80;font-size:64px;pointer-events:none;animation:tap 1s infinite;filter:drop-shadow(0 4px 6px rgba(0,0,0,.5))}
@keyframes tap{0%,100%{transform:translateY(18px)}50%{transform:translateY(0) scale(.92)}}
.spark{position:fixed;z-index:70;width:12px;height:12px;border-radius:50%;pointer-events:none;transition:transform .7s cubic-bezier(.2,.8,.3,1),opacity .7s}
.flystar{position:fixed;z-index:75;font-size:40px;pointer-events:none;transition:left .7s cubic-bezier(.5,-.3,.5,1),top .7s cubic-bezier(.3,0,.8,.4),transform .7s}
.lvlup{position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(11,16,38,.75);pointer-events:none;animation:pop .6s}
.lvlup div{font-size:44px;color:#ffd23f}.lvlup b{font-size:64px}.lvlup span{font-size:120px}
.tile.rank{background:linear-gradient(135deg,#ffd23f,#ff9f1a);color:#1d2b64}
.shelf .who{margin-top:12px;font-size:18px}
.prof{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%}
.prof h2{margin:0;font-size:38px;color:#ffd23f}
.plist{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;max-width:900px}
.pbtn{border:0;border-radius:26px;background:#fff;color:#1d2b64;width:170px;height:170px;font-size:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 7px 0 rgba(0,0,0,.35)}
.pbtn b{font-size:70px}.pbtn small{font-size:18px}
.pbtn.sm{width:120px;height:120px}
.pbtn.add{background:#3ddc84}
.pbtn:active{transform:translateY(5px)}
.bigav{font-size:130px;animation:pop .6s}
.prof input{font:inherit;font-size:34px;padding:12px 20px;border-radius:20px;border:4px solid #ffd23f;text-align:center;width:min(420px,90%);user-select:text;-webkit-user-select:text}
.rankw{width:100%;max-width:720px;display:flex;flex-direction:column;gap:10px;min-height:0;flex:1}
.rankw h2{text-align:center;margin:0;color:#ffd23f;font-size:36px}
.rlist{overflow-y:auto;display:flex;flex-direction:column;gap:10px;touch-action:pan-y;padding:6px}
.rrow{display:flex;align-items:center;gap:14px;background:#fff;color:#1d2b64;border-radius:22px;padding:10px 18px;font-size:24px;animation:slidein .5s both}
.rrow.me{background:#ffd23f;box-shadow:0 0 0 5px #fff}
@keyframes slidein{from{opacity:0;transform:translateX(-60px)}}
.rpos{width:52px;font-size:34px;text-align:center}.rav{font-size:44px}
.rname{flex:1;display:flex;flex-direction:column}.rname small{font-size:15px;opacity:.7}
.rst{font-weight:bold}

/* salon v2 */
.sal-head{display:flex;align-items:center;gap:22px;justify-content:center;margin-bottom:6px}
.sal-wish{display:flex;align-items:center;gap:6px;background:#fff;border-radius:999px;padding:6px 16px 6px 10px;font-size:34px;box-shadow:0 4px 0 rgba(0,0,0,.25)}
.sal-wish i{display:block;width:48px;height:48px;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 3px #1d2b64,0 0 18px currentColor;animation:qpulse 1.4s infinite}
.sal-hearts span{font-size:30px;filter:grayscale(1) opacity(.35);display:inline-block}
.sal-hearts span.on{filter:none}
.sal-hearts span.pop{animation:pop .6s}
.sal-coins{background:#ffd23f;color:#1d2b64;border-radius:999px;padding:6px 16px;font-size:24px;font-weight:bold}
.sal-tabs{display:flex;gap:10px;justify-content:center;margin-bottom:8px}
.sal-tab{position:relative;border:0;width:76px;height:64px;border-radius:20px;font-size:36px;background:#3a4a8a;box-shadow:0 5px 0 #222c57}
.sal-tab.on{background:#ffd23f;box-shadow:0 5px 0 #c99a00;transform:scale(1.1)}
.sal-tab i{position:absolute;top:-8px;right:-8px;font-size:22px;font-style:normal}
.sal-view{background:none;box-shadow:none;border-radius:34px}
.sal-view.enter svg{animation:enter .8s}
@keyframes enter{from{transform:translateX(60%) rotate(6deg);opacity:0}}
.mbulb .glow{animation:glow 2.4s infinite alternate}
.mbulb.off .glow{opacity:0}.mbulb.off circle:last-child{fill:#ccc}
@keyframes glow{from{opacity:.75}to{opacity:1}}
.lid{transform-box:fill-box;transform-origin:center top;transform:scaleY(0);animation:lid 4.5s infinite}
@keyframes lid{0%,93%,100%{transform:scaleY(0)}96%{transform:scaleY(1)}}
.fadein{animation:fadein .6s}
@keyframes fadein{from{opacity:0}}
.twinkle{animation:twk 1s infinite alternate}
@keyframes twk{to{opacity:.2}}
.sal-bottles{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.bottle{border:0;background:#fff;border-radius:18px;width:62px;height:84px;padding:4px;box-shadow:0 4px 0 rgba(0,0,0,.3)}
.bottle svg{width:100%;height:100%}
.bottle.sel{transform:translateY(-10px) scale(1.12);box-shadow:0 0 0 5px #ffd23f}
.pal button.round{width:70px;height:70px}
.sal-big{font-size:64px;text-align:center}
.sal-next{font-size:44px;padding:10px 40px;animation:qpulse 1.2s infinite}
.sal-cam{font-size:64px;padding:16px 46px;border-radius:30px}
.sal-uv{font-size:40px}
.sal-view.shower::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(100deg,transparent 0 18px,rgba(120,200,255,.55) 18px 21px);animation:rain .25s linear infinite;pointer-events:none}
@keyframes rain{to{background-position:0 60px}}
.sal-pol.big{width:min(260px,90%);transform:rotate(-3deg);animation:polin .8s}
.sal-pol.big svg{background:#ffd6ea}
@keyframes polin{from{transform:translateY(-200px) rotate(-20deg);opacity:0}}
.sal-pay{font-size:30px;font-weight:bold}
.shake{animation:shake .4s}
.sal-main .sal-album{flex:1;overflow-y:auto;touch-action:pan-y}

/* miasteczko */
.m-wrap{user-select:none}
.m-mission{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:3;background:#fff;color:#1d2b64;border-radius:999px;padding:6px 20px;display:flex;align-items:center;gap:12px;font-size:26px;box-shadow:0 5px 0 rgba(0,0,0,.25)}
.m-mission span{font-size:44px}.m-mission small{font-size:16px;opacity:.6}
.m-mission.new{animation:pop .7s}
.m-joy{position:absolute;left:24px;bottom:24px;width:170px;height:170px;border-radius:50%;background:rgba(255,255,255,.28);border:5px solid rgba(255,255,255,.75);z-index:3;touch-action:none;display:flex;align-items:center;justify-content:center}
.m-knob{width:78px;height:78px;border-radius:50%;background:#ffd23f;box-shadow:0 5px 0 #c99a00;pointer-events:none}
.m-btns{position:absolute;right:20px;bottom:20px;display:flex;flex-direction:column;gap:12px;z-index:3}
.m-b{width:84px;height:84px;border-radius:50%;border:0;font-size:40px;background:#fff;box-shadow:0 5px 0 rgba(0,0,0,.3)}
.m-b[data-a=jump]{width:110px;height:110px;font-size:56px;background:#3ddc84}
.m-b[data-a=zin],.m-b[data-a=zout]{width:60px;height:60px;font-size:26px;align-self:flex-end}
.m-b:active{transform:translateY(4px)}
.kl-cats .kl-b{min-width:74px;font-size:34px;background:#ffd23f}
.kl-cats .kl-b.sel{background:#fff}
.kl-lab{font-size:12px;margin-top:-4px;color:#1d2b64}
.kl-models .kl-city{background:#3ddc84;width:220px}
.kl-bar{max-width:100%;overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start;padding:2px 6px 6px;touch-action:pan-x}
.kl-bar .kl-c{flex:none;width:44px;height:44px}
.kl-bar .kl-b{flex:none}
.m-spray{position:absolute;right:150px;bottom:40px;z-index:3;width:130px;height:130px;border-radius:50%;border:0;font-size:70px;background:#2ec5ff;box-shadow:0 7px 0 #1478a0;animation:qpulse 1s infinite}
.m-spray:active{transform:translateY(5px) scale(.95)}
.m-board{position:absolute;inset:0;z-index:5;background:rgba(11,16,38,.88);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.m-board h3{margin:0;font-size:54px}
.m-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.m-tile{position:relative;width:120px;height:120px;border:0;border-radius:26px;background:#fff;font-size:64px;box-shadow:0 6px 0 rgba(0,0,0,.35)}
.m-tile b{font-weight:normal}
.m-tile.done{background:#d6ffe4}
.m-tile.cur{outline:6px solid #ffd23f}
.m-tile i{position:absolute;top:-10px;right:-10px;font-style:normal;font-size:34px}
.m-close,.m-again{font-size:34px}
.kl-wrap.flash::after{content:"";position:absolute;inset:0;background:#fff;animation:fl .6s forwards;pointer-events:none;z-index:4}

/* malowanka 2.0 */
.mal-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;width:100%;max-width:1100px;overflow-y:auto;touch-action:pan-y;padding:6px;align-content:start;flex:1;min-height:0}
.mal-th{position:relative;border:0;border-radius:20px;background:#fff;padding:6px;aspect-ratio:4/3;box-shadow:0 6px 0 rgba(0,0,0,.3);overflow:hidden}
.mal-th svg,.mal-th img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.mal-th span{position:absolute;right:8px;bottom:6px;font-size:30px}
.mal-th:active{transform:translateY(4px)}
.mal-gal{background:#ffd23f;display:flex;align-items:center;justify-content:center}.mal-gal b{font-size:70px}
.mal-tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-bottom:6px}
.mal-t{border:0;width:62px;height:62px;border-radius:18px;background:#fff;font-size:32px;box-shadow:0 4px 0 rgba(0,0,0,.3)}
.mal-t.sel{background:#ffd23f;transform:scale(1.12)}
.mal-back{background:#3a4a8a}.mal-save{background:#3ddc84}
.mal-area{flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center}
.mal-paper{position:relative;height:100%;max-width:100%;aspect-ratio:4/3;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 0 rgba(0,0,0,.3)}
.mal-paper svg,.mal-paper canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.mal-paper.flash::after{content:"";position:absolute;inset:0;background:#fff;animation:fl .6s forwards;pointer-events:none}
.f.popf{animation:popf .35s}
@keyframes popf{50%{opacity:.6}}
.mal-pal{margin-top:8px}.mal-pal button{width:46px;height:46px;border-width:4px}
.mal-size .btn{font-size:26px;padding:6px 18px}
.mal-stick{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:6px}
.mal-stick button{border:0;width:52px;height:52px;border-radius:14px;background:#fff;font-size:30px}
.mal-stick button.sel{background:#ffd23f;transform:scale(1.15)}
/* pary 2.0 */
.mem-pick{display:flex;gap:22px;flex-wrap:wrap;justify-content:center}
.mem-theme{border:0;width:200px;height:200px;border-radius:30px;background:#fff;box-shadow:0 7px 0 rgba(0,0,0,.35);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.mem-theme b{font-size:80px}.mem-theme span{font-size:30px}
.mem-info{display:flex;gap:22px;font-size:24px;margin-bottom:8px}
.card.nope .f{background:#ffd6d6}
/* żarówki 2.0 */
.bulb .nt{text-align:center;font-size:18px;opacity:.8;margin-top:2px}
.bulb.hint .glass{border-color:#fff;box-shadow:0 0 0 6px #ffd23f;animation:qpulse .8s infinite}
.bulb.shake{animation:shake .4s}
/* bezpiecznie 2.0 */
.streak{font-size:30px;min-height:36px}
.scard.good{box-shadow:0 0 0 8px #3ddc84}.scard.bad{box-shadow:0 0 0 8px #ff4d4d}
svg.shake{animation:shake .4s}
/* klocki: wybór w okienkach zamiast przewijania */
.kl-bar{flex-wrap:wrap!important;overflow:visible!important;justify-content:center!important;touch-action:manipulation!important;gap:8px}
.kl-b[data-t=piece],.kl-b[data-t=color]{min-width:110px;height:72px;display:flex;align-items:center;justify-content:center;gap:6px;background:#fff;outline:4px solid #ffd23f}
.kl-b i{font-style:normal;font-size:20px;opacity:.6}
.kl-cur{font-size:40px;display:flex;flex-direction:column;align-items:center}.kl-cur svg{width:56px;height:42px}
.kl-sw{display:block;width:52px;height:52px;border-radius:12px;border:3px solid rgba(0,0,0,.2)}
.kl-pop{position:absolute;inset:0;z-index:6;background:rgba(11,16,38,.55);display:flex;align-items:center;justify-content:center;animation:fadein .2s}
.kl-pop-in{background:#fff;border-radius:28px;padding:18px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px;max-width:94%;max-height:94%;box-shadow:0 10px 0 rgba(0,0,0,.3);animation:pop .3s}
.kl-pop-in.bricks{grid-template-columns:repeat(4,1fr)}
.kl-pop-in.colors{grid-template-columns:repeat(4,1fr)}
.kl-pb{border:0;width:min(120px,19vw);height:min(100px,16vw);border-radius:20px;background:#eef3ff;font-size:min(52px,9vw);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 5px 0 rgba(0,0,0,.2)}
.kl-pb svg{width:80%;height:60%}
.kl-pb.sel{outline:6px solid #ffd23f;transform:scale(1.06)}
.kl-pop-in.colors .kl-pb{border:5px solid #fff;box-shadow:0 5px 0 rgba(0,0,0,.3),0 0 0 2px #ccc}
.kl-pb:active{transform:translateY(4px)}

/* ===== telefon (iPhone pionowo i poziomo) ===== */
@media (max-width:700px),(max-height:500px){
  #top{padding:6px 8px 2px;gap:6px}
  #home{width:44px;height:44px;font-size:22px;box-shadow:0 3px 0 #c99a00}
  #hud{gap:4px}#hud .hav{font-size:26px}#hud .hst{font-size:15px;padding:3px 9px}#hud .hlv{display:none}
  #bubble{font-size:14px;min-height:38px;padding:5px 10px;border-radius:16px}
  #fazik{width:44px;height:44px}#q{width:20px;height:20px;font-size:14px}
  #stage{padding:4px 6px 6px}
  .menu{grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:9px}
  .tile{min-height:92px;font-size:14px;border-radius:20px;padding:10px 4px;box-shadow:0 5px 0 rgba(0,0,0,.35)}
  .tile b{font-size:40px}.tile .st{font-size:20px;top:4px;right:6px}
  .shelf{font-size:13px;margin-top:8px}.shelf span{font-size:22px}.shelf .who{font-size:14px}
  .prof h2{font-size:26px}.pbtn{width:110px;height:110px;font-size:16px}.pbtn b{font-size:46px}.pbtn.sm{width:74px;height:74px}
  .bigav{font-size:80px}.prof input{font-size:24px}
  .big,#start button{font-size:22px;padding:12px 28px}
  #start h1{font-size:32px}#start img{width:130px}
  .lvlup div{font-size:28px}.lvlup b{font-size:40px}.lvlup span{font-size:80px}
  .hand{font-size:44px}
  .btn{font-size:16px;padding:8px 14px}
  .stars{font-size:18px}
  /* salon */
  .sal-head{gap:8px;margin-bottom:2px}.sal-wish{font-size:22px;padding:3px 10px 3px 6px}.sal-wish i{width:30px;height:30px}
  .sal-hearts span{font-size:18px}.sal-coins{font-size:16px;padding:3px 10px}
  .sal-tabs{gap:6px;margin-bottom:4px}.sal-tab{width:50px;height:44px;font-size:24px;border-radius:14px}
  .sal-main{gap:6px}
  .bottle{width:40px;height:56px;border-radius:12px}.sal-bottles{gap:5px}
  .sal-it{width:48px;height:48px;font-size:24px;border-radius:12px}.sal-items{gap:6px}
  .pal{gap:6px}.pal button{width:38px;height:38px;border-width:3px}.pal button.round{width:46px;height:46px}
  .sal-big{font-size:40px}.sal-uv{font-size:26px;padding:8px 18px}.sal-next{font-size:30px;padding:6px 26px}.sal-cam{font-size:44px;padding:8px 30px}
  .sal-pol.big{width:min(180px,80%)}.sal-pay{font-size:20px}.sal-stars{font-size:26px}.sal-lab{font-size:14px}
  /* klocki */
  .kl-bar{gap:5px;margin-top:4px}
  .kl-b{min-width:44px;height:44px;font-size:22px;border-radius:12px;padding:0 6px}
  .kl-cats .kl-b{min-width:44px;font-size:24px}
  .kl-b[data-t=piece],.kl-b[data-t=color]{min-width:76px;height:50px}
  .kl-cur{font-size:28px}.kl-cur svg{width:40px;height:30px}.kl-sw{width:34px;height:34px}
  .kl-pop-in{padding:12px;gap:10px;border-radius:20px}
  .kl-models button{width:120px;height:110px;font-size:16px}.kl-models b{font-size:44px}.kl-models .kl-city{width:140px}
  .kl-step{font-size:16px}
  /* miasteczko */
  .m-joy{width:120px;height:120px;left:12px;bottom:12px}.m-knob{width:54px;height:54px}
  .m-btns{right:10px;bottom:10px;gap:8px}.m-b{width:56px;height:56px;font-size:26px}.m-b[data-a=jump]{width:72px;height:72px;font-size:36px}
  .m-b[data-a=zin],.m-b[data-a=zout]{width:42px;height:42px;font-size:18px}
  .m-mission{font-size:16px;padding:4px 12px;top:6px}.m-mission span{font-size:28px}
  .m-spray{width:90px;height:90px;font-size:46px;right:96px;bottom:20px}
  .m-tiles{grid-template-columns:repeat(5,1fr);gap:8px}.m-tile{width:62px;height:62px;font-size:32px;border-radius:16px}.m-board h3{font-size:34px}
  /* malowanka */
  .mal-pick{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px}
  .mal-tools{gap:5px}.mal-t{width:42px;height:42px;font-size:22px;border-radius:12px}
  .mal-pal button{width:30px;height:30px;border-width:3px}
  .mal-stick button{width:38px;height:38px;font-size:22px}
  .mal-size .btn{font-size:18px;padding:4px 12px}
  /* pozostałe gry */
  .mem{gap:7px}.mem-theme{width:120px;height:120px}.mem-theme b{font-size:50px}.mem-theme span{font-size:18px}.mem-info{font-size:16px;gap:12px}
  .card .f,.card .b{border-radius:14px}
  .bulbs{gap:8px}.bulb{width:58px}.bulbs.simon .bulb{width:100px}.bulb .base{height:22px}
  .scard{padding:14px;border-radius:22px}.scard .em{font-size:64px}.scard .tx{font-size:19px}
  .yn{gap:24px}.yn button{width:96px;height:96px;font-size:52px}.dots{font-size:18px}.streak{font-size:20px;min-height:24px}
  .rrow{font-size:17px;padding:6px 12px}.rav{font-size:30px}.rpos{font-size:24px;width:36px}.rankw h2{font-size:24px}
}
/* telefon pionowo: salon jedna kolumna */
@media (max-width:700px){
  .sal-main{flex-direction:column}.sal-view{flex:1.15}.sal-tools{flex:1}
  .m-tiles{grid-template-columns:repeat(4,1fr)}
}
/* telefon poziomo: mało wysokości */
@media (max-height:500px){
  #bubble{min-height:32px}
  .menu{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
  .tile{min-height:76px;flex-direction:row;gap:8px}.tile b{font-size:32px}
  .sal-main{flex-direction:row}
  .mem{max-width:60vh!important}
}
.kl-models{overflow-y:auto;touch-action:pan-y;align-content:center;padding:10px}
.kl-cur .kl-lab{font-size:11px;line-height:1}
@media (max-width:700px),(max-height:500px){
  .kl-models{gap:8px}.kl-models button{width:100px;height:84px;font-size:13px;border-radius:18px}.kl-models b{font-size:34px}.kl-models .kl-city{width:110px}
  .kl-pb{width:min(84px,20vw);height:min(70px,16vw);font-size:min(36px,8vw);border-radius:14px}
}
/* telefon poziomo: przyciski klocków z boku, plac na całą wysokość */
@media (max-height:500px){
  #stage:has(.kl-cats){display:grid;grid-template-columns:1fr 196px;grid-template-rows:auto auto 1fr;gap:4px;align-items:start}
  #stage:has(.kl-cats) .kl-wrap{grid-column:1;grid-row:1/4;height:100%}
  #stage:has(.kl-cats) .kl-bar{grid-column:2;margin:0;justify-content:flex-start!important}
  #stage:has(.kl-cats) .kl-b{min-width:40px;height:40px;font-size:20px}
  #stage:has(.kl-cats) .kl-b[data-t=piece],#stage:has(.kl-cats) .kl-b[data-t=color]{min-width:64px;height:46px}
}

/* ===== noc 08.11: menu i nowe gry ===== */
#stage.scroll{overflow-y:auto;justify-content:flex-start;touch-action:pan-y;padding-top:12px}
.menu{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.tile{min-height:130px}
.tile .nowe{position:absolute;top:-8px;left:-6px;background:#ff2d55;color:#fff;font-size:14px;font-weight:bold;padding:3px 9px;border-radius:999px;transform:rotate(-8deg);box-shadow:0 3px 0 rgba(0,0,0,.3);animation:qpulse 1.4s infinite}
.g3-wrap{flex:1;min-height:0;width:100%;position:relative;border-radius:22px;overflow:hidden;touch-action:none}
.g3-wrap canvas{position:absolute;inset:0;width:100%;height:100%}
.g3-wrap.shake{animation:shake .4s}
.g3-info{display:flex;gap:18px;font-size:24px;margin-bottom:6px;align-items:center;flex-wrap:wrap;justify-content:center}
/* pizzeria */
.pz-head{display:flex;gap:20px;font-size:24px;margin-bottom:4px}
.pz-svg{flex:1;min-height:0;width:100%;border-radius:22px;touch-action:none}
.pz-svg g{transition:transform 1s}
.pz-tools{margin-top:6px}
.pz-top{border:0;width:72px;height:72px;border-radius:20px;background:#fff;font-size:40px;box-shadow:0 5px 0 rgba(0,0,0,.3)}
.pz-top.sel{background:#ffd23f;transform:scale(1.12)}
.pz-drop{animation:pop .3s}
.pz-fire{opacity:.25;transition:opacity .4s}.hot .pz-fire{opacity:1;animation:qpulse .5s infinite}
/* zwierzątko */
.pet-room{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;gap:8px;position:relative}
.pet-bars{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.pb{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.15);border-radius:999px;padding:4px 10px;font-size:24px}
.pb i{display:block;width:90px;height:14px;border-radius:7px;background:#3ddc84;max-width:90px;transition:width .5s}
.pl{font-size:20px;align-self:center}
.pet-stage{flex:1;min-height:0;position:relative;border-radius:26px;background:linear-gradient(#ffe9c7 0 62%,#c98a5a 62%);overflow:hidden;transition:filter .6s;touch-action:none}
.pet-stage.dark{filter:brightness(.35) saturate(.6)}
.pet{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);font-size:min(28vh,220px);cursor:pointer;animation:breathe 2.4s infinite}
.pet.sad{filter:grayscale(.4)}
.pet.jump{animation:petjump .6s}
@keyframes breathe{50%{transform:translate(-50%,-50%) scale(1.04,.97)}}
@keyframes petjump{40%{transform:translate(-50%,-75%) scale(1.1)}}
.pet-hat{position:absolute;left:52%;top:20%;transform:translate(-50%,-50%);font-size:min(10vh,80px);pointer-events:none}
.pet-fx{position:absolute;inset:0;pointer-events:none}
.pet-heart{position:absolute;top:40%;font-size:44px;animation:heart 1.5s forwards}
@keyframes heart{to{transform:translateY(-160px) scale(1.4);opacity:0}}
.bubble-b{position:absolute;border-radius:50%;border:2px solid rgba(255,255,255,.9);background:radial-gradient(circle at 30% 30%,#fff,rgba(160,220,255,.4));transform:translate(-50%,-50%);animation:bub 2.5s forwards}
@keyframes bub{to{transform:translate(-50%,-160%);opacity:0}}
.pet-ball{position:absolute;font-size:60px;transition:left .6s ease-out,top .6s cubic-bezier(.3,-.8,.7,1);transform:translate(-50%,-50%)}
.pet-z{position:absolute;left:58%;top:30%;font-size:60px;animation:heart 2s forwards}
.pet-tray{position:absolute;left:50%;bottom:74px;transform:translateX(-50%);display:flex;gap:10px;background:rgba(255,255,255,.9);border-radius:22px;padding:8px 14px}
.pet-food{font-size:52px;cursor:grab;touch-action:none}
.drag-ghost{position:fixed;font-size:60px;z-index:90;pointer-events:none}
/* balony */
.bal-sky{flex:1;min-height:0;width:100%;position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(#7fd0ff,#d8f1ff);touch-action:none}
.bal{position:absolute;bottom:-160px;width:90px;height:110px;border-radius:50% 50% 48% 48%;background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.75),transparent 30%),var(--c);animation:rise linear forwards;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:inset -8px -10px 0 rgba(0,0,0,.12)}
.bal::after{content:"";position:absolute;bottom:-60px;left:50%;width:2px;height:58px;background:rgba(0,0,0,.35)}
.bal b{font-size:52px;color:#fff;text-shadow:0 3px 0 rgba(0,0,0,.3)}
.bal.boom{transform:scale(1.6);opacity:0;transition:.18s}
.bal.shake{animation:shake .4s,rise linear forwards}
@keyframes rise{to{bottom:115%}}
.bal-t{display:inline-block;width:46px;height:46px;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 3px #1d2b64}
/* literki, liczenie */
.lit-box,.lic-box{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}
.lit-pic{font-size:min(30vh,200px);animation:pop .5s}
.lit-opts,.lic-opts{display:flex;gap:22px}
.lit-b{border:0;width:130px;height:130px;border-radius:30px;background:#fff;color:#1d2b64;font-size:76px;font-weight:bold;box-shadow:0 8px 0 rgba(0,0,0,.35)}
.lit-b.ok{background:#3ddc84;color:#fff}.lit-b.shake{animation:shake .4s}
.lit-b:active{transform:translateY(5px)}
.lit-chip{display:inline-block;width:34px;height:34px;line-height:34px;text-align:center;border-radius:10px;background:rgba(255,255,255,.15);font-size:20px;font-weight:bold;margin:2px}
.lit-chip.on{background:#3ddc84}
.lit-small{font-size:50px}.lit-small b{color:#ffd23f}
.lit-pad{flex:1;min-height:0;aspect-ratio:1;max-width:100%;background:#fff;border-radius:30px;box-shadow:0 8px 0 rgba(0,0,0,.3)}
.lit-pad canvas{width:100%;height:100%;touch-action:none}
.lic-area{display:flex;align-items:center;gap:20px;flex-wrap:wrap;justify-content:center;background:rgba(255,255,255,.12);border-radius:30px;padding:20px 26px;max-width:100%}
.lic-g{display:grid;grid-template-columns:repeat(5,auto);gap:8px}
.lic-g span{font-size:min(9vh,64px);animation:pop .4s both;cursor:pointer}
.lic-g span.lic-tap{filter:drop-shadow(0 0 10px #ffd23f) brightness(1.2);transform:scale(1.1)}
.lic-plus{font-size:70px;color:#ffd23f}
/* akwarium */
.g3-wrap.aq{border:8px solid #b9e3f5;box-shadow:inset 0 0 40px rgba(0,0,0,.25)}
.aq-bar .btn{font-size:28px;padding:6px 12px}
/* puzzle */
.puz-area{flex:1;min-height:0;width:100%;position:relative;touch-action:none}
.puz-board{position:absolute;left:0;top:0;background:rgba(255,255,255,.15);border-radius:10px;outline:4px dashed rgba(255,255,255,.5)}
.puz-board.win{outline:6px solid #ffd23f;box-shadow:0 0 40px #ffd23f}
.puz-ghost{width:100%;height:100%;opacity:.35;border-radius:10px}
.puz-p{position:absolute;border-radius:6px;box-shadow:0 5px 10px rgba(0,0,0,.4);cursor:grab;touch-action:none}
.puz-p.done{box-shadow:none;border-radius:0}
/* kółko i krzyżyk */
.xo{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(90vw,62vh)}
.xo-c{aspect-ratio:1;border:0;border-radius:24px;background:#fff;font-size:min(14vw,90px);box-shadow:0 7px 0 rgba(0,0,0,.3)}
.xo-c.pop{animation:pop .3s}.xo-c.line{background:#ffd23f}
.xo-fz{width:34px;height:34px;border-radius:50%;background:#fff;vertical-align:middle}
@media (max-width:700px),(max-height:500px){
  .menu{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.tile{min-height:88px}.tile .nowe{font-size:10px;padding:2px 6px}
  .g3-info{font-size:16px;gap:10px}.pz-top{width:48px;height:48px;font-size:28px}
  .pb{font-size:16px;padding:2px 8px}.pb i{width:50px;height:10px}
  .lit-b{width:90px;height:90px;font-size:52px;border-radius:22px}.lit-opts,.lic-opts{gap:12px}
  .bal{width:66px;height:80px}.bal b{font-size:36px}.pet-food{font-size:38px}
  .aq-bar .btn{font-size:20px;padding:4px 8px}
}

/* ===== grafika PRO (08.11 noc) ===== */
/* kafelki menu: połysk, głębia, błysk */
.tile{background-image:linear-gradient(180deg,rgba(255,255,255,.32) 0%,rgba(255,255,255,.06) 48%,rgba(0,0,0,.14) 100%);border:3px solid rgba(255,255,255,.35);text-shadow:0 2px 0 rgba(0,0,0,.28);overflow:hidden;transition:transform .15s}
.tile b{filter:drop-shadow(0 7px 6px rgba(0,0,0,.35));transition:transform .2s}
.tile:active b{transform:scale(1.15) rotate(-6deg)}
.tile::before{content:"";position:absolute;top:-60%;left:-80%;width:50%;height:220%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);transform:rotate(20deg);animation:shine 6s infinite}
.tile:nth-child(3n)::before{animation-delay:2s}.tile:nth-child(3n+1)::before{animation-delay:4s}
@keyframes shine{0%,70%{left:-80%}100%{left:160%}}
#top #bubble{box-shadow:0 4px 0 rgba(0,0,0,.18)}
/* sceny dla gier z kartami */
.lit-box,.lic-box{background:radial-gradient(ellipse at 50% 120%,#7cc576 0 38%,transparent 39%),radial-gradient(ellipse at 15% 110%,#5aab47 0 30%,transparent 31%),linear-gradient(#9fdcff,#e3f6ff 70%);border-radius:28px;padding:16px;box-shadow:inset 0 0 0 6px rgba(255,255,255,.5)}
.lit-pic{filter:drop-shadow(0 12px 10px rgba(0,0,0,.25));animation:pop .5s,floaty 3s 0.5s infinite ease-in-out}
@keyframes floaty{50%{transform:translateY(-10px)}}
.lit-small{color:#1d2b64;background:#fff;border-radius:999px;padding:4px 20px;box-shadow:0 4px 0 rgba(0,0,0,.15)}
.lit-pad{background:repeating-linear-gradient(#fff 0 58px,#dfe8ff 58px 60px);border:6px solid #ffd23f}
/* klocki z literami i cyframi */
.lit-b.blk{color:#fff;text-shadow:0 4px 0 rgba(0,0,0,.25);border-radius:22px;box-shadow:inset 0 -10px 0 rgba(0,0,0,.2),inset 0 8px 0 rgba(255,255,255,.35),0 8px 0 rgba(0,0,0,.25)}
.lit-b.c0{background:#ff5a5a}.lit-b.c1{background:#2e8bff}.lit-b.c2{background:#2ecc71}.lit-b.c3{background:#ffb020}.lit-b.c4{background:#9b4dff}
.lit-b.blk.ok{background:#3ddc84;animation:pop .4s}
.lic-area{background:linear-gradient(#c98a5a,#a86a3e);box-shadow:inset 0 -8px 0 rgba(0,0,0,.2),0 8px 0 rgba(0,0,0,.2);border:5px solid #e8b884}
.lic-g span{filter:drop-shadow(0 4px 3px rgba(0,0,0,.3))}
/* kółko i krzyżyk: drewniana plansza, rysowane znaki */
.xo-board{background:linear-gradient(135deg,#d9a066,#b77a42);padding:18px;border-radius:34px;box-shadow:inset 0 0 0 6px rgba(255,255,255,.25),0 12px 0 rgba(0,0,0,.3)}
.xo-c{background:linear-gradient(#fffaf0,#f1e4cc);box-shadow:inset 0 -6px 0 rgba(0,0,0,.08),0 6px 0 rgba(0,0,0,.2);display:flex;align-items:center;justify-content:center;padding:8%}
.xo-c svg{width:100%;height:100%}
.xo-draw{fill:none;stroke-width:13;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;animation:drawon .35s forwards}
.xo-o{stroke:#2e8bff}.xo-x{stroke:#ff4d4d}.xo-x.d2{animation-delay:.18s}
@keyframes drawon{to{stroke-dashoffset:0}}
.xo-c.line{background:linear-gradient(#fff3b0,#ffd23f)}
/* balony: niebo z chmurami, słońce, wzgórza, błyszczące balony */
.bal-sky{background:radial-gradient(circle at 85% 14%,#fff7c2 0 5%,rgba(255,230,120,.6) 6%,transparent 14%),radial-gradient(ellipse at 20% 112%,#6cc24a 0 26%,transparent 27%),radial-gradient(ellipse at 75% 118%,#58b03a 0 32%,transparent 33%),linear-gradient(#5fbfff,#bfe9ff 70%,#e8f8ff)}
.bal-sky::before,.bal-sky::after{content:"";position:absolute;width:200px;height:60px;border-radius:60px;background:#fff;opacity:.9;box-shadow:60px -26px 0 10px #fff,120px 0 0 -4px #fff;animation:drift 40s linear infinite}
.bal-sky::before{top:12%;left:-30%}.bal-sky::after{top:30%;left:-40%;animation-duration:60s;animation-delay:-20s;transform:scale(.7)}
@keyframes drift{to{left:120%}}
.bal{border-radius:50% 50% 47% 47%/55% 55% 45% 45%;background:radial-gradient(circle at 32% 26%,rgba(255,255,255,.85) 0 9%,rgba(255,255,255,.2) 16%,transparent 30%),radial-gradient(circle at 60% 70%,rgba(0,0,0,.18),transparent 60%),var(--c);box-shadow:none}
.bal::before{content:"";position:absolute;bottom:-9px;left:50%;transform:translateX(-50%);border:8px solid transparent;border-bottom:10px solid var(--c);border-top:0;filter:brightness(.85)}
.bal::after{bottom:-70px;height:62px;width:3px;background:none;border-left:2px solid rgba(60,60,60,.5);border-radius:40%}
/* zwierzątko: pokoik z oknem, tapetą, podłogą i dywanem */
.pet-stage{background:
  radial-gradient(ellipse at 50% 84%,#ff9ec7 0 17%,#ff7fb3 17.5% 19%,transparent 19.5%),
  repeating-linear-gradient(90deg,#c98a5a 0 70px,#b97a4a 70px 72px) 0 62%/100% 38% no-repeat,
  linear-gradient(#ffd9a8,#ffd9a8) 0 61%/100% 2% no-repeat,
  repeating-linear-gradient(90deg,#fff3e0 0 28px,#ffe8c7 28px 56px)}
.pet-stage::before{content:"☀️";position:absolute;left:8%;top:8%;width:22%;height:32%;border:10px solid #fff;border-radius:16px;background:linear-gradient(#8fd3ff,#d7f1ff);box-shadow:0 6px 0 rgba(0,0,0,.12);font-size:44px;display:flex;align-items:flex-start;justify-content:flex-end;padding:6px}
.pet-stage.dark::before{content:"🌙";background:linear-gradient(#0b1440,#26346e)}
.pet-stage::after{content:"🧸";position:absolute;right:7%;bottom:30%;font-size:56px;filter:drop-shadow(0 6px 4px rgba(0,0,0,.25))}
.pet{filter:drop-shadow(0 16px 10px rgba(0,0,0,.25))}
.pb{background:rgba(255,255,255,.9);color:#1d2b64;box-shadow:0 3px 0 rgba(0,0,0,.2)}
.pb i{box-shadow:inset 0 -3px 0 rgba(0,0,0,.15)}
.pl{background:#ffd23f;color:#1d2b64;border-radius:999px;padding:4px 12px}
/* pizzeria i liczba na balonie */
.pz-top{background:linear-gradient(#fff,#f1f1f6);box-shadow:inset 0 -5px 0 rgba(0,0,0,.08),0 5px 0 rgba(0,0,0,.25)}
.g3-info{background:rgba(255,255,255,.12);border-radius:999px;padding:4px 18px}
@media (max-width:700px),(max-height:500px){.pet-stage::before{font-size:26px;border-width:6px}.pet-stage::after{font-size:34px}.xo-board{padding:10px;border-radius:22px}}
.pet-stage{background:
  radial-gradient(ellipse at 50% 86%,#ff9ec7 0 16%,#ff7fb3 16.5% 18%,transparent 18.5%),
  repeating-linear-gradient(90deg,#c98a5a 0 70px,#b97a4a 70px 72px) 0 100%/100% 36% no-repeat,
  linear-gradient(#e8b884,#e8b884) 0 63.5%/100% 2.5% no-repeat,
  repeating-linear-gradient(90deg,#fff3e0 0 28px,#ffe8c7 28px 56px)}
.pet{top:60%}
.xo{width:min(76vw,54vh)}.xo-c{min-width:0;min-height:0;font-size:0}
.tile .nowe{top:6px;left:6px;transform:rotate(-6deg)}
.pet-act .btn,.aq-bar .btn{background:linear-gradient(#fff,#eef1f8);color:#1d2b64;box-shadow:0 5px 0 rgba(0,0,0,.3)}
.pet-act .btn{font-size:36px;padding:10px 24px}
.pet-act .btn:not(.off),.aq-bar .btn:not(.off){background:linear-gradient(#ffe066,#ffc400);transform:scale(1.08)}
.aq-bar .btn{font-size:30px}
@media (max-width:700px),(max-height:500px){.pet-act .btn{font-size:24px;padding:6px 14px}.aq-bar .btn{font-size:20px}}
/* skrzynia skarbów */
.sk-wrap{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;position:relative;border-radius:28px;background:radial-gradient(circle at 50% 55%,rgba(255,210,80,.25),transparent 55%)}
.sk-info{display:flex;gap:24px;font-size:28px;background:rgba(255,255,255,.14);border-radius:999px;padding:6px 22px}
.sk-chest{position:relative;width:min(340px,60vw);height:min(260px,46vw);cursor:pointer;filter:drop-shadow(0 18px 14px rgba(0,0,0,.4))}
.sk-box{position:absolute;left:0;right:0;bottom:0;height:62%;border-radius:18px 18px 26px 26px;background:linear-gradient(90deg,transparent 12%,#e8b830 12% 18%,transparent 18% 82%,#e8b830 82% 88%,transparent 88%),linear-gradient(#a0602a,#6e3a12);border:6px solid #e8b830;box-shadow:inset 0 -12px 0 rgba(0,0,0,.25)}
.sk-box::after{content:"";position:absolute;left:50%;top:-4px;transform:translateX(-50%);width:16%;height:36%;background:linear-gradient(#ffe066,#d4a017);border-radius:8px;border:4px solid #8a5a10}
.sk-lid{position:absolute;left:-2%;right:-2%;top:2%;height:42%;border-radius:120px 120px 14px 14px;background:linear-gradient(90deg,transparent 12%,#e8b830 12% 18%,transparent 18% 82%,#e8b830 82% 88%,transparent 88%),linear-gradient(#c07a38,#8a4a1a);border:6px solid #e8b830;transform-origin:50% 100%;transition:transform .6s cubic-bezier(.3,1.6,.5,1);z-index:2}
.sk-glow{position:absolute;inset:-30%;background:radial-gradient(circle,rgba(255,230,120,.0),transparent 60%);z-index:-1;transition:.4s}
.sk-chest.ready .sk-glow{background:radial-gradient(circle,rgba(255,230,120,.75),transparent 60%);animation:qpulse 1.5s infinite}
.sk-chest.ready{animation:floaty 2.2s infinite ease-in-out}
.sk-chest.shake2{animation:shake .25s 4}
.sk-chest.nope{animation:shake .4s}
.sk-chest.open .sk-lid{transform:translateY(-30%) rotate(-28deg)}
.sk-prize{position:absolute;top:8%;left:50%;transform:translate(-50%,40%) scale(.2);opacity:0;transition:.7s cubic-bezier(.3,1.6,.5,1);text-align:center;pointer-events:none;z-index:4}
.sk-prize.show{opacity:1;transform:translate(-50%,0) scale(1)}
.sk-item{font-size:min(30vh,170px);filter:drop-shadow(0 0 30px rgba(255,255,255,.8))}
.sk-item.t1{filter:drop-shadow(0 0 40px #b14dff)}.sk-item.t2{filter:drop-shadow(0 0 50px #ffd23f);animation:spin2 2s infinite}
@keyframes spin2{50%{transform:scale(1.15) rotate(8deg)}}
.sk-tier{font-size:26px;font-weight:bold;color:#fff;text-shadow:0 3px 0 rgba(0,0,0,.4)}.sk-tier b{color:#ffd23f}
.sk-album{position:absolute;inset:0;z-index:6;background:rgba(11,16,38,.92);border-radius:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:14px}
.sk-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;overflow-y:auto;touch-action:pan-y;max-height:85%}
.sk-cell{position:relative;width:min(84px,10vw);aspect-ratio:1;border-radius:18px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;font-size:min(46px,6vw);filter:grayscale(1);opacity:.5}
.sk-cell.have{background:#fff;filter:none;opacity:1;box-shadow:0 4px 0 rgba(0,0,0,.3)}
.sk-cell.have.t1{background:linear-gradient(#f0d9ff,#d4a8ff)}.sk-cell.have.t2{background:linear-gradient(#fff3b0,#ffd23f)}
.sk-cell i{position:absolute;bottom:2px;right:6px;font-size:13px;font-style:normal;color:#1d2b64;font-weight:bold}
@media (max-width:700px){.sk-grid{grid-template-columns:repeat(5,1fr)}.sk-cell{width:min(64px,16vw);font-size:30px}.sk-info{font-size:20px}}
/* pisanie literek */
@font-face{font-family:'Playwrite PL';src:url(fonts/playwrite-pl.woff) format('woff');font-weight:400;font-display:swap}
@font-face{font-family:'Andika';src:url(fonts/andika-lat-0.woff2) format('woff2');font-weight:400;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Andika';src:url(fonts/andika-ext-0.woff2) format('woff2');font-weight:400;unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Andika';src:url(fonts/andika-lat-1.woff2) format('woff2');font-weight:700;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122}
@font-face{font-family:'Andika';src:url(fonts/andika-ext-1.woff2) format('woff2');font-weight:700;unicode-range:U+0100-02AF,U+1E00-1EFF}
.pis-tabs{display:flex;gap:12px;justify-content:center;margin-bottom:10px}
.pis-tab{position:relative;border:0;width:96px;height:80px;border-radius:20px;background:linear-gradient(#fff,#e9eefb);color:#1d2b64;font-size:48px;box-shadow:0 5px 0 rgba(0,0,0,.3)}
.pis-tab small{position:absolute;right:4px;bottom:2px;font-size:18px;font-family:Arial}
.pis-tab.on{background:linear-gradient(#ffe066,#ffc400);transform:scale(1.08)}
.pis-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;width:100%;max-width:1000px;overflow-y:auto;touch-action:pan-y;flex:1;min-height:0;align-content:start;padding:4px}
.pis-l{border:0;aspect-ratio:1.1;border-radius:18px;background:repeating-linear-gradient(#fffdf6 0 30%,#f0a0a0 30% 31%,#fffdf6 31% 64%,#5a8fd6 64% 65.5%,#fffdf6 65.5%);color:#1d2b64;font-size:min(6vw,46px);box-shadow:0 5px 0 rgba(0,0,0,.25);position:relative;line-height:1.1}
.pis-l i{position:absolute;left:0;right:0;bottom:3px;font-style:normal;font-size:min(1.7vw,13px);font-family:Arial;letter-spacing:-1px}
.pis-top{display:flex;align-items:center;gap:14px;width:100%;justify-content:space-between;margin-bottom:6px}
.pis-word{display:flex;align-items:center;gap:12px;background:#fff;color:#1d2b64;border-radius:999px;padding:4px 22px;font-size:38px;box-shadow:0 4px 0 rgba(0,0,0,.2)}
.pis-word b{color:#e8302f}
.pis-lv{display:flex;gap:6px}.pis-lv span{background:rgba(255,255,255,.15);border-radius:12px;padding:4px 10px;font-size:22px;opacity:.6}.pis-lv span.on{background:#ffd23f;opacity:1;transform:scale(1.1)}.pis-lv span.done{background:#3ddc84;opacity:1}
.pis-paper{position:relative;flex:1;min-height:0;aspect-ratio:10/7;max-width:100%;border-radius:20px;overflow:hidden;box-shadow:0 8px 0 rgba(0,0,0,.3),inset 0 0 0 4px #e8dcc0}
.pis-paper canvas{position:absolute;inset:0;width:100%;height:100%}
.pis-ink{touch-action:none}
.pis-miss{pointer-events:none}.pis-miss.fade{animation:fadeout 2.5s forwards}
@keyframes fadeout{0%,60%{opacity:1}to{opacity:0}}
.pis-paper.win{box-shadow:0 0 0 8px #3ddc84,0 0 40px #3ddc84}
.pis-ok{background:linear-gradient(#5fe39a,#2ecc71)!important;color:#fff}
@media (max-width:700px){.pis-grid{grid-template-columns:repeat(5,1fr)}.pis-tab{width:70px;height:58px;font-size:34px}.pis-word{font-size:24px;padding:2px 12px}.pis-lv span{font-size:15px;padding:2px 6px}.pis-l{font-size:30px}.pis-l i{font-size:10px}}
.pis-paper~.bar .btn{font-size:34px;padding:10px 30px}
@media (max-width:700px),(max-height:500px){.pis-paper~.bar .btn{font-size:22px;padding:6px 18px}}

/* ===== grywalizacja: bohater, sklep, zadania dnia ===== */
.ava{position:relative;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;line-height:1;vertical-align:middle}
.ava-hud{width:46px;height:46px;font-size:30px}
.ava-big{width:min(240px,32vh);height:min(240px,32vh);font-size:min(140px,19vh);background:rgba(255,255,255,.15);box-shadow:0 0 0 8px rgba(255,255,255,.25),0 14px 0 rgba(0,0,0,.25)}
.ava-a{position:relative;z-index:1}
.ava-hat{position:absolute;top:-.42em;left:50%;transform:translateX(-50%) rotate(-8deg);font-size:.62em;z-index:3}
.ava-eye{position:absolute;top:32%;left:50%;transform:translateX(-50%);font-size:.48em;z-index:2}
.ava-pet{position:absolute;right:-.28em;bottom:-.12em;font-size:.45em;z-index:3;animation:floaty 2s infinite ease-in-out}
.ava-fx{position:absolute;left:-.2em;top:0;font-size:.32em;z-index:4;animation:twk 1s infinite alternate}.ava-fx.f2{left:auto;right:-.1em;top:auto;bottom:.3em;animation-delay:.5s}
.ava.bg-ocean{background:radial-gradient(circle,#7fd8ff,#1f78c8)}.ava.bg-kwiaty{background:radial-gradient(circle,#ffe0ef,#ff7fb3)}
.ava.bg-kosmos{background:radial-gradient(circle at 30% 30%,#7b4dff,#0b1440)}.ava.bg-ogien{background:radial-gradient(circle,#ffe066,#ff4d1a)}
.ava.bg-tecza{background:conic-gradient(#ff3b3b,#ffd23f,#3ddc84,#2ec5ff,#b14dff,#ff3b3b)}.ava.bg-zloto{background:radial-gradient(circle at 35% 30%,#fff3b0,#e2b33c 60%,#b9861a);box-shadow:0 0 18px #ffd23f}
#hud .hav{font-size:inherit}
#hud .hsk{background:#ff7a1a;color:#fff;border-radius:999px;padding:4px 10px;font-weight:bold;font-size:16px}
.shop{flex:1;min-height:0;width:100%;display:flex;gap:24px;align-items:center;justify-content:center}
.shop-me{display:flex;flex-direction:column;align-items:center;gap:22px}
.shop-wal{font-size:34px;font-weight:bold;background:#ffd23f;color:#1d2b64;border-radius:999px;padding:6px 22px;box-shadow:0 5px 0 #c99a00}
.shop-side{flex:1;max-width:620px;display:flex;flex-direction:column;gap:12px;min-height:0;max-height:100%}
.shop-tabs{display:flex;gap:10px;justify-content:center}
.shop-tab{border:0;width:78px;height:66px;border-radius:18px;background:linear-gradient(#fff,#e9eefb);font-size:34px;box-shadow:0 5px 0 rgba(0,0,0,.3)}
.shop-tab.on{background:linear-gradient(#ffe066,#ffc400);transform:scale(1.1)}
.shop-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;overflow-y:auto;touch-action:pan-y;padding:6px}
.shop-it{position:relative;border:0;aspect-ratio:1;border-radius:22px;background:linear-gradient(#fff,#eef2fb);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-shadow:0 6px 0 rgba(0,0,0,.28)}
.shop-it b{font-size:min(52px,7vw)}.shop-it span{font-size:17px;font-weight:bold;color:#1d2b64}
.shop-it.poor{opacity:.55}.shop-it.have{background:linear-gradient(#e6ffef,#c4f5d6)}.shop-it.on{outline:6px solid #ffd23f;transform:scale(1.05)}
.shop-it.bgprev b{width:62%;aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:30px}
.shop-it.bg-ocean b{background:radial-gradient(circle,#7fd8ff,#1f78c8)}.shop-it.bg-kwiaty b{background:radial-gradient(circle,#ffe0ef,#ff7fb3)}.shop-it.bg-kosmos b{background:radial-gradient(circle at 30% 30%,#7b4dff,#0b1440)}
.shop-it.bg-ogien b{background:radial-gradient(circle,#ffe066,#ff4d1a)}.shop-it.bg-tecza b{background:conic-gradient(#ff3b3b,#ffd23f,#3ddc84,#2ec5ff,#b14dff,#ff3b3b)}.shop-it.bg-zloto b{background:radial-gradient(circle at 35% 30%,#fff3b0,#e2b33c 60%,#b9861a)}
.qcard{width:100%;max-width:1100px;background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.08));border:3px solid rgba(255,255,255,.3);border-radius:24px;padding:10px 14px;margin-bottom:12px;display:flex;flex-direction:column;gap:8px}
.qhead{font-size:22px;font-weight:bold;display:flex;gap:14px;align-items:center}.qstreak{background:#ff7a1a;border-radius:999px;padding:2px 12px;font-size:17px}
.qlist{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.qrow{border:0;border-radius:18px;background:#fff;color:#1d2b64;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;gap:2px 8px;align-items:center;padding:8px 12px;text-align:left;font-size:15px;box-shadow:0 4px 0 rgba(0,0,0,.25)}
.qrow b{font-size:30px;grid-row:1/3}.qrow i{grid-column:2;height:10px;border-radius:5px;background:#e4e9f5;overflow:hidden}.qrow i em{display:block;height:100%;background:linear-gradient(90deg,#3ddc84,#2ecc71)}
.qrow u{grid-row:1/3;grid-column:3;text-decoration:none;font-weight:bold}.qrow.ok{background:linear-gradient(#e6ffef,#c4f5d6)}
.qclaim{align-self:center;animation:qpulse 1s infinite}
.pet-mic{background:linear-gradient(#ff7aa8,#ff4d7d)!important;color:#fff!important;font-size:36px}
.pet-mic.rec{animation:qpulse .5s infinite;box-shadow:0 0 0 8px rgba(255,77,125,.4)!important}
.pet.listen{transform:translate(-50%,-50%) scale(1.06) rotate(-6deg);filter:drop-shadow(0 0 20px #ff9ec7)}
.pet.talk{animation:talk .18s infinite alternate}
@keyframes talk{to{transform:translate(-50%,-52%) scale(1.08,.95)}}
@media (max-width:700px),(max-height:500px){
  .shop{flex-direction:column;gap:10px}.ava-big{width:120px;height:120px;font-size:72px}.shop-wal{font-size:22px}
  .shop-tab{width:54px;height:46px;font-size:24px}.shop-grid{grid-template-columns:repeat(4,1fr);gap:8px}.shop-it span{font-size:12px}
  .qlist{grid-template-columns:1fr}.qrow{font-size:13px;padding:5px 10px}.qrow b{font-size:22px}.qhead{font-size:16px}
  .ava-hud{width:32px;height:32px;font-size:22px}
}
@media (max-height:500px){.shop{flex-direction:row}}
/* grafiki AI: pizzeria, zwierzątko */
.pz-top img{width:80%;height:80%;object-fit:contain;pointer-events:none}
.pz-glow{opacity:0;transition:opacity .5s;mix-blend-mode:screen}.hot .pz-glow{opacity:.75;animation:qpulse .5s infinite}
.pz-yum{animation:jump .5s 2}
.pet-stage{background:url(img/tla/pokoj.webp) center 60%/cover!important}
.pet-stage::before,.pet-stage::after{display:none!important}
.pet-stage.dark{filter:brightness(.3) saturate(.5) hue-rotate(200deg)}
.pet{top:62%;font-size:0}.pet img{height:min(44vh,340px);width:auto;display:block;pointer-events:none;-webkit-user-drag:none}
.pet-hat{top:24%;font-size:min(9vh,72px)}
.pet-pick img{width:150px;height:150px;object-fit:contain}
@media (max-width:700px),(max-height:500px){.pet img{height:min(36vh,220px)}.pet-pick img{width:90px;height:90px}}
/* grafiki AI: menu, awatary, gry */
body{background:linear-gradient(rgba(11,16,38,.55),rgba(11,16,38,.82)),url(img/tla/menu.webp) center/cover fixed,#0b1026}
.tile b img{width:min(96px,62%);height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 8px 8px rgba(0,0,0,.35));pointer-events:none}
.avimg{width:1.25em;height:1.25em;object-fit:contain;vertical-align:middle;pointer-events:none}
.pbtn b .avimg{width:96px;height:96px}.pbtn.sm b .avimg{width:84px;height:84px}
.bigav .avimg{width:180px;height:180px}.lvlup span .avimg{width:170px;height:170px}
.rav .avimg{width:52px;height:52px}.avimg.mini{width:28px;height:28px}
.ava .ava-a .avimg{width:1.15em;height:1.15em}
.lit-pic img{height:min(30vh,220px);width:auto;filter:drop-shadow(0 12px 10px rgba(0,0,0,.25))}
.lic-g span img{width:min(9vh,70px);height:min(9vh,70px);object-fit:contain}
.pis-wimg{width:52px;height:52px;object-fit:contain}
.aq-bar .btn img{width:38px;height:38px;object-fit:contain;vertical-align:middle}
@media (max-width:700px),(max-height:500px){.pbtn b .avimg{width:62px;height:62px}.pbtn.sm b .avimg{width:56px;height:56px}.bigav .avimg{width:110px;height:110px}.aq-bar .btn img{width:26px;height:26px}.pis-wimg{width:34px;height:34px}}
.bal-sky{background:url(img/tla/niebo.webp) center bottom/cover,#7fd0ff!important}
.bal-sky::before,.bal-sky::after{opacity:.6}
.lit-box,.lic-box{background:url(img/tla/laka.webp) center/cover,#9fdcff!important}
.puz-area{background:url(img/tla/stol.webp) center/cover;border-radius:22px}
.bal-sky::before,.bal-sky::after{display:none!important}
.ava-hat img,.ava-eye img,.ava-pet img{width:1.25em;height:1.25em;object-fit:contain;display:block}
.ava-eye img{width:1.5em}
.shop-it b img{width:min(76px,9vw);height:min(76px,9vw);object-fit:contain}
.sk-item img{height:min(30vh,200px);width:auto}
.sk-cell img{width:85%;height:85%;object-fit:contain}
.card .f img{width:80%;height:80%;object-fit:contain;pointer-events:none}
.mt-pics{display:flex;gap:2px}.mt-pics img{width:56px;height:56px;object-fit:contain}
@media (max-width:700px),(max-height:500px){.mt-pics img{width:34px;height:34px}}
/* wersja publiczna: kłódka i bramka */
.tile.locked{filter:saturate(.55)}
.tile.locked::after{content:"🔒";position:absolute;right:8px;bottom:6px;font-size:26px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))}
.gate{position:fixed;inset:0;z-index:95;background:rgba(11,16,38,.82);display:flex;align-items:center;justify-content:center;padding:16px;animation:fadein .25s}
.gate-box{position:relative;background:#fff;color:#1d2b64;border-radius:30px;padding:26px 28px;max-width:520px;width:100%;text-align:center;box-shadow:0 14px 0 rgba(0,0,0,.25);animation:pop .4s}
.gate-fz{width:96px;height:96px;border-radius:50%;margin-top:-70px;border:6px solid #fff;background:#fff;box-shadow:0 6px 0 rgba(0,0,0,.2)}
.gate-box h2{margin:8px 0;font-size:28px}.gate-box p{font-size:17px;margin:8px 0}.gate-par{background:#f1f5ff;border-radius:16px;padding:10px 12px}
.gate-box form{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.gate-box input[type=email]{font:inherit;font-size:20px;padding:12px 16px;border-radius:16px;border:3px solid #ffd23f;user-select:text;-webkit-user-select:text}
.gate-msg{min-height:20px;color:#e8302f;font-weight:bold}.gate-fine{font-size:13px!important;opacity:.75}
.gate-x{position:absolute;top:10px;right:12px;border:0;background:none;font-size:24px}
.scard .em{line-height:0}.bez-img{width:100%;max-width:520px;aspect-ratio:4/3;object-fit:cover;border-radius:22px;box-shadow:0 6px 0 rgba(0,0,0,.15)}
.safe{max-width:620px}.scard{padding:16px}
@media (max-width:700px),(max-height:500px){.bez-img{max-height:34vh;width:auto}}
.pis-paper{flex:none!important;width:100%;max-width:calc((100vh - 240px) * 1.4286);height:auto!important;aspect-ratio:10/7}
.par-links{font-size:14px;opacity:.85;margin-top:10px}.par-links a{color:#ffd23f}
/* Salon 2.0: realistyczne płótno */
.sal-view canvas{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;border-radius:26px;box-shadow:0 8px 26px rgba(0,0,0,.4);touch-action:none}
.sal-view.uv canvas{filter:drop-shadow(0 0 30px #b14dff) saturate(1.15)}
.sal-view.sparkle canvas{filter:brightness(1.08) drop-shadow(0 0 25px #fff)}
.sal-view.wind canvas{animation:salwind 1.2s}
@keyframes salwind{25%{transform:translate(-50%,-50%) rotate(-1.5deg)}50%{transform:translate(-50%,-50%) rotate(1.5deg)}75%{transform:translate(-50%,-50%) rotate(-1deg)}}
.sal-view.enter canvas{animation:salin .8s}
@keyframes salin{from{opacity:0;transform:translate(-50%,-46%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%)}}
.sal-ov{position:absolute;pointer-events:none;transform:translate(-50%,-50%);z-index:3}
.sal-brush{font-size:54px;transform:translate(-30%,-80%) rotate(-20deg)}
.sal-cuc{width:20%;pointer-events:auto;touch-action:none;filter:drop-shadow(0 6px 8px rgba(0,0,0,.4))}
.sal-cuc.on{width:17%}
.sal-lamp{left:50%;top:42%;width:80%;filter:drop-shadow(0 0 40px #b14dff);animation:pop .5s}
.sal-cnt{left:50%;top:72%;font-size:80px;font-weight:bold;color:#fff;text-shadow:0 0 20px #b14dff}
.bottle{position:relative;overflow:hidden;padding:2px}
.bottle img{width:100%;height:100%;object-fit:contain;position:relative;display:block}
.bl-liq{position:absolute;left:31%;right:31%;top:50%;bottom:9%;border-radius:9px}
.sal-uv img{height:58px;vertical-align:middle}
.sal-it img{width:86%;height:86%;object-fit:contain}
.sal-it.sal-sty{width:78px;height:100px;overflow:hidden;padding:0}
.sal-sty img{width:100%;height:100%;object-fit:cover;object-position:50% 10%;border-radius:12px}
.sal-tool{height:84px;vertical-align:middle}
.sal-pol canvas{width:100%;border-radius:6px;display:block}
@media (max-height:600px),(max-width:600px){.sal-it.sal-sty{width:52px;height:68px}.sal-uv img{height:36px}.sal-tool{height:54px}}
/* Ciemny dom 2.0 */
.dm-box{flex:1;min-height:0;width:100%;position:relative;display:flex;align-items:center;justify-content:center}
.dm-house{position:relative;border-radius:22px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.dm-bg{position:absolute;inset:0;width:100%;height:100%;display:block}
.dm-room{position:absolute;cursor:pointer}
.dm-lit{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .35s;pointer-events:none}
.dm-room.lit .dm-lit{opacity:1;animation:dmflick .5s}
@keyframes dmflick{0%{opacity:0}15%{opacity:.9}25%{opacity:.3}40%{opacity:1}55%{opacity:.7}70%{opacity:1}}
.dm-thing{position:absolute;left:50%;bottom:7%;height:56%;aspect-ratio:1;transform:translateX(-50%);opacity:0;transition:opacity .4s;pointer-events:none;display:flex;align-items:flex-end;justify-content:center}
.dm-room.attic .dm-thing{bottom:4%;height:62%}
.dm-thing img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 6px rgba(0,0,0,.45))}
.dm-thing span{font-size:min(9vw,70px)}
.dm-room.lit .dm-thing{opacity:1}
.dm-thing.jump{animation:dmjump .6s}
@keyframes dmjump{40%{transform:translateX(-50%) translateY(-25%) scale(1.15)}}
.dm-eyes{position:absolute;left:50%;bottom:35%;transform:translateX(-50%);display:flex;gap:10%;width:22%;justify-content:center;transition:opacity .3s}
.dm-eyes i{display:block;width:clamp(6px,1.6vw,16px);aspect-ratio:3/4;background:#fffbe0;border-radius:50%;box-shadow:0 0 8px #fff7a0;animation:blink 3.2s infinite}
.dm-room:nth-child(odd) .dm-eyes i{animation-delay:1.3s}
.dm-room.lit .dm-eyes{opacity:0}
@keyframes blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
.dm-sw{position:absolute;right:4%;top:44%;width:clamp(26px,13%,56px);aspect-ratio:1;border:0;padding:0;background:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6));transition:transform .15s}
.dm-sw img{width:100%;height:100%;display:block;transition:transform .2s}
.dm-room.lit .dm-sw img{transform:scaleY(-1)}
.dm-sock{position:absolute;left:3%;bottom:20%;width:clamp(26px,10%,52px);aspect-ratio:1;border:0;padding:0;background:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.dm-sock img{width:100%;height:100%;display:block}
/* Grające żarówki 2.0: prawdziwe żarówki na scenie */
#stage.zar-scena{background:url(img/tla/scena.webp) center/cover no-repeat}
.zar-scena .bulbs{background:none}
.bulb{width:clamp(64px,11vw,135px)}
.bulb .bw{position:relative;aspect-ratio:1;isolation:isolate;transition:filter .12s,transform .12s}
.bulb .bw img{position:absolute;inset:0;width:100%;height:100%;display:block}
.bulb .b-on{opacity:0;transition:opacity .1s}
.bulb .b-col{position:absolute;inset:0;background:var(--c);mix-blend-mode:color;opacity:.55;-webkit-mask-image:url(img/zar/on.webp),linear-gradient(#000 64%,transparent 72%);-webkit-mask-size:100% 100%;-webkit-mask-composite:source-in;mask-image:url(img/zar/on.webp),linear-gradient(#000 64%,transparent 72%);mask-size:100% 100%;mask-composite:intersect}
.bulb.on .b-on{opacity:1}
.bulb.on .b-col{opacity:.85}
.bulb.on .bw{filter:drop-shadow(0 0 18px var(--c)) drop-shadow(0 0 40px var(--c));transform:scale(1.06)}
.bulb.hint .bw{animation:qpulse .8s infinite;filter:drop-shadow(0 0 10px #ffd23f) drop-shadow(0 0 4px #fff)}
.bulb .nt{color:#fff;text-shadow:0 2px 4px #000;font-weight:bold}
.bulbs.simon .bulb{width:170px}
@media (max-height:600px),(max-width:600px){.bulb{width:64px}.bulbs.simon .bulb{width:110px}}
path.flow{stroke-dasharray:18 22 !important;animation:flow .5s linear infinite;stroke:#fff6a8}
@keyframes flow{to{stroke-dashoffset:-40}}
/* Gry o prądzie (gry7) */
.ob-box,.dt-box{flex:1;min-height:0;width:100%;position:relative;display:flex;align-items:center;justify-content:center}
.ob-in,.dt-in{position:relative;border-radius:24px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.45)}
.ob-svg{width:100%;height:100%;display:block;touch-action:none}
.ob-part{filter:drop-shadow(0 8px 8px rgba(0,0,0,.45))}
.ob-part.lit{filter:drop-shadow(0 0 30px #ffd23f) drop-shadow(0 0 60px #fff3a0)}
.ob-wire path{fill:none;stroke-linecap:round}
.ob-flow{opacity:0;stroke-dasharray:14 22}
.ob-flow.on{opacity:1;animation:flow .45s linear infinite}
.ob-dot{fill:#ffd23f;stroke:#fff;stroke-width:5;opacity:.95;animation:qpulse 1.1s infinite;transform-box:fill-box;transform-origin:center}
.ob-dot.used{fill:#3ddc84;animation:none;opacity:.8}
.ob-sign{font:bold 30px system-ui;fill:#fff;paint-order:stroke;stroke:#000;stroke-width:5}
.ob-next{position:absolute;right:14px;bottom:14px;font-size:40px;animation:qpulse 1.2s infinite}
.dt-in{touch-action:manipulation}
.dt-img{width:100%;height:100%;display:block;pointer-events:none}
.dt-mark{position:absolute;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;border:6px solid #ff3b3b;box-shadow:0 0 0 4px #fff,0 0 30px #ff3b3b;display:flex;align-items:flex-start;justify-content:flex-end;font-size:clamp(22px,3.5vw,44px);animation:pop .5s;pointer-events:none}
.dt-mark.good{border-color:#3ddc84;box-shadow:0 0 0 4px #fff,0 0 30px #3ddc84}
.np-wrap{flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:space-around;gap:10px;padding:10px}
.np-box{width:min(26vw,240px);aspect-ratio:1;border:0;border-radius:28px;background:linear-gradient(#e9c48a,#c99a55);box-shadow:inset 0 -12px 0 rgba(0,0,0,.2),0 8px 0 #8a6330;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative}
.np-box img{width:52%}
.np-box b{font-size:clamp(30px,5vw,56px)}
.np-box.yes{background:linear-gradient(#ffe27a,#f2b705)}
.np-box.no{background:linear-gradient(#bfe7ff,#7cc4f0)}
.np-no{font-size:clamp(50px,9vw,110px);position:relative;opacity:.6}
.np-no::after{content:"";position:absolute;left:-10%;right:-10%;top:48%;height:10%;background:#e8102e;transform:rotate(-35deg);border-radius:6px}
.np-box.pop{animation:pop .5s}
.np-mid{flex:1;display:flex;align-items:center;justify-content:center;max-width:44vw}
.np-it{width:min(40vw,320px);max-height:55vh;object-fit:contain;touch-action:none;cursor:grab;filter:drop-shadow(0 12px 12px rgba(0,0,0,.45));animation:pop .4s}
.np-it.shake{animation:shake .4s}
@media (orientation:portrait){.np-wrap{flex-wrap:wrap}.np-mid{order:-1;flex-basis:100%;max-width:100%}.np-box{width:38vw}}
.os-meter{display:flex;align-items:center;gap:8px;font-size:26px;margin:2px 0 6px}
.os-meter i{display:block;width:min(50vw,320px);height:18px;border-radius:9px;background:rgba(255,255,255,.25);overflow:hidden}
.os-meter em{display:block;height:100%;width:100%;background:linear-gradient(90deg,#3ddc84,#ffd23f,#ff3b3b);transition:width .5s}
.os-meter.low em{background:#3ddc84}
/* Balony, Skrzynia, XO: prawdziwe obiekty */
.bal-sky{background:url(img/tla/niebo.webp) center bottom/cover no-repeat}
.bal{width:130px;height:130px;border-radius:0;background:none;box-shadow:none;isolation:isolate;align-items:flex-start;padding-top:12%}
.bal::after{display:none}
.bal img{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 8px 8px rgba(0,0,0,.2))}
.bal .bal-c{position:absolute;inset:0;background:var(--c);mix-blend-mode:multiply;pointer-events:none;-webkit-mask-image:url(img/inne/balon.webp),linear-gradient(#000 66%,transparent 72%);-webkit-mask-size:100% 100%;-webkit-mask-composite:source-in;mask-image:url(img/inne/balon.webp),linear-gradient(#000 66%,transparent 72%);mask-size:100% 100%;mask-composite:intersect}
.bal b{position:relative;z-index:2;margin-top:4%}
@media (max-width:700px),(max-height:500px){.bal{width:96px;height:96px}}
.sk-chest{width:min(380px,66vw);height:min(380px,66vw);filter:drop-shadow(0 18px 14px rgba(0,0,0,.4))}
.sk-chest img{position:absolute;inset:0;width:100%;height:100%;transition:opacity .25s,transform .4s}
.sk-c1{opacity:0;transform:scale(.96)}
.sk-chest.open .sk-c0{opacity:0}.sk-chest.open .sk-c1{opacity:1;transform:scale(1.04)}
.xo-c{background:url(img/inne/deska.webp) center/cover;padding:10%}
.xo-pc{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 4px rgba(0,0,0,.35));animation:xodrop .35s cubic-bezier(.3,1.6,.5,1)}
@keyframes xodrop{from{transform:scale(1.6) translateY(-20%);opacity:0}to{transform:none;opacity:1}}
.xo-c.line{background:url(img/inne/deska.webp) center/cover;box-shadow:0 0 0 6px #ffd23f,0 0 26px #ffd23f}
.bal::before{display:none}
/* Fazik 3D (maskotka jak na banerze) */
#fazik{object-fit:contain;background:#fff;padding:3px}
.fz3d-start{width:auto!important;height:min(34vh,300px)!important;border-radius:0!important;background:none!important;box-shadow:none!important;filter:drop-shadow(0 12px 18px rgba(0,0,0,.45));animation:floaty 2.4s ease-in-out infinite}
.gate-fz{object-fit:contain;background:none!important;border-radius:0!important}
.xo-fz{object-fit:contain}
