/* Ragpaw Games - strona studia, kierunek kinowy.
   Układ: hero jako ciemna scena z wielką łapką-padem w świetle, potem każda gra jako
   scena na całą szerokość z własnym światem, cichy koniec i stopka.
   Jeden, celowo ciemny motyw (rama studia ma pomieścić i grę imprezową, i horror). */

@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo2-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --night: oklch(0.155 0.025 268);
  --night-2: oklch(0.2 0.04 266);
  --ink: oklch(0.94 0.03 80);          /* krem marki #f3e6d3 */
  --ink-soft: oklch(0.86 0.025 80);
  --blue: oklch(0.53 0.17 264);        /* #2f5fd0 */
  --blue-hi: oklch(0.63 0.16 264);     /* #4a7bea */
  --tnaw: oklch(0.7 0.2 350);          /* róż z planszy That's Not a Word! */
  --tank: oklch(0.84 0.11 210);        /* lód z TankShot */
  --font-display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-trail: 1; --z-content: 2; --z-grain: 3; --z-header: 4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--font-body); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 4px; border-radius: 6px; }

/* Warstwy nad całą stroną */
.paw-trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: var(--z-trail); }
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: var(--z-grain); opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }
main, footer { position: relative; z-index: var(--z-content); }

/* Nagłówek */
.top { position: fixed; inset: 0 0 auto; z-index: var(--z-header); padding-top: env(safe-area-inset-top, 0px); transition: background .4s var(--ease-out); }
.top.solid { background: oklch(0.155 0.025 268 / 0.86); }
.top-in { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: inline-flex; border-radius: 8px; }
.brand img { height: 40px; width: auto; }
.nav-link {
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink-soft);
  padding: 9px 16px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: oklch(1 0 0 / 0.07); }

h1, h2 { font-family: var(--font-display); font-weight: 800; margin: 0; text-wrap: balance; }

/* Hero: ekran startowy - ściana klatek z gier w perspektywie, logo i Press start */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; background: var(--night); }
.wall { position: absolute; inset: 0; z-index: -3; perspective: 1400px; overflow: hidden; }
.wall-tilt {
  position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6vmax;
  transform: translate(-50%, -50%) rotateX(calc(26deg + var(--ty, 0deg))) rotateZ(-16deg) rotateY(var(--tx, 0deg));
  transform-style: preserve-3d; transition: transform 1.4s var(--ease-out);
}
.col { display: flex; flex-direction: column; gap: 1.6vmax; animation: wall-up calc(70s + var(--d) * 9s) linear infinite; }
.col:nth-child(even) { animation-name: wall-down; }
.col img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1vmax; filter: saturate(1.05) brightness(.78); box-shadow: 0 1vmax 3vmax oklch(0 0 0 / 0.5); }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 0.8vmax)); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - 0.8vmax)); } to { transform: translateY(0); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 52% 46% at 50% 50%, oklch(0.13 0.03 268 / 0.86) 0%, oklch(0.13 0.03 268 / 0.5) 58%, oklch(0.13 0.03 268 / 0.12) 100%),
    linear-gradient(180deg, oklch(0.13 0.03 268 / 0.9) 0%, transparent 22%, transparent 70%, var(--night) 100%),
    oklch(0.32 0.12 266 / 0.2);
}
.flash { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 50%, oklch(0.97 0.03 90), oklch(0.63 0.16 264 / 0.8) 40%, transparent 75%); opacity: 0; pointer-events: none; }
.hero.started .flash { animation: flash .9s var(--ease-out); }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .9; } 100% { opacity: 0; } }

