/* PlayCrew – Panel: pop-upy (okno z kampanią + okienko w rogu). Klasy z prefiksem pbpop, żeby nie kolidować z motywem. */
.pbpop-ov{position:fixed;inset:0;z-index:99990;display:grid;place-items:center;padding:1rem;background:rgba(23,18,31,.62);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);font-family:"Rubik",system-ui,sans-serif;color:#17121f;opacity:0;transition:opacity .25s ease}
.pbpop-ov.in{opacity:1}
.pbpop-ov *,.pbpop-corner *{box-sizing:border-box}
.pbpop-lock{overflow:hidden!important}

.pbpop{--c1:#ffd83d;--c2:#ff7ac6;position:relative;width:min(780px,100%);max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);overflow:auto;border:4px solid #17121f;border-radius:26px;box-shadow:10px 10px 0 #17121f;isolation:isolate;background:var(--c1);transform:translateY(24px) rotate(-1.5deg) scale(.94);transition:transform .35s cubic-bezier(.2,1.3,.4,1)}
.pbpop-ov.in .pbpop{transform:none}
.pbpop:focus{outline:0}
.pbpop[data-theme="sky"]{--c1:#4db8ff;--c2:#ff7ac6}
.pbpop[data-theme="pop"]{--c1:#ff7ac6;--c2:#ffd83d}
.pbpop[data-theme="mint"]{--c1:#7fe0a0;--c2:#ff7ac6}
.pbpop .pbpop-title{font-family:"Bungee",system-ui,sans-serif;font-weight:400;line-height:1.02;margin:0;padding:0;border:0;letter-spacing:0;text-transform:none}
.pbpop-x{position:absolute;right:14px;top:14px;z-index:5;width:42px;height:42px;padding:0;border-radius:50%;background:#fff;border:3px solid #17121f;box-shadow:3px 3px 0 #17121f;font:400 18px/1 "Bungee",sans-serif;color:#17121f;display:grid;place-items:center;cursor:pointer}
.pbpop-x:hover{background:#ffd83d}
.pbpop-x:focus-visible,.pbpop-btn:focus-visible,.pbpop-nope:focus-visible,.pbpop-cp:focus-visible,.pbpop-corner button:focus-visible,.pbpop-corner input:focus-visible{outline:3px solid #17121f;outline-offset:3px}
.pbpop-btn{display:inline-flex;align-items:center;justify-content:center;font-family:"Bungee",sans-serif;font-weight:400;font-size:1.05rem;line-height:1.1;text-decoration:none;padding:.95rem 1.7rem;border-radius:14px;border:3px solid #17121f;box-shadow:5px 5px 0 #17121f;background:#ff3b3b;color:#fff;cursor:pointer;transition:transform .12s,box-shadow .12s}
.pbpop-btn:hover{transform:translate(-1px,-1px);box-shadow:7px 7px 0 #17121f;color:#fff}
.pbpop-btn:active{transform:translate(3px,3px);box-shadow:2px 2px 0 #17121f}
.pbpop-nope{display:block;margin:.9rem auto 0;padding:.2rem .4rem;font:700 .85rem "Rubik",sans-serif;color:#17121f;opacity:.7;text-decoration:underline;background:none;border:0;cursor:pointer}
.pbpop-nope:hover{opacity:1}
.pbpop-tag{display:inline-block;font:400 .8rem/1.2 "Bungee",sans-serif;background:#17121f;color:#ffd83d;padding:.35rem .8rem;border-radius:8px;transform:rotate(-2deg);box-shadow:3px 3px 0 #ff3b3b}

/* odliczanie */
.pbpop-cd{margin:0 0 1.1rem}
.pbpop-cdl{display:block;font:800 .72rem "Rubik",sans-serif;letter-spacing:.08em;text-transform:uppercase;margin:0 0 .45rem}
.pbpop-cdb{display:flex;justify-content:center;gap:.6rem}
.pbpop-cdb div{background:#17121f;color:#ffd83d;border-radius:12px;padding:.5rem .7rem;min-width:62px;box-shadow:3px 3px 0 #ff3b3b;text-align:center}
.pbpop-cdb b{display:block;font:400 1.7rem/1 "Bungee",sans-serif}
.pbpop-cdb small{font-size:.62rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.pbpop-cdd{display:inline-block;font:400 1.1rem "Bungee",sans-serif;background:#17121f;color:#ffd83d;border-radius:12px;padding:.6rem 1rem;box-shadow:3px 3px 0 #ff3b3b}

/* kod rabatowy */
.pbpop-code{display:inline-flex;align-items:center;gap:.7rem;border:3px dashed #17121f;background:#fff6c2;border-radius:12px;padding:.5rem .6rem .5rem 1rem;margin:0 0 1.1rem;font-weight:700}
.pbpop-code b{font:400 1.3rem "Bungee",sans-serif;letter-spacing:.06em}
.pbpop-cp{font:800 .75rem "Rubik",sans-serif;background:#17121f;color:#fff;border:0;border-radius:8px;padding:.5rem .75rem;cursor:pointer}

/* styl 1: zółte okno z promieniami */
.pbpop--sun{text-align:center;padding:2.2rem 2rem 1.8rem;max-width:640px}
.pbpop--sun::before{content:"";position:absolute;left:50%;top:40%;width:260vmax;aspect-ratio:1;translate:-50% -50%;z-index:-1;background:repeating-conic-gradient(rgba(255,255,255,.38) 0 7.5deg,transparent 7.5deg 15deg);-webkit-mask-image:radial-gradient(circle,#000 4%,transparent 40%);mask-image:radial-gradient(circle,#000 4%,transparent 40%);pointer-events:none}
.pbpop-burst{--bs:polygon(50% 0,58% 10%,71% 4%,75% 17%,89% 17%,88% 31%,100% 37%,93% 49%,100% 61%,88% 67%,89% 82%,75% 83%,71% 96%,58% 90%,50% 100%,42% 90%,29% 96%,25% 83%,11% 82%,12% 67%,0 61%,7% 49%,0 37%,12% 31%,11% 17%,25% 17%,29% 4%,42% 10%);position:relative;width:150px;aspect-ratio:1;margin:.8rem auto .3rem;display:grid;place-items:center;filter:drop-shadow(5px 6px 0 #17121f);transform:rotate(-8deg)}
.pbpop-burst::before,.pbpop-burst::after{content:"";position:absolute;-webkit-clip-path:var(--bs);clip-path:var(--bs)}
.pbpop-burst::before{inset:-6px;background:#17121f}
.pbpop-burst::after{inset:0;background:radial-gradient(circle at 35% 28%,#ff6a5c,#ff3b3b 62%)}
.pbpop-burst b{position:relative;z-index:1;max-width:84%;font:400 2.6rem/1 "Bungee",sans-serif;color:#fff;-webkit-text-stroke:1.5px #17121f;paint-order:stroke fill;text-shadow:3px 3px 0 #17121f;overflow-wrap:anywhere}
.pbpop-burst.long b{font-size:1.5rem}
.pbpop--sun .pbpop-title{font-size:clamp(2rem,6vw,3.3rem);color:#fff;-webkit-text-stroke:3px #17121f;paint-order:stroke fill;text-shadow:5px 5px 0 #17121f;margin:.5rem 0 1.1rem;transform:rotate(-2deg);overflow-wrap:anywhere}
.pbpop--sun .pbpop-tag+.pbpop-title{margin-top:1rem}
.pbpop--sun .pbpop-lead{background:#fff;border:3px solid #17121f;border-radius:14px;box-shadow:5px 5px 0 #17121f;padding:.8rem 1.1rem;font-weight:500;line-height:1.45;max-width:46ch;margin:0 auto 1.1rem}
.pbpop--sun .pbpop-img{display:block;max-width:46%;max-height:170px;margin:.4rem auto .6rem;object-fit:contain;filter:drop-shadow(5px 6px 0 #17121f);transform:rotate(-4deg)}

/* styl 2: dzielone ze zdjęciem */
.pbpop--split{display:grid;grid-template-columns:1fr 1.05fr;background:#fff;overflow:auto}
.pbpop--split .pbpop-l{position:relative;background:var(--c1);padding:2rem 1.2rem;display:grid;place-items:center;min-height:380px;border-right:4px solid #17121f}
.pbpop--split .pbpop-l img{width:78%;max-height:310px;object-fit:contain;transform:rotate(-5deg);filter:drop-shadow(6px 7px 0 #17121f)}
.pbpop-bub{position:absolute;left:12px;top:16px;max-width:calc(100% - 24px);background:#fff;border:3px solid #17121f;border-radius:999px;padding:.35rem .9rem;font:400 .75rem/1.2 "Bungee",sans-serif;box-shadow:3px 3px 0 #17121f;transform:rotate(-4deg)}
.pbpop--split .pbpop-r{padding:2.2rem 1.8rem 1.8rem;background:var(--c2);position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.pbpop--split .pbpop-r::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(rgba(23,18,31,.14) 1.6px,transparent 1.8px);background-size:12px 12px}
.pbpop--split .pbpop-title{font-size:clamp(1.5rem,3.6vw,2.2rem);margin:.8rem 0 .7rem;background:#fff;border:3px solid #17121f;box-shadow:4px 4px 0 #17121f;border-radius:12px;padding:.5rem .7rem;display:inline-block;transform:rotate(-1.5deg);overflow-wrap:anywhere;color:#17121f}
.pbpop--split .pbpop-r>.pbpop-tag:first-child{margin-top:.2rem}
.pbpop--split .pbpop-lead{margin:.2rem 0 .9rem;font-weight:600;line-height:1.45}
.pbpop--split .pbpop-meter{width:100%;height:22px;border:3px solid #17121f;border-radius:99px;background:#fff;overflow:hidden}
.pbpop--split .pbpop-meter i{display:block;height:100%;background:repeating-linear-gradient(115deg,#ff3b3b 0 12px,#ff7a6b 12px 24px)}
.pbpop--split .pbpop-meta{width:100%;display:flex;justify-content:space-between;gap:.6rem;font-size:.8rem;font-weight:800;margin:.35rem 0 1.1rem}
.pbpop--split .pbpop-cd{width:100%;margin:.2rem 0 1rem}
.pbpop--split .pbpop-cdb{justify-content:flex-start}
.pbpop--split .pbpop-cdb div{min-width:54px;padding:.4rem .55rem}
.pbpop--split .pbpop-cdb b{font-size:1.4rem}
.pbpop--split .pbpop-code{margin:0 0 1rem}
.pbpop--split .pbpop-nope{margin:.9rem 0 0}
.pbpop--split .pbpop-x{background:#fff}

/* styl 3: produkt z koszykiem (układ jak „dzielone”, plus cena i przycisk dodania) */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pbpop--cart .pbpop-sale{position:absolute;right:14px;top:14px;width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:#ff3b3b;border:4px solid #17121f;box-shadow:4px 4px 0 #17121f;transform:rotate(10deg);animation:pbpop-wob 2.4s ease-in-out infinite}
.pbpop--cart .pbpop-sale b{font:400 1.25rem/1 "Bungee",sans-serif;color:#fff;-webkit-text-stroke:1px #17121f;paint-order:stroke fill;text-shadow:2px 2px 0 #17121f}
@keyframes pbpop-wob{0%,100%{rotate:0deg}50%{rotate:-6deg}}
.pbpop-price{width:100%;margin:.1rem 0 1rem;background:#fff;border:3px solid #17121f;border-radius:14px;box-shadow:4px 4px 0 #17121f;padding:.55rem .85rem .6rem;color:#17121f}
.pbpop-pr{display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem .8rem}
.pbpop-price .now{font:400 clamp(1.7rem,4vw,2.3rem)/1.1 "Bungee",sans-serif;letter-spacing:.01em}
.pbpop-price.is-sale .now{color:#ff3b3b;-webkit-text-stroke:1px #17121f;paint-order:stroke fill;text-shadow:2px 2px 0 #17121f}
.pbpop-price .was{font-size:1.05rem;font-weight:700;opacity:.65;text-decoration-thickness:2px}
.pbpop-price small{display:block;margin-top:.25rem;font-size:.72rem;font-weight:600;opacity:.75;line-height:1.3}
.pbpop-add{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;position:relative}
.pbpop-ic{width:22px;height:22px;flex:none;fill:#ffd83d;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pbpop-add.busy{pointer-events:none;opacity:.75}
.pbpop-add.busy .pbpop-ic{animation:pbpop-bump .5s ease-in-out infinite alternate}
@keyframes pbpop-bump{to{transform:translateX(5px) rotate(-8deg)}}
.pbpop-err{margin:.7rem 0 0;width:100%;background:#fff0f0;border:3px solid #ff3b3b;border-radius:10px;padding:.45rem .7rem;font-size:.85rem;font-weight:700;color:#8a1010}
.pbpop-err[hidden]{display:none}

/* okienko w rogu */
.pbpop-corner{position:fixed;right:22px;bottom:22px;z-index:99980;width:min(360px,calc(100% - 28px));background:#fff;border:4px solid #17121f;border-radius:20px;box-shadow:7px 7px 0 #17121f;padding:1.1rem 1.1rem 1rem;font-family:"Rubik",system-ui,sans-serif;color:#17121f;opacity:0;transform:translateY(20px) scale(.96);transition:opacity .3s,transform .35s cubic-bezier(.2,1.3,.4,1)}
.pbpop-corner.in{opacity:1;transform:none}
.pbpop-corner .row{display:flex;gap:.8rem;align-items:center;margin-bottom:.7rem}
.pbpop-coin{flex:none;width:68px;height:68px;background:url(playcoin.svg) center/contain no-repeat;animation:pbpop-wob 2.6s ease-in-out infinite;filter:drop-shadow(0 3px 0 rgba(23,18,31,.25))}
.pbpop-corner h3{font:400 1.15rem/1.15 "Bungee",sans-serif;margin:0 0 .2rem;padding:0;color:#17121f}
.pbpop-corner p{margin:0;font-size:.85rem;font-weight:500;line-height:1.35;color:#17121f}
.pbpop-corner form{display:flex;gap:.5rem;margin:0}
.pbpop-corner input{flex:1;min-width:0;height:auto;border:3px solid #17121f;border-radius:12px;padding:.6rem .7rem;font:500 .9rem "Rubik",sans-serif;background:#fff;color:#17121f;box-shadow:none}
.pbpop-corner input.bad{border-color:#ff3b3b;background:#fff0f0}
.pbpop-corner .go{flex:none;font:400 .85rem "Bungee",sans-serif;background:#ff3b3b;color:#fff;border:3px solid #17121f;border-radius:12px;padding:.5rem .8rem;box-shadow:3px 3px 0 #17121f;cursor:pointer}
.pbpop-corner .go:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #17121f}
.pbpop-corner .cx{position:absolute;right:-10px;top:-12px;width:32px;height:32px;padding:0;border-radius:50%;background:#ffd83d;border:3px solid #17121f;font:400 13px/1 "Bungee",sans-serif;color:#17121f;display:grid;place-items:center;cursor:pointer}

/* podgląd z panelu */
.pbpop-prev{position:fixed;left:50%;top:44px;translate:-50% 0;z-index:99999;background:#17121f;color:#fff;font:700 .78rem "Rubik",sans-serif;padding:.4rem .9rem;border-radius:999px}

@media (max-width:700px){
  .pbpop{border-radius:22px;box-shadow:6px 6px 0 #17121f}
  .pbpop--sun{padding:1.8rem 1.1rem 1.4rem}
  .pbpop-burst{width:112px;margin-top:.6rem}
  .pbpop-burst b{font-size:2rem}
  .pbpop-burst.long b{font-size:1.2rem}
  .pbpop--sun .pbpop-img{max-height:120px}
  .pbpop-cdb{gap:.4rem}
  .pbpop-cdb div{min-width:54px;padding:.4rem .5rem}
  .pbpop-cdb b{font-size:1.35rem}
  .pbpop--split{grid-template-columns:1fr}
  .pbpop--split .pbpop-l{min-height:0;height:210px;border-right:0;border-bottom:4px solid #17121f;padding:1.4rem 1rem}
  .pbpop--split .pbpop-l img{max-height:170px;width:auto;max-width:70%;margin-top:1.6rem}
  .pbpop--split .pbpop-r{padding:1.4rem 1.2rem 1.4rem}
  .pbpop--split .pbpop-title{font-size:1.45rem}
  .pbpop--cart .pbpop-sale{width:60px;height:60px;right:12px;top:auto;bottom:10px}
  .pbpop--cart .pbpop-sale b{font-size:1rem}
  .pbpop-corner{right:14px;left:14px;bottom:14px;width:auto}
}
@media (prefers-reduced-motion:reduce){
  .pbpop-ov,.pbpop,.pbpop-corner{transition:none}
  .pbpop{transform:none}
  .pbpop--cart .pbpop-sale,.pbpop-add.busy .pbpop-ic{animation:none}
}
