/* SPIĘCIE — system wizualny.
   Noc: atrament #05060E, granat paneli, magenta #FF3D9A jako jedyny „gorący” kolor,
   cyjan #2AF0FF jako światło informacyjne, sód #FFB547 tylko jako akcent (KABEL, HUD).
   Tektur (nagłówki, zwężony 75%) + JetBrains Mono (tekst). Mobile-first od 320 px. */

:root {
  --ink: #05060E;
  --ink-2: #080A16;
  --panel: #0C0F22;
  --panel-2: #12163A;
  --line: rgba(150, 160, 255, 0.16);
  --line-2: rgba(150, 160, 255, 0.28);
  --text: #ECEEFF;
  --muted: #A9AFD2;
  --mag: #FF3D9A;
  --mag-2: #FF77B8;
  --cyan: #2AF0FF;
  --amber: #FFB547;
  --display: "Tektur", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "Consolas", monospace;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --cut: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --hdr: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--text); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--mono); font-size: 15px; line-height: 1.7; font-weight: 400;
  background: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 16px; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--mag); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; background: var(--mag);
  color: var(--ink); font-weight: 700; text-decoration: none; transform: translateY(-160%);
  transition: transform .2s;
}
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
main:focus { outline: none; }

/* ── etykiety ───────────────────────────────────────────── */
.kicker, .eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; flex-wrap: wrap; gap: .55em; font-weight: 500;
}
.eyebrow-n { color: var(--mag); font-weight: 700; }
.tag-concept {
  display: inline-block; padding: 1px 8px; border: 1px solid rgba(42, 240, 255, .55);
  color: var(--cyan); letter-spacing: .12em; line-height: 1.6; font-size: 11px;
}
.dot { width: 8px; height: 8px; background: var(--mag); box-shadow: 0 0 12px var(--mag); display: inline-block; }

/* ── przyciski ─────────────────────────────────────────── */
.btn {
  --c: var(--mag);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px; border: 0; cursor: pointer;
  background: var(--c); color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--mag-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 5px var(--cyan); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px var(--cyan); }
.btn-ghost:focus-visible { box-shadow: inset 0 0 0 2px var(--cyan); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 12px; }

/* ── nagłówek ──────────────────────────────────────────── */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(5, 6, 14, .78); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 16px; padding-inline: var(--pad); max-width: 1600px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; color: var(--text); flex: none; }
.brand-word { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 21px; letter-spacing: .06em; }
.brand-tag { display: none; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(42,240,255,.5); padding: 0 6px; }
@media (min-width: 420px) { .brand-tag { display: inline-block; } }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 12px; min-height: 44px; align-items: center;
  text-decoration: none; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  position: relative;
}
.nav-n { color: var(--mag); font-size: 10px; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.hdr-tools { display: flex; align-items: center; gap: 8px; }
.snd {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 10px;
  background: transparent; border: 1px solid var(--line-2); cursor: pointer; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
}
.snd:hover { border-color: var(--cyan); }
.snd-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.snd-bars i { width: 3px; height: 4px; background: var(--muted); transition: height .3s; }
.snd[aria-pressed="true"] .snd-bars i { background: var(--cyan); animation: eq 1.2s ease-in-out infinite; }
.snd[aria-pressed="true"] .snd-bars i:nth-child(2) { animation-delay: -.3s; }
.snd[aria-pressed="true"] .snd-bars i:nth-child(3) { animation-delay: -.7s; }
.snd[aria-pressed="true"] .snd-bars i:nth-child(4) { animation-delay: -.5s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.snd-lbl { display: none; }
.hdr-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-2); cursor: pointer; }
.menu-ico { display: grid; gap: 6px; width: 18px; }
.menu-ico i { display: block; height: 2px; background: var(--text); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-ico i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico i:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 979px) {
  .js .snd { margin-left: auto; }
  .js .nav {
    position: fixed; inset: var(--hdr) 0 auto 0; background: rgba(5, 6, 14, .97); border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 28px; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
  }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .js .nav ul { flex-direction: column; }
  .js .nav a { font-family: var(--display); font-size: 28px; font-stretch: 80%; font-weight: 700; padding: 10px 0; }
  .js .nav a::after { left: 0; right: auto; width: 40px; }
  .no-js .nav { display: none; }
}
@media (min-width: 980px) {
  .menu-btn { display: none; }
  .snd-lbl { display: inline; }
  .hdr-cta { display: inline-flex; }
}