.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 120px 100px; }
.lockup { margin: 0; line-height: 0; }
.lockup-svg { height: clamp(96px, 15vw, 200px); width: auto; max-width: 100%; overflow: visible; filter: drop-shadow(0 18px 40px oklch(0.4 0.17 264 / 0.55)); }
.lockup-svg .ic-main, .lockup-svg .ic-dpad, .lockup-svg .ic-btn { transform-box: fill-box; }
.lockup-svg .ic-main { transform-origin: 50% 100%; }
.lockup-svg .ic-dpad, .lockup-svg .ic-btn { transform-origin: center; transition: fill .2s, filter .2s; }
.lockup-svg .ic-btn.blink { fill: oklch(0.93 0.13 95); filter: drop-shadow(0 0 10px oklch(0.93 0.13 95 / 0.9)); }
.lockup-svg .ic-main:first-child { animation: pad-in .9s var(--ease-out) both; }
.lockup-svg .ic-main:nth-child(n+7) { animation: toe-in .7s var(--ease-out) both; }
.lockup-svg .ic-main:nth-child(7) { animation-delay: .25s; } .lockup-svg .ic-main:nth-child(8) { animation-delay: .33s; }
.lockup-svg .ic-main:nth-child(9) { animation-delay: .41s; } .lockup-svg .ic-main:nth-child(10) { animation-delay: .49s; }
@keyframes pad-in { 0% { transform: scale(1.12, .8); } 55% { transform: scale(.96, 1.05); } 100% { transform: none; } }
@keyframes toe-in { 0% { transform: translateY(-60%); } 70% { transform: translateY(6%); } 100% { transform: none; } }
.hero.started .lockup { animation: start-pop .6s var(--ease-out); }
@keyframes start-pop { 0% { transform: scale(1); } 30% { transform: scale(1.06); } 100% { transform: scale(1); } }

.hero-line { margin: clamp(26px, 4vh, 40px) 0 0; font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-soft); }
.press-start {
  margin-top: clamp(30px, 5vh, 52px); display: inline-flex; align-items: center; gap: 12px;
  appearance: none; border: 0; cursor: pointer; font: inherit; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(17px, 1.6vw, 20px); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  padding: 15px 28px 13px; border-radius: 999px; background: oklch(0.13 0.03 268 / 0.55);
  box-shadow: inset 0 0 0 2px oklch(0.94 0.03 80 / 0.22);
  transition: background .25s, box-shadow .25s, transform .35s var(--ease-out);
}
.press-start:hover { background: var(--blue); box-shadow: inset 0 0 0 2px var(--blue-hi), 0 14px 40px -12px oklch(0.53 0.17 264 / 0.9); transform: translateY(-2px); }
.ps-dot { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.93 0.13 95); box-shadow: 0 0 12px oklch(0.93 0.13 95); animation: blink 1.1s steps(2, jump-none) infinite; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .15; } }
.top .brand { transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
body.at-hero .top .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }

/* Sceny gier */
.scene {
  --e: 1; --p: .5;
  position: relative; min-height: 96svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.scene-media {
  position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #08090e;
  clip-path: inset(calc((1 - var(--e)) * 7%) calc((1 - var(--e)) * 7%) round calc((1 - var(--e)) * 40px));
}
.scene-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.14 - var(--p) * 0.1)) translateY(calc((var(--p) - 0.5) * -4%));
  transition: opacity 1.6s ease;
}
.scene-media .alt { opacity: 0; }
.scene.show-alt .scene-media .alt { opacity: 1; }
.scene-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, oklch(0.12 0.03 268 / 0.96) 0%, oklch(0.12 0.03 268 / 0.82) 26%, oklch(0.12 0.03 268 / 0.15) 62%, oklch(0.12 0.03 268 / 0.55) 100%),
    linear-gradient(90deg, oklch(0.12 0.03 268 / 0.7) 0%, transparent 60%);
}
.scene-in { padding-block: 140px clamp(56px, 10vh, 120px); transform: translateY(calc((1 - var(--e)) * 60px)); }
.scene-lead { margin: 26px 0 0; font-size: clamp(18px, 1.7vw, 21px); max-width: 44ch; color: var(--ink); text-wrap: pretty; }
.scene-meta { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 15px; color: var(--ink-soft); }
.status {
  font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--night);
  background: var(--accent, var(--ink)); padding: 5px 12px; border-radius: 999px; margin-right: 4px;
}

