/* Dorszolandia v24.19 Games Hub — scoped to /gry only */
body.page-gry .games-hub{padding:54px 0 86px;background:linear-gradient(180deg,#f5fdff 0%,#e9f9fc 48%,#f7fbff 100%)}
body.page-gry .games-hub .wrap{max-width:1420px}
body.page-gry .games-passport{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin:0 0 28px}
body.page-gry .passport-card,body.page-gry .mission-card{position:relative;overflow:hidden;border:1px solid rgba(7,57,95,.1);border-radius:28px;box-shadow:0 18px 55px rgba(5,58,91,.12)}
body.page-gry .passport-card{padding:24px 26px;background:linear-gradient(135deg,#062f50 0%,#087fac 62%,#19abc7 100%);color:#fff}
body.page-gry .passport-card:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:-70px;top:-90px;border:22px solid rgba(255,255,255,.08);box-shadow:0 0 0 26px rgba(255,255,255,.035)}
body.page-gry .passport-kicker{font-size:.72rem;font-weight:1000;letter-spacing:.12em;text-transform:uppercase;color:#99eff7}
body.page-gry .passport-title{display:flex;align-items:flex-end;gap:12px;margin:6px 0 10px}
body.page-gry .passport-title strong{font-size:clamp(1.7rem,3vw,2.65rem);line-height:1}
body.page-gry .passport-title span{font-weight:900;color:#ffe98a;padding-bottom:3px}
body.page-gry .passport-progress{height:14px;border-radius:999px;background:rgba(255,255,255,.18);overflow:hidden;margin:16px 0 10px}
body.page-gry .passport-progress>i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#ffe66d,#ffb12e);transition:width .35s ease}
body.page-gry .passport-note{margin:0;color:#daf7fb;font-size:.84rem;line-height:1.45}
body.page-gry .mission-card{display:grid;grid-template-columns:150px 1fr;background:#fff;min-height:176px}
body.page-gry .mission-art{position:relative;overflow:hidden;background:#0b7fa7}
body.page-gry .mission-art img{width:100%;height:100%;object-fit:cover;display:block}
body.page-gry .mission-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(4,44,77,.1))}
body.page-gry .mission-copy{padding:20px 22px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
body.page-gry .mission-copy .mini{font-size:.68rem;font-weight:1000;letter-spacing:.11em;text-transform:uppercase;color:#087fac}
body.page-gry .mission-copy h3{margin:5px 0 7px;color:#07395f;font-size:1.25rem}
body.page-gry .mission-copy p{margin:0 0 12px;color:#587387;font-size:.84rem;line-height:1.45}
body.page-gry .mission-copy button{border:0;border-radius:999px;padding:10px 16px;background:#ffd75b;color:#07395f;font-weight:1000;cursor:pointer}

body.page-gry .discovery-strip{display:grid;grid-template-columns:210px 1fr;gap:16px;align-items:center;padding:16px 18px;margin:0 0 26px;background:rgba(255,255,255,.86);border:1px solid rgba(7,57,95,.09);border-radius:24px;box-shadow:0 12px 36px rgba(5,58,91,.08)}
body.page-gry .discovery-copy b{display:block;color:#07395f;font-size:1rem}
body.page-gry .discovery-copy span{display:block;color:#6a8192;font-size:.75rem;margin-top:4px;line-height:1.35}
body.page-gry .discovery-list{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
body.page-gry .discovery{min-width:0;border-radius:16px;background:#eef9fb;border:1px solid #d5edf1;padding:7px;text-align:center;position:relative;overflow:hidden}
body.page-gry .discovery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:11px;background:#c9f3f8;display:block}
body.page-gry .discovery span{display:block;margin-top:5px;font-size:.62rem;font-weight:900;color:#234d65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.page-gry .discovery.locked img{filter:grayscale(1) blur(2px);opacity:.28}
body.page-gry .discovery.locked:after{content:"?";position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);font-size:1.35rem;font-weight:1000;color:#496c7f}
body.page-gry .discovery.locked span{color:#90a3ae}

body.page-gry .games-section-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin:0 0 20px}
body.page-gry .games-section-head h2{margin:3px 0 0;color:#07395f;font-size:clamp(1.8rem,3vw,2.6rem)}
body.page-gry .games-section-head p{max-width:560px;margin:0;color:#5d7688;line-height:1.55}
body.page-gry .games-grid-v25{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body.page-gry .game-card-v25{background:#fff;border:1px solid rgba(7,57,95,.09);border-radius:26px;overflow:hidden;box-shadow:0 14px 40px rgba(5,58,91,.1);transition:transform .18s ease,box-shadow .18s ease;min-width:0}
body.page-gry .game-card-v25:hover{transform:translateY(-4px);box-shadow:0 20px 52px rgba(5,58,91,.15)}
body.page-gry .game-card-v25 .game-art{height:178px;position:relative;overflow:hidden;background:#087fac}
body.page-gry .game-card-v25 .game-art img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
body.page-gry .game-card-v25:hover .game-art img{transform:scale(1.035)}
body.page-gry .game-card-v25 .game-art:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,31,54,.02) 35%,rgba(4,31,54,.68) 100%)}
body.page-gry .game-labels{position:absolute;z-index:2;left:14px;right:14px;bottom:12px;display:flex;justify-content:space-between;gap:8px;align-items:end}
body.page-gry .game-labels span{background:rgba(255,255,255,.92);color:#07395f;border-radius:999px;padding:6px 9px;font-size:.62rem;font-weight:1000;box-shadow:0 4px 14px rgba(0,0,0,.12)}
body.page-gry .game-labels b{color:#fff;font-size:.7rem;text-shadow:0 2px 8px rgba(0,0,0,.4);text-align:right}
body.page-gry .game-body{padding:18px}
body.page-gry .game-title-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
body.page-gry .game-title-row h3{margin:0;color:#07395f;font-size:1.18rem;line-height:1.15}
body.page-gry .game-shells{white-space:nowrap;font-size:.88rem;letter-spacing:1px;filter:saturate(1.1)}
body.page-gry .game-desc{color:#617b8c;font-size:.82rem;line-height:1.45;min-height:2.4em;margin:7px 0 12px}
body.page-gry .record-line{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding:8px 10px;border-radius:12px;background:#f1fafc;color:#315e76;font-size:.72rem;font-weight:900}
body.page-gry .record-line strong{color:#07395f}
body.page-gry .game-stage{border:1px solid #dceff3;border-radius:18px;background:#f8fdfe;padding:11px;overflow:hidden}
body.page-gry .game-status{min-height:1.35em;margin:10px 2px 8px;color:#315e76;font-size:.78rem;font-weight:900}
body.page-gry .game-action{width:100%;border:0;border-radius:14px;padding:11px 14px;background:linear-gradient(180deg,#ffdb63,#ffc938);color:#07395f;font-weight:1000;cursor:pointer;box-shadow:0 6px 14px rgba(183,127,0,.18)}
body.page-gry .game-action:hover{filter:brightness(1.03)}
body.page-gry .game-action:focus-visible,body.page-gry .game-card-v25 button:focus-visible{outline:3px solid #ffd75b;outline-offset:3px}

/* Flagship challenge */
body.page-gry .flagship-game{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);background:linear-gradient(145deg,#062f50,#087fac);color:#fff;border:0}
body.page-gry .flagship-game .flagship-copy{padding:26px 28px 26px 28px;display:flex;flex-direction:column;justify-content:center}
body.page-gry .flagship-game .flagship-copy .flag{display:inline-flex;align-self:flex-start;border-radius:999px;padding:6px 10px;background:#ffd75b;color:#07395f;font-size:.66rem;font-weight:1000;letter-spacing:.06em;text-transform:uppercase}
body.page-gry .flagship-game .flagship-copy h3{font-size:clamp(1.65rem,3vw,2.35rem);color:#fff;margin:10px 0 6px}
body.page-gry .flagship-game .flagship-copy p{margin:0 0 12px;color:#d9f4f8;line-height:1.5;max-width:620px}
body.page-gry .flagship-game .record-line{background:rgba(255,255,255,.11);color:#d8f4f8;max-width:430px}
body.page-gry .flagship-game .record-line strong{color:#ffe471}
body.page-gry .flagship-game .game-shells{font-size:1rem;margin-bottom:14px}
body.page-gry .flagship-stage-wrap{padding:18px}
body.page-gry .chase-field{height:330px;border-radius:22px;position:relative;overflow:hidden;background-image:linear-gradient(rgba(1,46,80,.18),rgba(1,46,80,.38)),url('../assets/world/life/zamek-dorszolandii.webp');background-size:cover;background-position:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
body.page-gry .chase-field:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 16% 22%,rgba(255,255,255,.16) 0 8px,transparent 9px),radial-gradient(circle at 83% 13%,rgba(255,255,255,.13) 0 5px,transparent 6px),radial-gradient(circle at 68% 45%,rgba(255,255,255,.11) 0 7px,transparent 8px)}
body.page-gry .chase-player{position:absolute;left:50%;bottom:8px;width:82px;height:82px;object-fit:contain;transform:translateX(-50%);filter:drop-shadow(0 8px 8px rgba(0,0,0,.25));z-index:4;transition:left .08s linear}
body.page-gry .chase-item{position:absolute;top:-54px;width:48px;height:48px;border:0;border-radius:50%;z-index:3;display:grid;place-items:center;box-shadow:0 8px 16px rgba(0,0,0,.18);animation:chaseFall linear forwards}
body.page-gry .chase-item.gold{background:radial-gradient(circle at 35% 30%,#fff9bf,#ffd746 42%,#f49b17 82%);border:3px solid rgba(255,255,255,.85)}
body.page-gry .chase-item.gold img{width:30px;height:30px;object-fit:contain}
body.page-gry .chase-item.bad{background:radial-gradient(circle at 35% 30%,#91efff,#1a9fc4 55%,#086a94);border:3px solid rgba(255,255,255,.65)}
body.page-gry .chase-item.bad:after{content:"×";font-size:1.6rem;font-weight:1000;color:#07395f}
@keyframes chaseFall{to{transform:translateY(395px)}}
body.page-gry .chase-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
body.page-gry .chase-controls button{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.93);border-radius:13px;padding:10px;font-size:1rem;font-weight:1000;color:#07395f;cursor:pointer}

/* Memory */
body.page-gry .memory-v25{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
body.page-gry .mem-v25{position:relative;aspect-ratio:1;border:0;border-radius:12px;background:linear-gradient(145deg,#087fac,#075680);padding:0;overflow:hidden;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
body.page-gry .mem-v25:before{content:"?";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:1.25rem;font-weight:1000;background:radial-gradient(circle at 50% 36%,rgba(255,255,255,.14),transparent 42%)}
body.page-gry .mem-v25 .mem-face{position:absolute;inset:0;display:grid;grid-template-rows:1fr auto;background:#eefbfc;opacity:0;transform:scale(.82);transition:.18s ease}
body.page-gry .mem-v25 .mem-face img{width:100%;height:100%;object-fit:cover;min-height:0}
body.page-gry .mem-v25 .mem-face small{font-size:.48rem;line-height:1.05;font-weight:900;color:#07395f;padding:3px;background:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.page-gry .mem-v25.open .mem-face,body.page-gry .mem-v25.done .mem-face{opacity:1;transform:scale(1)}
body.page-gry .mem-v25.done{box-shadow:0 0 0 2px #ffd75b}

/* Quiz */
body.page-gry .quiz-question{min-height:52px;margin:0 0 8px;color:#07395f;font-weight:1000;line-height:1.35}
body.page-gry .quiz-answers{display:grid;gap:6px}
body.page-gry .quiz-answers button{border:1px solid #d8eaef;background:#fff;border-radius:11px;padding:9px 10px;color:#204a62;font-weight:850;text-align:left;cursor:pointer}
body.page-gry .quiz-answers button:hover{background:#eefafd}
body.page-gry .quiz-answers button.good{background:#dcf6df;border-color:#8ecb95}
body.page-gry .quiz-answers button.bad{background:#ffebea;border-color:#e7aaa7}

/* Treasure */
body.page-gry .treasure-field-v25{height:220px;border-radius:15px;position:relative;overflow:hidden;background-image:linear-gradient(rgba(3,77,108,.12),rgba(3,77,108,.28)),url('../assets/world/life/zatoka-tajemnic.webp');background-size:cover;background-position:center}
body.page-gry .treasure-v25,body.page-gry .badbubble-v25{position:absolute;border:0;background:transparent;cursor:pointer;padding:0;transform:translate(-50%,-50%)}
body.page-gry .treasure-v25 img{width:45px;height:45px;object-fit:contain;filter:drop-shadow(0 6px 5px rgba(0,0,0,.28))}
body.page-gry .badbubble-v25{width:42px;height:42px;border-radius:50%;background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.85),rgba(87,221,241,.42) 36%,rgba(5,137,177,.38) 68%,rgba(4,82,119,.48));border:2px solid rgba(255,255,255,.65);box-shadow:0 5px 12px rgba(0,76,108,.18)}

/* Map puzzle */
body.page-gry .map-puzzle-v25{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;aspect-ratio:1;border-radius:14px;overflow:hidden;background:#0a789e;padding:4px}
body.page-gry .map-tile{border:0;border-radius:7px;background-image:url('../assets/world/mapa-premium-12-lokacji.webp');background-repeat:no-repeat;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);min-width:0}
body.page-gry .map-tile.blank{background-image:none;background-color:#07395f;opacity:.42;cursor:default;box-shadow:none}

/* Simon */
body.page-gry .simon-v25{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;border-radius:15px;background-image:linear-gradient(rgba(3,52,83,.4),rgba(3,52,83,.4)),url('../assets/world/life/smocza-grota.webp');background-size:cover;background-position:center}
body.page-gry .simon-v25 button{height:78px;border:1px solid rgba(255,255,255,.55);border-radius:14px;background:rgba(255,255,255,.88);display:grid;place-items:center;cursor:pointer;transition:.15s ease}
body.page-gry .simon-v25 button img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 4px 4px rgba(0,0,0,.15))}
body.page-gry .simon-v25 button.flash{background:#ffe46d;transform:scale(.96);box-shadow:0 0 0 4px rgba(255,228,109,.3)}

/* Goalkeeper */
body.page-gry .goal-field-v25{height:220px;border-radius:15px;position:relative;overflow:hidden;background-image:linear-gradient(rgba(2,53,82,.12),rgba(2,53,82,.28)),url('../assets/world/life/pletwa-arena.webp');background-size:cover;background-position:center}
body.page-gry .goal-field-v25:after{content:"";position:absolute;left:9%;right:9%;bottom:7%;height:47%;border:4px solid rgba(255,255,255,.8);border-bottom-width:6px;border-radius:8px 8px 2px 2px;box-shadow:0 0 0 1px rgba(7,57,95,.2);z-index:1}
body.page-gry .goalie-v25{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);width:82px;height:82px;object-fit:contain;z-index:2;filter:drop-shadow(0 6px 6px rgba(0,0,0,.26))}
body.page-gry .goalball-v25{position:absolute;z-index:4;width:44px;height:44px;border:0;background:transparent;padding:0;cursor:pointer;transition:left .16s ease,top .62s cubic-bezier(.22,.61,.36,1),transform .16s ease;overflow:hidden;border-radius:50%}
body.page-gry .goalball-v25 img{width:166%;height:166%;max-width:none;object-fit:cover;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);filter:drop-shadow(0 5px 4px rgba(0,0,0,.25))}
body.page-gry .goalball-v25.saved{transform:scale(1.35) rotate(25deg)}

body.page-gry .games-footnote{margin-top:24px;padding:14px 18px;border-radius:18px;background:#e9f8fb;color:#466d82;font-size:.76rem;line-height:1.5;border:1px solid #d0edf3}

@media(max-width:1050px){
  body.page-gry .games-passport{grid-template-columns:1fr}
  body.page-gry .games-grid-v25{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.page-gry .flagship-game{grid-template-columns:1fr;grid-column:1/-1}
  body.page-gry .discovery-strip{grid-template-columns:1fr}
}
@media(max-width:700px){
  body.page-gry .games-hub{padding:38px 0 70px}
  body.page-gry .passport-card{padding:20px}
  body.page-gry .mission-card{grid-template-columns:108px 1fr;min-height:150px}
  body.page-gry .mission-copy{padding:15px}
  body.page-gry .games-section-head{display:block}
  body.page-gry .games-section-head p{margin-top:8px}
  body.page-gry .games-grid-v25{grid-template-columns:1fr}
  body.page-gry .flagship-game{grid-column:auto}
  body.page-gry .flagship-game .flagship-copy{padding:22px 20px}
  body.page-gry .flagship-stage-wrap{padding:12px}
  body.page-gry .chase-field{height:285px}
  body.page-gry .discovery-list{grid-template-columns:repeat(4,1fr)}
  body.page-gry .game-card-v25 .game-art{height:165px}
}
@media(prefers-reduced-motion:reduce){
  body.page-gry .game-card-v25,body.page-gry .game-card-v25 .game-art img,body.page-gry .passport-progress>i,body.page-gry .chase-player{transition:none}
}