/* ── lot: scena przyklejona + treść nad nią ────────────── */
.flight { position: relative; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; z-index: 0;
  background: radial-gradient(120% 80% at 50% 70%, #2a0d3a 0%, #0b0a24 45%, var(--ink) 100%);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.no-js .stage, .no-gl .stage, .gl-lost .stage {
  background: var(--ink) url("../assets/poster-city.webp") center 40% / cover no-repeat;
}
@media (max-width: 700px) and (orientation: portrait) {
  .no-js .stage, .no-gl .stage, .gl-lost .stage { background-image: url("../assets/poster-city-mobile.webp"); }
}
.no-js .stage canvas, .no-gl .stage canvas, .gl-lost .stage canvas { display: none; }
.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 14, .72) 0%, rgba(5, 6, 14, .25) 45%, rgba(5, 6, 14, 0) 70%),
    linear-gradient(0deg, rgba(5, 6, 14, .85) 0%, rgba(5, 6, 14, 0) 38%),
    linear-gradient(180deg, rgba(5, 6, 14, .6) 0%, rgba(5, 6, 14, 0) 18%);
  transition: opacity .6s;
}
.letterbox i { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height .7s var(--ease); z-index: 2; }
.letterbox i:first-child { top: 0; }
.letterbox i:last-child { bottom: 0; }
.in-trailer .letterbox i { height: 7vh; }
.flight-content { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100lvh; }