/* That's Not a Word!: tytuł z płytek jak w grze */
.scene-tnaw { --accent: var(--tnaw); }
.tnaw-title { display: flex; flex-direction: column; gap: clamp(6px, .8vw, 10px); font-size: 0; }
.tile-row { display: flex; flex-wrap: wrap; gap: clamp(6px, .8vw, 10px) clamp(14px, 1.8vw, 24px); }
.word { display: inline-flex; flex-wrap: nowrap; gap: clamp(4px, .55vw, 8px); }
.tile {
  --c: oklch(0.6 0.19 25);
  position: relative; display: inline-grid; place-items: center;
  width: clamp(40px, 6.2vw, 84px); height: clamp(42px, 6.6vw, 88px);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4.3vw, 58px); line-height: 1; color: #fff;
  padding-top: .08em;
  background: var(--c); border-radius: clamp(8px, 1vw, 14px);
  box-shadow: inset 0 -0.14em 0 oklch(0 0 0 / 0.28), inset 0 .07em 0 oklch(1 0 0 / 0.28), 0 .14em .3em oklch(0 0 0 / 0.4);
  text-shadow: 0 .04em 0 oklch(0 0 0 / 0.3);
  transform: rotate(calc(var(--r, 0) * 1deg));
  transition: transform .45s var(--ease-out);
}
.tile sub { position: absolute; right: .3em; bottom: .26em; font-size: .3em; font-weight: 700; line-height: 1; opacity: .9; }
.tile:nth-child(odd) { --r: -2; }
.tile:nth-child(3n) { --r: 2.5; }
.t-red { --c: oklch(0.6 0.2 25); } .t-orange { --c: oklch(0.72 0.17 58); } .t-green { --c: oklch(0.62 0.16 148); }
.t-blue { --c: oklch(0.58 0.17 258); } .t-yellow { --c: oklch(0.8 0.15 92); }
.tile:hover { transform: translateY(-14%) rotate(calc(var(--r, 0) * -1.5deg)); }
.scene.enter .tile { animation: tile-drop .9s var(--ease-out) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes tile-drop { from { transform: translateY(-36%) rotate(calc(var(--r, 0) * 4deg)); } to { transform: rotate(calc(var(--r, 0) * 1deg)); } }

/* TankShot.io: tytuł z torem pocisku */
.scene-tank { --accent: var(--tank); }
.tank-title { position: relative; font-size: clamp(54px, 9vw, 96px); line-height: .95; color: var(--tank); letter-spacing: -0.01em; padding-top: .5em; }
.tank-title .io { color: var(--ink); }
.arc { position: absolute; left: .1em; top: -.1em; width: 4.2em; height: 1.25em; overflow: visible; pointer-events: none; }
.arc-path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; vector-effect: non-scaling-stroke; opacity: .85; }
.arc-hit { fill: oklch(0.88 0.14 80); filter: drop-shadow(0 0 10px oklch(0.88 0.14 80)); }
.scene-tank.enter .arc-path { animation: arc-draw 1.6s var(--ease-out) both; }
.scene-tank.enter .arc-hit { animation: arc-hit 1.6s var(--ease-out) both; }
@keyframes arc-draw { from { stroke-dashoffset: 520; opacity: 0; } 15% { opacity: .85; } to { stroke-dashoffset: 0; } }
@keyframes arc-hit { 0%, 78% { transform: scale(0); opacity: 0; } 86% { transform: scale(2.4); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.arc-hit { transform-box: fill-box; transform-origin: center; }

/* Następna gra bez zapowiedzi: sam znak zapytania (TBA) */
.scene-tba {
  --accent: var(--ink-soft); min-height: 82svh;
  background: radial-gradient(48% 62% at 70% 46%, oklch(0.53 0.17 264 / 0.2), transparent 72%), var(--night);
}
.tba-mark {
  position: absolute; z-index: -1; right: clamp(24px, 12vw, 220px); top: 50%;
  transform: translateY(-50%) scale(calc(0.82 + var(--e) * 0.18)) rotate(calc(10deg - var(--e) * 4deg));
  font-family: var(--font-display); font-weight: 800; line-height: .9;
  font-size: clamp(240px, 34vw, 480px); color: var(--blue-hi);
  text-shadow: 0 0 90px oklch(0.63 0.16 264 / 0.55), 0 0 24px oklch(0.63 0.16 264 / 0.35);
  opacity: calc(0.25 + var(--e) * 0.75);
}
.tba-mark span { display: block; animation: tba-float 7s ease-in-out infinite; }
@keyframes tba-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3%) rotate(-3deg); } }
.tba-title { margin: 0; font-size: clamp(54px, 9vw, 96px); line-height: .95; color: var(--ink); letter-spacing: -0.01em; }

/* Linki do X i Discorda: dopóki href="#", nie pokazujemy ich wcale (razem z zaproszeniem do obserwowania) */
[data-social][href="#"] { display: none; }
.outro:not(:has(.follow a:not([href="#"]))) :is(.outro-sub, .follow) { display: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.social {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink-soft); transition: color .2s, background .2s, transform .3s var(--ease-out);
}
.social svg { width: 18px; height: 18px; }
.social:hover { color: var(--ink); background: oklch(1 0 0 / 0.08); transform: translateY(-1px); }

/* Koniec */
.outro { position: relative; padding: clamp(110px, 18vh, 180px) 24px clamp(90px, 14vh, 150px); text-align: center; overflow: hidden; }
.outro > p:not(.outro-sub) { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); color: var(--ink); }
.outro-sub { margin: 10px 0 0; color: var(--ink-soft); }
.follow { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Przyciski: .btn niebieski, .btn-ring obwódka, .btn-quiet ciche tło */
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.3;
  padding: 14px 24px; border-radius: 999px; color: var(--ink); background: var(--blue);
  box-shadow: 0 12px 34px -12px oklch(0.53 0.17 264 / 0.9);
  transition: transform .35s var(--ease-out), background .25s, box-shadow .25s;
}
.btn:hover { background: var(--blue-hi); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ring { background: none; box-shadow: inset 0 0 0 2px oklch(0.94 0.03 80 / 0.25); }
.btn-quiet { background: oklch(1 0 0 / 0.08); box-shadow: none; }
.btn-ring:hover, .btn-quiet:hover { background: oklch(1 0 0 / 0.13); }
.outro-trail { position: relative; height: 120px; width: min(560px, 92%); margin: 0 auto 30px; }
.outro-trail i {
  position: absolute; width: 30px; height: 30px; left: calc(var(--k) * 17%); top: calc(70px - var(--k) * 11px + var(--s) * 13px);
  background: url("../img/paw-print.svg") center / contain no-repeat;
  transform: rotate(72deg); opacity: calc(0.62 - var(--k) * 0.11);
}
.outro-trail i:nth-child(1) { --k: 0; --s: -1; } .outro-trail i:nth-child(2) { --k: 1; --s: 1; } .outro-trail i:nth-child(3) { --k: 2; --s: -1; }
.outro-trail i:nth-child(4) { --k: 3; --s: 1; } .outro-trail i:nth-child(5) { --k: 4; --s: -1; } .outro-trail i:nth-child(6) { --k: 5; --s: 1; }

/* Stopka */
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; padding-block: 28px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--ink-soft); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { width: 22px; height: 22px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav a { text-decoration: none; padding-block: 4px; transition: color .2s; }
.foot-nav a:hover { color: var(--ink); }

/* Ikony: zestaw <symbol> na początku każdej strony, użycie <svg class="ico"><use href="#i-..."></svg> */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; flex: none; }