/* HUD */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #CDD2F5; text-shadow: 0 0 8px rgba(5,6,14,.9), 0 1px 2px #000; }
.hud-c { position: absolute; display: grid; gap: 4px; }
.hud-k { color: #CDD2F5; }
.hud-k b, .hud-v b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hud-k em { font-style: normal; color: var(--cyan); font-size: 10px; }
.hud-v { color: var(--text); font-variant-numeric: tabular-nums; }
.hud-tl { top: calc(var(--hdr) + 18px); left: var(--pad); }
.hud-tr { top: calc(var(--hdr) + 18px); right: var(--pad); text-align: right; }
.hud-bl { bottom: 24px; left: var(--pad); display: none; }
.hud-br { bottom: 24px; right: var(--pad); text-align: right; justify-items: end; }
.hud-bar { width: 120px; height: 2px; background: rgba(255,255,255,.18); }
.hud-bar i { display: block; height: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(.5); box-shadow: 0 0 8px var(--cyan); }
.hud-dots { display: flex; gap: 6px; }
.hud-dots i { width: 18px; height: 3px; background: rgba(255,255,255,.22); transition: background .4s; }
.hud-dots i.on { background: var(--mag); box-shadow: 0 0 8px var(--mag); }
.hud-tc { font-size: 13px; letter-spacing: .1em; }
.hud-cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: .55; }
.hud-cross::before, .hud-cross::after { content: ""; position: absolute; background: var(--text); }
.hud-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hud-cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.hud-tl::before, .hud-tr::before { content: ""; position: absolute; top: -10px; width: 26px; height: 1px; background: var(--mag); }
.hud-tl::before { left: 0; } .hud-tr::before { right: 0; }
@media (max-width: 640px) {
  .hud-tr { display: none; }
  .hud-br { bottom: 16px; }
  .hud-cross { display: none; }
}
@media (min-width: 900px) { .hud-bl { display: grid; } }
.no-js .hud, .no-gl .hud { display: none; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--hdr) + 80px) 0 clamp(72px, 12vh, 140px); }
.hero-in { position: relative; }
.hero-title {
  font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase;
  font-size: clamp(2.65rem, 13vw, 11rem); line-height: .98; letter-spacing: -.005em; margin: 22px 0 28px;
}
.hero-lines { display: block; }
.line { display: block; white-space: nowrap; position: relative; }
.line-2 {
  background: linear-gradient(90deg, var(--mag) 0%, #FF8BC6 45%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 61, 154, .35));
}
.line-2 em { font-style: normal; }
.hero-lead { max-width: 34em; color: #D9DCF5; font-size: 15px; text-shadow: 0 1px 12px rgba(5,6,14,.9); }
@media (min-width: 768px) { .hero-lead { font-size: 17px; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-cue { position: absolute; right: var(--pad); bottom: clamp(72px, 12vh, 140px); display: none; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #CDD2F5; writing-mode: vertical-rl; }
.hero-cue i { width: 1px; height: 80px; background: linear-gradient(var(--mag), transparent); position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero-cue { display: flex; bottom: 140px; } }
.hero .btn-ghost { background: rgba(5, 6, 14, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* glitch: rzadkie przesunięcia warstw, ≤ 2 zmiany na sekundę */
.js .glitch::before, .js .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-background-clip: initial; background-clip: initial; background: none;
}
.js .glitch::before { color: var(--cyan); }
.js .glitch::after { color: var(--mag); }
@media (prefers-reduced-motion: no-preference) {
  .js .glitch.is-ready::before { animation: gl-a 7s steps(1) infinite; }
  .js .glitch.is-ready::after { animation: gl-b 7s steps(1) infinite; }
}
@keyframes gl-a {
  0%, 88%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  89% { opacity: .85; transform: translate(-4px, 0); clip-path: inset(12% 0 62% 0); }
  93% { opacity: .85; transform: translate(5px, 0); clip-path: inset(58% 0 18% 0); }
  97% { opacity: 0; }
}
@keyframes gl-b {
  0%, 89%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  90% { opacity: .8; transform: translate(4px, 0); clip-path: inset(40% 0 35% 0); }
  95% { opacity: .8; transform: translate(-3px, 0); clip-path: inset(75% 0 4% 0); }
  98% { opacity: 0; }
}

/* zwiastun */
.trailer { position: relative; }
.tr-intro { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 120px; }
.tr-title {
  font-family: var(--display); font-weight: 900; font-stretch: 75%; line-height: .82;
  font-size: clamp(5rem, 26vw, 22rem); letter-spacing: .01em; margin: 10px 0 18px;
  color: var(--text); text-shadow: 0 0 40px rgba(255, 61, 154, .45), 0 0 2px rgba(255,255,255,.4);
}
.tr-tag { max-width: 36em; color: #DADDF6; text-shadow: 0 1px 12px rgba(5,6,14,.95); background: rgba(5,6,14,.42); padding: 14px 16px; border-left: 2px solid var(--mag); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.chapter { min-height: 130vh; min-height: 130svh; display: flex; align-items: center; padding: 15vh var(--pad); max-width: 1600px; margin: 0 auto; }
.ch-r { justify-content: flex-end; }
.ch-box {
  max-width: 600px; position: relative; padding: 26px 24px 28px; background: rgba(5, 6, 14, .62);
  border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.ch-box::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: linear-gradient(var(--mag), var(--cyan)); }
.ch-n { font-family: var(--display); font-size: 14px; letter-spacing: .3em; color: var(--mag); font-weight: 700; }
.ch-title {
  font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase;
  font-size: clamp(2.3rem, 7.5vw, 5.4rem); line-height: 1; margin: 8px 0 16px; overflow-wrap: anywhere;
}
.ch-box p:last-child { color: #D6D9F2; }
@media (min-width: 768px) { .ch-box { padding: 36px 40px 40px; } }
.tr-card { padding-block: 10vh 30vh; }
.spec {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.spec > div { background: rgba(5, 6, 14, .78); padding: 18px 20px; }
.spec dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.spec dd { font-size: 15px; }
.spec strong { color: var(--mag-2); }
@media (min-width: 768px) { .spec { grid-template-columns: repeat(4, 1fr); } }
.gate { height: 110vh; height: 110svh; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14vh; }
.gate span { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #CDD2F5; text-shadow: 0 0 10px #000; }

/* ── sekcje ────────────────────────────────────────────── */
.sec { position: relative; padding-block: clamp(96px, 13vw, 190px); background: var(--ink); z-index: 2; }
.sec::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center top;
  -webkit-mask-image: radial-gradient(120% 60% at 50% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(120% 60% at 50% 0%, #000 0%, transparent 70%);
}
.sec > .wrap { position: relative; }
.sec-head { max-width: 860px; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-title {
  font-family: var(--display); font-weight: 800; font-stretch: 78%; text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 6.4rem); line-height: 1; margin: 18px 0 22px; overflow-wrap: break-word;
}
.sec-lead { color: var(--muted); max-width: 40em; }
.games { background: linear-gradient(180deg, #0A0717 0%, var(--ink) 30%); }
.games::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mag), var(--cyan), transparent); box-shadow: 0 0 24px var(--mag);
}

/* karty gier */
.grid-games { display: grid; gap: 28px; grid-template-columns: 1fr; perspective: 1400px; }
@media (min-width: 640px) { .grid-games { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-games { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.game { position: relative; }
.game:focus-within { outline: none; }
.game:has(.game-open:focus-visible) .game-card { box-shadow: 0 0 0 2px var(--cyan), 0 30px 80px -30px var(--g); }
.game-card {
  position: relative; height: 100%; display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .5s var(--ease), box-shadow .4s, border-color .4s;
  will-change: transform;
}
.game.is-tilt .game-card { transition: transform .08s linear, box-shadow .4s, border-color .4s; }
.game:hover .game-card { border-color: color-mix(in srgb, var(--g) 60%, transparent); box-shadow: 0 30px 80px -30px var(--g); }
.game-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0d20; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translate(calc(var(--ry, 0deg) * -1.2px / 1deg), calc(var(--rx, 0deg) * 1.2px / 1deg)); transition: transform .6s var(--ease); }
.game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel) 0%, transparent 45%); }
.game-meta { position: relative; padding: 4px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-genre { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--g); }
.game-title { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: .95; letter-spacing: .02em; }
.game-line { color: var(--muted); }
.game-open {
  margin-top: auto; align-self: flex-start; display: inline-flex; gap: .6em; align-items: center; min-height: 44px;
  padding: 0; background: none; border: 0; cursor: pointer; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700; color: var(--text);
}
.game-open::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.game-open:focus-visible { outline: none; }
.game:hover .game-open { color: var(--g); }
.game-chip { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 3px 8px; background: rgba(5,6,14,.82); color: var(--cyan); border: 1px solid rgba(42,240,255,.5); }
.game-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; mix-blend-mode: screen; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--g) 28%, transparent), transparent 45%); }
.game:hover .game-glare { opacity: 1; }
.js .game-more { display: none; }
.game-more { padding: 18px 4px 0; color: var(--muted); }
.game-more h4, .dlg-content h3, .dlg-content h4 { font-family: var(--display); font-stretch: 80%; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; color: var(--text); margin: 22px 0 10px; }
.game-more ul li, .dlg-content ul li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.game-more ul li::before, .dlg-content ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--g, var(--mag)); }

/* sygnał */
.signal { background: radial-gradient(80% 60% at 70% 40%, rgba(42, 240, 255, .07), transparent 70%), var(--ink); }
.scope { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.scope > * { min-width: 0; }
@media (min-width: 980px) { .scope { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: stretch; } }
.scope-screen {
  position: relative; width: 100%; aspect-ratio: 5 / 4; background: #03050c; border: 1px solid var(--line-2);
  box-shadow: inset 0 0 80px rgba(42, 240, 255, .08), 0 0 0 1px rgba(5,6,14,1), 0 40px 120px -60px rgba(42, 240, 255, .5);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  touch-action: pan-y; cursor: grab;
}
.scope-screen:active { cursor: grabbing; }
@media (min-width: 600px) { .scope-screen { aspect-ratio: 16 / 10; } }
.scope-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.scope-hud { position: absolute; top: 14px; left: 16px; right: 40px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.scope-hud span:first-child { color: var(--cyan); }
.scope-hud span:last-child { color: var(--mag-2); }
.scope-win {
  position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 16px 18px; background: rgba(5,6,14,.86);
  border: 1px solid rgba(42, 240, 255, .6); box-shadow: 0 0 40px rgba(42, 240, 255, .25);
}
.scope-win-k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.scope-msg { font-size: 14px; color: var(--text); min-height: 3.4em; }
.scope-panel { display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.match { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 12px; }
.match-k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.match-v { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.match-bar { grid-column: 1 / -1; height: 4px; background: rgba(255,255,255,.1); }
.match-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--mag), var(--cyan)); transition: transform .15s linear; }
.scope.is-solved .match-v { color: var(--cyan); text-shadow: 0 0 18px rgba(42, 240, 255, .6); }
.knob label { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; color: var(--muted); }
.knob output { color: var(--text); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--mag), var(--cyan)); }
input[type="range"]::-moz-range-track { height: 2px; background: linear-gradient(90deg, var(--mag), var(--cyan)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; background: var(--ink); border: 2px solid var(--text); transform: rotate(45deg); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: var(--ink); border: 2px solid var(--text); border-radius: 0; transform: rotate(45deg); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(42, 240, 255, .35); }
input[type="range"]:focus-visible::-moz-range-thumb { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(42, 240, 255, .35); }
.scope-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.scope-note { font-size: 13px; color: var(--muted); }

/* studio */
.craft { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .craft { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .craft { grid-template-columns: repeat(4, 1fr); } }
.craft-i { background: var(--ink-2); padding: 32px 26px 36px; transition: background .4s; }
.craft-i:hover { background: var(--panel); }
.craft-i h3 { font-family: var(--display); font-weight: 700; font-stretch: 80%; font-size: 24px; line-height: 1.05; text-transform: uppercase; margin: 26px 0 12px; }
.craft-i p { color: var(--muted); font-size: 14px; }
.craft-ico { position: relative; display: block; width: 56px; height: 56px; }
.ico-light::before { content: ""; position: absolute; left: 6px; right: 6px; top: 24px; height: 8px; border-radius: 4px; background: var(--mag); box-shadow: 0 0 18px var(--mag), 0 0 40px rgba(255, 61, 154, .6); }
.ico-light::after { content: ""; position: absolute; left: 2px; right: 2px; top: 20px; height: 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; }
.ico-city::before { content: ""; position: absolute; inset: 8px 4px 4px; background:
  linear-gradient(var(--cyan), var(--cyan)) 0 100% / 8px 60% no-repeat,
  linear-gradient(var(--text), var(--text)) 12px 100% / 8px 90% no-repeat,
  linear-gradient(var(--mag), var(--mag)) 24px 100% / 8px 45% no-repeat,
  linear-gradient(var(--text), var(--text)) 36px 100% / 8px 75% no-repeat; opacity: .9; }
.ico-sound::before, .ico-sound::after { content: ""; position: absolute; inset: 8px; border: 2px solid var(--cyan); border-radius: 50%; clip-path: inset(0 0 0 50%); }
.ico-sound::after { inset: 18px; border-color: var(--mag); }
.ico-box::before { content: ""; position: absolute; inset: 12px; border: 2px solid var(--text); transform: rotate(45deg) skew(10deg, 10deg); }
.ico-box::after { content: ""; position: absolute; inset: 20px; background: var(--amber); box-shadow: 0 0 16px var(--amber); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .ico-light::before { animation: tube 4s ease-in-out infinite; }
  .ico-sound::before { animation: ping 2.6s ease-out infinite; }
  .ico-box::before { animation: spin 12s linear infinite; }
}
@keyframes tube { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes ping { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.1); opacity: .3; } }
@keyframes spin { to { transform: rotate(405deg) skew(10deg, 10deg); } }

.proof {
  margin-top: clamp(56px, 8vw, 110px); display: grid; gap: 32px; padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(120deg, rgba(255, 61, 154, .10), rgba(42, 240, 255, .06) 60%, transparent), var(--panel);
  border: 1px solid var(--line-2);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}
@media (min-width: 980px) { .proof { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.proof-title { font-family: var(--display); font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: .95; margin: 14px 0 16px; }
.proof-txt p:not(.eyebrow) { color: #CED2EE; }
.proof-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proof-stats > div { background: rgba(5,6,14,.7); padding: 18px; }
.proof-stats > div:last-child { grid-column: 1 / -1; }
.proof-stats dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.proof-stats dd { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 38px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof-stats > div:nth-child(odd) dd { color: var(--cyan); }
.proof-stats > div:nth-child(even) dd { color: var(--mag-2); }
@media (min-width: 640px) { .proof-stats { grid-template-columns: repeat(3, 1fr); } .proof-stats > div:last-child { grid-column: auto / span 1; } }

.process { margin-top: clamp(72px, 10vw, 140px); }
.process-title { font-family: var(--display); font-weight: 700; font-stretch: 80%; text-transform: uppercase; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 32px; }
.steps { display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line-2); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--mag); box-shadow: 0 0 12px var(--mag); }
.step-n { font-family: var(--display); font-size: 13px; letter-spacing: .3em; color: var(--mag-2); font-weight: 700; }
.steps h4 { font-family: var(--display); font-weight: 700; font-stretch: 80%; font-size: 22px; text-transform: uppercase; margin: 10px 0 8px; }
.steps p { color: var(--muted); font-size: 14px; }

/* dołącz */
.join { background: linear-gradient(180deg, var(--ink) 0%, #090616 100%); }
.roles { border-top: 1px solid var(--line-2); }
.role { border-bottom: 1px solid var(--line-2); }
.role summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: center;
  padding: 26px 4px; min-height: 44px; transition: background .3s, padding .3s;
}
.role summary::-webkit-details-marker { display: none; }
.role summary:hover { background: rgba(255, 255, 255, .03); padding-left: 14px; }
.role-t { font-family: var(--display); font-weight: 700; font-stretch: 80%; font-size: clamp(1.4rem, 4vw, 2.4rem); text-transform: uppercase; line-height: 1.05; }
.role-tags { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1; grid-row: 2; }
.role-tags span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--line-2); color: var(--muted); }
.role-x { grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; position: relative; border: 1px solid var(--line-2); }
.role-x::before, .role-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--mag); transition: transform .3s var(--ease); }
.role-x::after { transform: rotate(90deg); }
.role[open] .role-x::after { transform: rotate(0deg); }
@media (min-width: 768px) {
  .role summary { grid-template-columns: 1fr auto auto; }
  .role-tags { grid-column: 2; grid-row: 1; }
  .role-x { grid-column: 3; grid-row: 1; }
}
.role-b { padding: 0 4px 30px; max-width: 760px; color: var(--muted); }
.role-b ul { margin: 14px 0; }
.role-b li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.role-b li::before { content: "›"; position: absolute; left: 0; color: var(--mag); }
.role-demo { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }

/* nadajnik */
.tx { background: radial-gradient(70% 70% at 20% 100%, rgba(255, 61, 154, .12), transparent 70%), #090616; }
.tx-in { display: grid; gap: 40px; }
@media (min-width: 980px) { .tx-in { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.tx-copy .sec-head, .tx-copy { margin: 0; }
.tx-form { display: grid; gap: 14px; padding: clamp(24px, 4vw, 40px); background: var(--panel); border: 1px solid var(--line-2); }
.field label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input {
  width: 100%; min-height: 54px; padding: 0 16px; background: var(--ink); border: 1px solid var(--line-2);
  font-size: 16px; color: var(--text); border-radius: 0;
}
.field input::placeholder { color: #8189B3; }
.field input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 0; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--mag); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--mag); }
.check label { font-size: 14px; color: #CED2EE; }
.err { color: var(--mag-2); font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.tx-status { font-size: 14px; color: var(--cyan); }
.tx-status:empty { display: none; }

/* stopka */
.ftr { position: relative; z-index: 2; background: #030409; border-top: 1px solid var(--line); padding: 64px 0 40px; }
.ftr-in { display: grid; gap: 22px; }
@media (min-width: 980px) { .ftr-in { grid-template-columns: auto 1fr 1fr; column-gap: 48px; align-items: start; } .ftr-note { grid-column: 2; grid-row: 1 / span 2; } .ftr-made, .ftr-tech, .ftr-top { grid-column: 3; } }
.ftr-brand { display: flex; align-items: center; gap: 12px; }
.ftr-word { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 28px; letter-spacing: .06em; }
.ftr-note { color: var(--muted); font-size: 14px; max-width: 46em; }
.ftr-note strong { color: var(--text); }
.ftr-made { font-size: 15px; }
.ftr-made a { color: var(--mag-2); text-underline-offset: 4px; font-weight: 600; padding: 10px 0; }
.ftr-made a:hover { color: var(--cyan); }
.ftr-tech { font-size: 13px; color: var(--muted); }
.ftr-top { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--mag); }

/* ── okno karty gry ────────────────────────────────────── */
.dlg { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 0; }
.dlg[hidden] { display: none; }
.dlg-bg { position: absolute; inset: 0; background: rgba(3, 4, 10, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dlg-panel {
  position: relative; width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; background: var(--ink-2);
  display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--line-2);
}
@media (min-width: 980px) {
  .dlg { padding: 4vh 4vw; }
  .dlg-panel {
    max-width: 1320px; height: auto; max-height: 92vh; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr auto;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  }
  .dlg-art { grid-row: 1; min-height: 100%; }
  .dlg-bar { grid-column: 1 / -1; }
}
.dlg-art { position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
@media (min-width: 980px) { .dlg-art { aspect-ratio: auto; } }
.dlg-art img { width: 100%; height: 100%; object-fit: cover; }
.dlg-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--ink-2)); }
@media (max-width: 979px) { .dlg-art::after { background: linear-gradient(0deg, var(--ink-2), transparent 50%); } }
@media (prefers-reduced-motion: no-preference) { .dlg.is-open .dlg-art img { animation: kb 14s ease-out both; } }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.dlg-body { padding: 28px var(--pad) 32px; overflow: auto; }
@media (min-width: 980px) { .dlg-body { padding: 48px 48px 32px 24px; } }
.dlg-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--g, var(--mag)); display: flex; flex-wrap: wrap; gap: .5em; align-items: center; }
.dlg-title { font-family: var(--display); font-weight: 900; font-stretch: 75%; font-size: clamp(3rem, 9vw, 6.4rem); line-height: .88; margin: 12px 0 18px; text-shadow: 0 0 40px color-mix(in srgb, var(--g, var(--mag)) 45%, transparent); }
.dlg-title:focus { outline: none; }
.dlg-content { color: #C9CDEA; }
.dlg-content > p:first-child { color: var(--text); font-size: 16px; }
.dlg-bar { display: flex; align-items: center; gap: 10px; padding: 14px var(--pad); border-top: 1px solid var(--line); background: rgba(5,6,14,.92); position: sticky; bottom: 0; }
.dlg-btn, .dlg-close {
  min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; border: 1px solid var(--line-2); cursor: pointer; font-size: 18px;
}
.dlg-btn:hover, .dlg-close:hover { border-color: var(--cyan); }
.dlg-count { font-family: var(--display); font-size: 15px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.dlg-close { margin-left: auto; padding: 0 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

/* ── kursor (tylko precyzyjny wskaźnik) ─────────────────── */
.cursor { display: none; }
@media (pointer: fine) {
  .js .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 0; height: 0;
    opacity: 0; transition: opacity .3s;
  }
  .js .cursor.is-on { opacity: 1; }
  .cursor i {
    position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border: 1px solid var(--mag);
    transform: rotate(45deg) scale(var(--s, 1)); transition: transform .25s var(--ease), border-color .25s;
    box-shadow: 0 0 12px rgba(255, 61, 154, .5);
  }
  .cursor.is-hot i { --s: 1.5; border-color: var(--cyan); box-shadow: 0 0 12px rgba(42, 240, 255, .5); }
}

/* ── pojawianie się ────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { transform: none; transition: opacity .3s; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