/* Gdzie zagrać: platformy przy grze. Przed premierą same nazwy, po premierze linki do sklepów (a.platform) */
.where { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.where-label { font-size: 14px; color: var(--ink-soft); margin-right: 2px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.platform {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 7px 14px 7px 12px; border-radius: 999px; background: oklch(1 0 0 / 0.08);
}
.platform .ico { width: 16px; height: 16px; opacity: .85; }
a.platform { background: oklch(1 0 0 / 0.15); transition: background .2s, color .2s, transform .3s var(--ease-out); }
a.platform:hover { background: var(--accent); color: var(--night); transform: translateY(-1px); }
.btn.get { background: var(--accent); color: var(--night); box-shadow: none; }
.btn.get:hover { filter: brightness(1.08); }
.kit-link {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; padding: 7px 2px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; transition: color .2s;
}
.kit-link .ico { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.kit-link:hover { color: var(--accent); }
.kit-link:hover .ico { transform: translateX(3px); }
.nav-link[aria-current="page"] { color: var(--ink); background: oklch(1 0 0 / 0.07); }

/* ---------- Podstrony: press kit i polityka prywatności ---------- */
.page-head { padding-block: clamp(130px, 19vh, 190px) clamp(36px, 6vh, 64px); }
.page-title { font-size: clamp(56px, 9vw, 96px); line-height: .95; letter-spacing: -0.01em; }
.page-lead { margin: 24px 0 0; max-width: 50ch; font-size: clamp(18px, 1.8vw, 22px); text-wrap: pretty; }
.page-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.page-note { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }
.zip-size { font-weight: 500; font-size: 14px; opacity: .8; }
.mail {
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: oklch(0.94 0.03 80 / 0.35); transition: text-decoration-color .2s;
}
.mail:hover { text-decoration-color: var(--blue-hi); }
.jump { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; background: oklch(1 0 0 / 0.06); transition: color .2s, background .2s;
}
.jump a:hover { color: var(--ink); background: oklch(1 0 0 / 0.12); }

/* Taśma klatek pod nagłówkiem press kitu */
.reel {
  margin: clamp(30px, 6vh, 60px) -6vw 0; padding-block: 12px; overflow: hidden; transform: rotate(-2deg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.reel-track { display: flex; width: max-content; animation: reel 90s linear infinite; }
.reel img {
  width: clamp(190px, 21vw, 300px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-right: 14px;
  border-radius: 12px; filter: brightness(.82) saturate(1.05);
}
@keyframes reel { to { transform: translateX(-50%); } }

/* Gra w press kicie */
.kit-game { margin-top: clamp(80px, 12vh, 140px); scroll-margin-top: 40px; }
.kit-banner { position: relative; isolation: isolate; min-height: clamp(340px, 66vh, 700px); display: flex; align-items: flex-end; overflow: hidden; }
.kit-banner > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.kit-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, var(--night) 0%, oklch(0.155 0.025 268 / 0.75) 28%, transparent 68%),
              linear-gradient(90deg, oklch(0.155 0.025 268 / 0.55) 0%, transparent 55%);
}
.kit-banner .wrap { padding-bottom: clamp(20px, 4vh, 44px); }
.kit-title { font-size: clamp(44px, 7.5vw, 88px); line-height: .95; letter-spacing: -0.01em; color: var(--accent); }
.kit-tagline { margin: 16px 0 0; max-width: 46ch; font-size: clamp(18px, 1.7vw, 21px); text-wrap: pretty; }
.kit-body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start;
  margin-block: clamp(34px, 6vh, 60px);
}
.facts {
  margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 26px;
  padding: 28px 30px; border-radius: 22px; background: var(--night-2); font-size: 16px; line-height: 1.5;
}
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; }
.kit-copy h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.kit-copy h3:not(:first-child) { margin-top: 34px; }
.kit-copy p { margin: 0 0 14px; max-width: 62ch; text-wrap: pretty; }
.kit-copy ul { margin: 0; padding-left: 1.15em; max-width: 62ch; }
.kit-copy li + li { margin-top: 7px; }
.kit-copy li::marker { color: var(--accent); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shots-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #08090e; }
.shots-6 > .shot:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.shot:hover img { transform: scale(1.03); }
.shot-tag {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: oklch(0.155 0.025 268 / 0.85);
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .3s var(--ease-out);
}
.shot-tag .ico { width: 15px; height: 15px; }
.shot:hover .shot-tag, .shot:focus-visible .shot-tag { opacity: 1; transform: none; }
@media (hover: none) { .shot-tag { opacity: 1; transform: none; } }
.kit-downloads { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Studio i logo */
.kit-section { margin-top: clamp(100px, 15vh, 160px); scroll-margin-top: 90px; }
.kit-h2 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1; letter-spacing: -0.01em; }
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; }
.logo-tile { margin: 0; }
.logo-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; background: var(--stage, #fff); }
.logo-stage img { position: absolute; inset: 16% 11%; width: 78%; height: 68%; object-fit: contain; }
.logo-stage .round { inset: auto; left: 50%; top: 50%; width: auto; height: 76%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.logo-tile figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 12px; font-size: 15px; }
.logo-tile figcaption span { margin-right: auto; }
.logo-tile figcaption a { font-weight: 700; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.logo-tile figcaption a:hover { color: var(--ink); }

/* Dla streamerów i twórców: pełna szerokość w kolorze marki */
.creators {
  position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(110px, 16vh, 170px);
  padding-block: clamp(80px, 14vh, 140px); background: var(--blue); scroll-margin-top: 40px;
}
.creators h2 { font-size: clamp(40px, 6.4vw, 84px); line-height: .98; letter-spacing: -0.01em; }
.creators p { margin: 26px 0 0; max-width: 54ch; font-size: clamp(18px, 1.7vw, 21px); text-wrap: pretty; }
.creators-paw { position: absolute; z-index: -1; right: -5%; bottom: -22%; width: min(48vw, 580px); opacity: .13; transform: rotate(-14deg); }

.kit-contact { text-align: center; padding-block: clamp(90px, 15vh, 150px) clamp(50px, 9vh, 90px); }
.kit-contact p { margin: 0; color: var(--ink-soft); font-size: clamp(18px, 1.7vw, 21px); }
.kit-mail {
  display: inline-block; margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: clamp(27px, 5vw, 60px);
  line-height: 1.15; color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--blue-hi), var(--blue-hi)) 0 92% / 0% 4px no-repeat; transition: background-size .5s var(--ease-out);
}
.kit-mail:hover { background-size: 100% 4px; }

/* Polityka prywatności */
.prose { max-width: 68ch; padding-bottom: clamp(80px, 12vh, 130px); }
.prose h2 { font-size: clamp(25px, 2.5vw, 31px); font-weight: 700; line-height: 1.2; margin: 54px 0 12px; }
.prose p, .prose ul { margin: 0 0 16px; text-wrap: pretty; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--blue-hi); }
.prose a { text-underline-offset: 4px; text-decoration-color: oklch(0.94 0.03 80 / 0.4); }
.prose a:hover { text-decoration-color: var(--blue-hi); }
.tldr { margin-top: 6px; padding: 26px 30px; border-radius: 22px; background: var(--night-2); }
.tldr h2 { margin-top: 0; }
.tldr > :last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .kit-body { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .brand img { height: 34px; }
  .wall-tilt { grid-template-columns: repeat(4, 1fr); width: 230vmax; height: 230vmax; }
  .col:nth-child(n+5) { display: none; }
  .lockup-svg { height: auto; width: min(100%, 340px); }
  /* Na telefonie zrzut nad tekstem, w pełnych proporcjach */
  .scene { min-height: 0; display: block; padding-top: 72px; }
  .scene-media { position: relative; inset: auto; aspect-ratio: 16 / 9; z-index: 0; }
  .scene-shade { inset: auto 0 0; top: 72px; height: calc(100vw * 9 / 16); background: linear-gradient(0deg, var(--night) 0%, transparent 38%); }
  .scene-in { padding-block: 22px 72px; transform: none; }
  .tile { width: calc((100vw - 48px - 14px - 2 * 14px - 6 * 4px) / 9); height: calc((100vw - 48px - 14px - 2 * 14px - 6 * 4px) / 9 * 1.06); font-size: calc((100vw - 48px - 42px - 24px) / 9 * .66); border-radius: 7px; }
  .tank-title { font-size: clamp(46px, 13vw, 64px); }
  .tba-mark { position: relative; right: auto; top: auto; transform: none; opacity: 1; text-align: center; font-size: 64vw; padding-top: 4vw; }
  .tba-title { font-size: clamp(46px, 13vw, 64px); }
  .scene-meta { font-size: 14px; gap: 6px 14px; }
  .where { margin-top: 16px; gap: 8px; }
  .where-label { flex-basis: 100%; }
  .kit-link { margin-left: 4px; }
  .foot-in { justify-content: center; text-align: center; }
  .foot-nav { justify-content: center; }
  /* Podstrony na telefonie */
  .kit-banner { display: block; min-height: 0; }
  .kit-banner > img { position: relative; inset: auto; z-index: 0; height: auto; aspect-ratio: 16 / 9; }
  .kit-banner::after { inset: 0 0 auto; height: calc(100vw * 9 / 16); background: linear-gradient(0deg, var(--night) 0%, transparent 40%); }
  .kit-banner .wrap { position: relative; z-index: 1; padding-top: 18px; padding-bottom: 0; }
  .facts { padding: 22px; gap: 10px 18px; font-size: 15px; }
  .shots, .shots-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shots-6 > .shot:first-child { grid-row: auto; aspect-ratio: 16 / 9; }
  .shots-6 > .shot:last-child { grid-column: span 2; }
  .shots-2 { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: minmax(0, 1fr); }
  .logo-stage { aspect-ratio: 2 / 1; }
  .creators-paw { width: 70vw; right: -18%; bottom: -10%; }
  .tldr { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .col, .lockup-svg .ic-main, .ps-dot, .hero.started .flash, .hero.started .lockup { animation: none !important; }
  .scene, .scene.enter { --e: 1 !important; }
  .scene-media img { transform: none; }
  .scene.enter .tile, .scene-tank.enter .arc-path, .scene-tank.enter .arc-hit, .tba-mark span { animation: none; }
  .scene-media img, .wall-tilt, .tile, .press-start { transition: none; }
  .reel-track { animation: none; }
  .shot img, .btn, .kit-mail { transition: none; }
}
