/* =========================================================================
   Vexlip — arkusz stylów strony (v2, platforma klipów)
   Bez zewnętrznych fontów i bibliotek: czcionki systemowe, czysty CSS.
   ========================================================================= */

:root {
  --bg: #0A0B0F;
  --bg-2: #0D0F14;
  --panel: #13151C;
  --panel-2: #181A22;
  --line: #1F222C;
  --line-2: #2C303C;
  --text: #E9ECF3;
  --dim: #B4BBCB;
  --muted: #8D95A8;
  --c1: #00C8FF;
  --c2: #2F7BFF;
  --c3: #9B3DFF;
  --ok: #22D39A;
  --warn: #F5B84B;
  --danger: #FF4D6A;
  --grad: linear-gradient(100deg, var(--c1) 0%, var(--c2) 48%, var(--c3) 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 200, 255, .16), rgba(155, 61, 255, .16));
  --nav-h: 64px;
  --maxw: 1720px;
  --maxw-wide: 2080px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (min-width: 2200px) { html { font-size: 106.25%; } }
@media (min-width: 3000px) { html { font-size: 112.5%; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(0, 200, 255, .07), transparent 60%),
    radial-gradient(900px 600px at 92% 4%, rgba(155, 61, 255, .07), transparent 60%);
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(47, 123, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px; top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--c2);
  color: #fff;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
}
.container--narrow { max-width: 1280px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text--animated {
  background-image: linear-gradient(100deg, var(--c1), var(--c2), var(--c3), var(--c2), var(--c1));
  background-size: 200% auto;
  animation: gradShift 9s linear infinite;
}
@keyframes gradShift { to { background-position: -200% center; } }

kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: .82em;
  line-height: 1.5;
  padding: 0 .5em;
  border-radius: 6px;
  background: #1A1D27;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  color: var(--text);
}
.kbd--glow {
  border-color: rgba(0, 200, 255, .55);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 200, 255, .35);
}

/* ---------- Przyciski ---------- */
.btn {
  --h: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  height: var(--h);
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: none;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  transition: transform .15s var(--ease), background-color .2s, background-position .4s, border-color .2s, box-shadow .25s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary {
  color: #fff;
  background-image: linear-gradient(100deg, var(--c1), var(--c2) 50%, var(--c3));
  background-size: 160% 100%;
  background-position: 0 0;
  box-shadow: 0 8px 24px -10px rgba(47, 123, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 12px 32px -8px rgba(110, 80, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #3B404F; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 1.02rem; border-radius: 14px; }
.btn-label-short { display: none; }

.btn-download {
  position: relative;
  height: auto;
  padding: 14px 30px 14px 22px;
  border-radius: 16px;
  gap: 14px;
  text-align: left;
  isolation: isolate;
}
.btn-download .icon { width: 28px; height: 28px; }
.btn-download strong { display: block; font-size: 1.14rem; font-weight: 700; line-height: 1.2; }
.btn-download small { display: block; margin-top: 4px; font-size: .78rem; font-weight: 500; opacity: .85; line-height: 1.2; }
.btn-download::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: var(--grad);
  filter: blur(20px);
  opacity: .55;
  /* pulsuje tylko opacity — animowany filter wymuszał ponowne rozmycie w każdej klatce */
  animation: glowPulse 3.2s ease-in-out infinite;
}
@keyframes glowPulse { 50% { opacity: .9; } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .09); border-color: #3B404F; }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }

.like-btn .count { font-family: var(--mono); font-size: .85em; color: var(--muted); }
.like-btn.is-liked { color: #fff; border-color: rgba(255, 77, 106, .55); background: rgba(255, 77, 106, .14); }
.like-btn.is-liked .icon { fill: var(--danger); stroke: var(--danger); }
.like-btn.is-liked .count { color: #FFC2CD; }
.like-btn.pop .icon { animation: heartPop .45s var(--ease); }
@keyframes heartPop { 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2);
  color: var(--dim);
  white-space: nowrap;
}
.chip--accent { color: #CFEFFF; border-color: rgba(0, 200, 255, .35); background: rgba(0, 200, 255, .08); }
.chip .icon { width: 14px; height: 14px; }

/* ---------- Pola wyszukiwania ---------- */
.search-field { position: relative; display: flex; align-items: center; min-width: 0; }
.search-field > .icon { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 38px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: #11131A;
  outline: none;
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.search-field input::placeholder { color: #6E7689; }
.search-field input:focus { border-color: var(--c2); background: #141722; box-shadow: 0 0 0 3px rgba(47, 123, 255, .25); }
.search-field input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); cursor: pointer; }
.search-field .kbd-hint { position: absolute; right: 10px; color: var(--muted); pointer-events: none; font-size: .75rem; }
.search-field input:focus ~ .kbd-hint, .search-field input:not(:placeholder-shown) ~ .kbd-hint { display: none; }
.search-field--sm input { height: 36px; font-size: .86rem; padding-right: 12px; }

/* ---------- Nawigacja ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 11, 15, .35);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
/* Warstwa „pełnego” paska — przy przewinięciu animujemy wyłącznie opacity. */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 11, 15, .82);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -12px rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.site-nav.is-scrolled::before, .site-nav.is-solid::before { opacity: 1; }
.nav-inner {
  height: 100%;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding-inline: clamp(16px, 2.6vw, 36px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 550;
  font-size: .93rem;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav-search { flex: 1 1 auto; max-width: 440px; margin-left: auto; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.nav-search + .nav-actions { margin-left: 0; }
.nav-toggle {
  display: none;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  position: relative;
  transition: transform .25s, background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-grid; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px clamp(16px, 4vw, 32px) 20px;
    background: rgba(10, 11, 15, .97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
}
@media (max-width: 760px) {
  .nav-search { display: none; }
  .nav-actions, .nav-search + .nav-actions { margin-left: auto; }
  .btn-label-long { display: none; }
  .btn-label-short { display: inline; }
}

/* ---------- Okładki gier ---------- */
.cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: var(--tile, #1A1D27);
  flex: none;
}
.cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.cover.is-loaded img { opacity: 1; }
.cover.is-fallback { display: grid; place-items: center; }
.cover-initials { font-weight: 800; color: rgba(255, 255, 255, .94); font-size: .8em; letter-spacing: -.02em; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.cover-skeleton { display: block; aspect-ratio: 2 / 3; border-radius: 12px; }

/* ---------- Awatar (inicjały twórcy) ---------- */
.avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--tile, #2A2E3A);
  color: #fff;
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .01em;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(255, 255, 255, .08);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

/* ---------- Karty klipów ---------- */
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(22px, 2vw, 32px) clamp(14px, 1.4vw, 22px);
}
.clip-card { position: relative; display: flex; flex-direction: column; gap: 12px; border-radius: 16px; min-width: 0; }
.clip-card:focus-visible { outline-offset: 6px; }
.clip-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  background: var(--tile, #1A1D27);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.clip-thumb > img, .clip-preview {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.clip-thumb > img { transition: transform .6s var(--ease), opacity .3s; }
.clip-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 42%);
}
.clip-thumb.no-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .18), transparent 55%);
}
.clip-preview { z-index: 0; opacity: 0; transition: opacity .3s; background: #000; }
.clip-thumb.is-previewing .clip-preview { opacity: 1; }
.clip-card:hover .clip-thumb {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px rgba(0, 200, 255, .38), 0 20px 44px -18px rgba(47, 123, 255, .65);
}
.clip-card:hover .clip-thumb > img { transform: scale(1.045); }
.clip-play {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(10, 11, 15, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.85);
  transition: opacity .25s, transform .25s var(--ease);
}
.clip-play .icon { width: 22px; height: 22px; margin-left: 3px; }
.clip-card:hover .clip-play, .clip-card:focus-visible .clip-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.clip-thumb.is-previewing .clip-play { opacity: 0; }
@media (hover: none) { .clip-play { opacity: .9; transform: translate(-50%, -50%) scale(.9); } }
.clip-badge {
  position: absolute;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 7px;
  font: 600 .74rem/1.25 var(--mono);
  color: #fff;
  background: rgba(8, 9, 12, .78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.clip-duration { right: 10px; bottom: 10px; }
.clip-quality { right: 10px; top: 10px; color: #CFEFFF; }
.clip-rank {
  position: absolute;
  z-index: 2;
  left: 10px; top: 10px;
  min-width: 34px;
  padding: 4px 9px;
  border-radius: 9px;
  font: 800 .86rem/1.2 var(--font-display);
  color: #fff;
  text-align: center;
  background: var(--grad);
  box-shadow: 0 6px 16px -6px rgba(47, 123, 255, .9);
}
.clip-scrub { position: absolute; left: 0; bottom: 0; z-index: 3; height: 3px; width: 0; background: var(--grad); transition: width .25s linear; }
.clip-body { display: flex; gap: 12px; padding: 0 2px; min-width: 0; }
.clip-text { flex: 1; min-width: 0; }
.clip-title {
  font: 650 1rem/1.35 var(--font);
  letter-spacing: -.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.clip-card:hover .clip-title { color: #fff; }
.clip-sub { display: flex; gap: 6px; min-width: 0; margin-top: 3px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.clip-sub .author { color: #C9CFDD; font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.clip-sub .dot::before { content: "•"; opacity: .6; }
.clip-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; min-width: 0; }
.clip-game {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 62%;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: #C9CFDD;
  font-size: .78rem;
  font-weight: 600;
  transition: border-color .2s, color .2s, background-color .2s;
}
.clip-game .cover { width: 20px; height: 20px; aspect-ratio: 1; border-radius: 50%; font-size: 9px; }
.clip-game > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-game[data-game]:hover { border-color: rgba(0, 200, 255, .55); color: #fff; background: rgba(0, 200, 255, .08); }
.clip-stats { display: inline-flex; gap: 12px; color: var(--muted); font: 500 .8rem/1 var(--mono); flex: none; }
.clip-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.clip-stats .icon { width: 14px; height: 14px; }
.js-likes.is-liked { color: var(--danger); }
.js-likes.is-liked .icon { fill: currentColor; }

/* Wariant kompaktowy (lista obok odtwarzacza) */
.clip-card.is-compact { flex-direction: row; gap: 12px; align-items: flex-start; }
.is-compact .clip-thumb { width: 44%; max-width: 176px; flex: none; border-radius: 10px; }
.is-compact .clip-body { padding: 0; }
.is-compact .avatar { display: none; }
.is-compact .clip-title { font-size: .92rem; }
.is-compact .clip-sub { font-size: .8rem; }
.is-compact .clip-foot { margin-top: 6px; }
.is-compact .clip-game { display: none; }
.is-compact .clip-play { width: 38px; height: 38px; }
.is-compact .clip-play .icon { width: 16px; height: 16px; }
.is-compact .clip-quality { display: none; }

/* Szkielety */
.sk {
  background: linear-gradient(90deg, #14161D 0%, #1D2029 40%, #14161D 80%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-thumb { aspect-ratio: 16 / 9; border-radius: var(--r); }
.sk-avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.sk-line { height: 12px; margin-top: 8px; }
.sk-line:first-child { margin-top: 2px; }
.w80 { width: 80%; } .w50 { width: 50%; } .w30 { width: 30%; }
.skeleton .clip-body > div:last-child { flex: 1; }

/* ---------- Stany (pusto / błąd) ---------- */
.state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(40px, 6vw, 64px) 24px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: 20px;
  background: radial-gradient(600px 240px at 50% 0%, rgba(47, 123, 255, .07), transparent 70%);
}
.state-icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 4px;
  border-radius: 18px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--c1);
}
.state-icon .icon { width: 28px; height: 28px; }
.state-block.is-error .state-icon { background: rgba(255, 77, 106, .1); color: var(--danger); }
.state-block h3 { font-size: 1.25rem; }
.state-block p { max-width: 54ch; color: var(--muted); }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.inline-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 28px 0 8px; color: var(--muted); font-size: .92rem; }

/* ---------- Toasty ---------- */
.toast-stack {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #161922;
  box-shadow: 0 18px 40px -12px #000;
  font-size: .92rem;
  animation: toastIn .3s var(--ease);
  transition: opacity .3s, transform .3s;
}
.toast .icon { color: var(--ok); }
.toast.is-error .icon { color: var(--danger); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Modal odtwarzacza ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 9, .84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .25s;
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1320px, 100%, calc((100vh - 230px) * 16 / 9 + 2px));
  min-width: min(720px, 100%);
  max-height: 100%;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: #0F1117;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .85);
  outline: none;
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.modal.is-open .modal-dialog { opacity: 1; transform: none; }
.modal-stage { position: relative; aspect-ratio: 16 / 9; background: #000; flex: none; }
.modal-video { width: 100%; height: 100%; background: #000; }
.modal-video-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, .88);
  color: var(--muted);
}
.modal-video-error .icon { width: 32px; height: 32px; color: var(--danger); margin-bottom: 6px; }
.modal-video-error strong { color: var(--text); }
.modal-close, .modal-nav, .modal-counter { position: absolute; z-index: 5; }
.modal-close { top: 12px; right: 12px; background: rgba(0, 0, 0, .55); border-color: rgba(255, 255, 255, .15); }
.modal-nav {
  top: 50%;
  width: 46px; height: 46px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .5);
  border-color: rgba(255, 255, 255, .15);
  opacity: 0;
  transition: opacity .2s, background-color .2s;
}
.modal-prev { left: 12px; }
.modal-next { right: 12px; }
.modal-stage:hover .modal-nav, .modal-nav:focus-visible { opacity: 1; }
.modal-nav[disabled] { opacity: 0 !important; }
@media (hover: none) { .modal-nav { opacity: .85; } }
.modal-counter {
  top: 14px; left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  font: 600 .76rem/1.4 var(--mono);
  color: var(--dim);
}
.modal-counter:empty { display: none; }
.modal-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 22px 20px;
  overflow-y: auto;
}
.modal-info-main { min-width: 0; flex: 1 1 360px; }
.modal-title { font-size: clamp(1.1rem, 1.6vw, 1.4rem); overflow-wrap: anywhere; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; color: var(--muted); font-size: .9rem; }
.meta-row > span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .icon { width: 16px; height: 16px; }
.meta-row .avatar { width: 24px; height: 24px; font-size: .6rem; box-shadow: none; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.game-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 600;
  font-size: .86rem;
  transition: border-color .2s, background-color .2s;
}
.game-chip .cover { width: 26px; height: 26px; aspect-ratio: 1; border-radius: 50%; font-size: 10px; }
.game-chip:hover { border-color: rgba(0, 200, 255, .55); background: rgba(0, 200, 255, .08); }
.modal-open, .modal-open body { overflow: hidden; }
@media (max-width: 760px) {
  .modal-dialog { width: 100%; min-width: 0; height: 100%; border-radius: 0; border: 0; }
  .modal-stage { margin-top: auto; }
  .modal-info { margin-bottom: auto; padding: 16px; }
  .modal-info .btn { flex: 1 1 auto; }
}

/* ---------- Wspólne sekcje ---------- */
.section { padding: clamp(64px, 10vh, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vh, 80px) 0; }
.section-head { max-width: 780px; margin: 0 auto clamp(32px, 5vh, 56px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -.035em; }
.section-head p { margin-top: 14px; color: var(--dim); font-size: 1.08rem; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font: 700 .74rem/1.2 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c1);
}
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.head-row h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; }
.head-row p { color: var(--muted); margin-top: 6px; }
.section-link { display: inline-flex; align-items: center; gap: 6px; color: var(--c1); font-weight: 600; font-size: .95rem; transition: gap .2s, color .2s; }
.section-link:hover { gap: 10px; color: #7FE3FF; }
.row-nav { display: flex; gap: 8px; align-items: center; }

.card {
  position: relative;
  padding: clamp(22px, 2vw, 30px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #12141B, #0E1015);
  overflow: hidden;
  isolation: isolate;
}
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 123, 255, .13), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.spot:hover::before { opacity: 1; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--c1);
}
.feature-icon .icon { width: 22px; height: 22px; }
.card h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.015em; }
.card p { margin-top: 8px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Animacje wejścia */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease) calc(var(--d, 0) * 80ms), transform .7s var(--ease) calc(var(--d, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal--scale { transform: translateY(24px) scale(.97); }
.js .reveal--scale.is-visible { transform: none; }
.rise { animation: riseIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes riseIn { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.98); } }
[data-parallax] { will-change: transform; }
.await-rise > * { opacity: 0; }
.await-scroll { opacity: 0; }


/* ---------- Strona główna: hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(44px, 9vh, 104px)) 0 clamp(36px, 6vh, 64px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-layer { position: absolute; inset: 0; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}
.aurora { position: absolute; left: 50%; top: -18%; width: min(1500px, 150vw); height: 760px; transform: translateX(-50%); filter: blur(90px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 46%; height: 70%; left: 8%; top: 10%; background: radial-gradient(circle, rgba(0, 200, 255, .75), transparent 65%); animation: drift1 16s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 46%; height: 75%; left: 30%; top: 0; background: radial-gradient(circle, rgba(47, 123, 255, .8), transparent 65%); animation: drift2 19s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 46%; height: 70%; right: 6%; top: 14%; background: radial-gradient(circle, rgba(155, 61, 255, .75), transparent 65%); animation: drift3 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18%, 12%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14%, 18%) scale(.9); } }
@keyframes drift3 { to { transform: translate(-20%, -6%) scale(1.2); } }
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .5;
  background: linear-gradient(to bottom, transparent 60%, var(--bg));
}
.hero-inner { max-width: 1040px; margin: 0 auto; text-align: center; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 26px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(19, 21, 28, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .88rem;
  color: var(--dim);
  transition: border-color .2s;
}
.hero-pill:hover { border-color: rgba(0, 200, 255, .5); }
.hero-pill strong { padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .72rem; letter-spacing: .08em; }
.hero-pill .icon { width: 15px; height: 15px; }
.hero h1, .hero .hero-title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hero h1 .gradient-text, .hero .hero-title .gradient-text { display: inline-block; padding-bottom: .08em; }
/* hero przeniesiony na koniec strony: bez miejsca na pasek nawigacji */
.hero--end { padding: clamp(80px, 14vh, 160px) 0 clamp(56px, 9vh, 104px); }
.hero-sub { max-width: 700px; margin: 22px auto 0; color: var(--dim); font-size: clamp(1.03rem, 1.35vw, 1.24rem); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 24px; list-style: none; color: var(--muted); font-size: .9rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .icon { width: 16px; height: 16px; color: var(--ok); }

/* Pasek „Na czasie” */
.live-strip { margin-top: clamp(48px, 8vh, 88px); }
.live-label { display: inline-flex; align-items: center; gap: 10px; }
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--danger); animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { to { transform: scale(2.8); opacity: 0; } }
.live-tag { font: 700 .7rem/1 var(--mono); letter-spacing: .14em; color: #FFB3C0; padding: 4px 8px; border-radius: 6px; background: rgba(255, 77, 106, .12); border: 1px solid rgba(255, 77, 106, .3); }
.strip-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(264px, 21vw, 380px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 8px 4px 18px;
  scrollbar-width: none;
}
.strip-row::-webkit-scrollbar { display: none; }
.strip-row > * { scroll-snap-align: start; }
.strip-empty { position: relative; }
.strip-empty .ghost-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 0; grid-template-rows: auto; overflow: hidden; gap: 18px; opacity: .55; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.ghost-card { aspect-ratio: 16 / 9; border-radius: var(--r); border: 1px dashed var(--line-2); background: linear-gradient(135deg, rgba(0, 200, 255, .05), rgba(155, 61, 255, .05)); }
.strip-empty { min-height: 300px; }
.strip-empty .state-block { position: absolute; inset: 0; border: 0; justify-content: center; padding: 16px; background: radial-gradient(closest-side, rgba(10, 11, 15, .96), rgba(10, 11, 15, .82) 60%, rgba(10, 11, 15, 0)); }

/* Statystyki */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #11131A, #0D0F14);
  overflow: hidden;
}
.stat { position: relative; padding: clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-value { display: block; font: 800 clamp(2rem, 3.4vw, 3.1rem)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-label { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: .92rem; }
.stat-label .live-dot { width: 7px; height: 7px; background: var(--ok); }
.stat-label .live-dot::after { background: var(--ok); }
@media (max-width: 860px) {
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Rząd okładek gier */
.cover-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(122px, 9.4vw, 176px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 6px 2px 14px;
  scrollbar-width: none;
}
.cover-row::-webkit-scrollbar { display: none; }
.pop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  scroll-snap-align: start;
  min-width: 0;
}
.pop-card .cover { border-radius: 12px; font-size: 1.6rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pop-card:hover .cover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--c2), 0 18px 34px -14px rgba(47, 123, 255, .7); }
.pop-card[aria-pressed="true"] .cover { box-shadow: 0 0 0 2px var(--c1), 0 0 28px rgba(0, 200, 255, .45); }
.pop-card:focus-visible { outline-offset: 4px; border-radius: 12px; }
.pop-rank {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  font: 800 .76rem/1.3 var(--font-display);
  background: rgba(8, 9, 12, .78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.pop-name { font-weight: 650; font-size: .9rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-count { margin-top: -4px; font-size: .78rem; color: var(--muted); }

/* Funkcje (bento) */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.b-3 { grid-column: span 3; } .b-4 { grid-column: span 4; } .b-5 { grid-column: span 5; }
.b-6 { grid-column: span 6; } .b-7 { grid-column: span 7; } .b-8 { grid-column: span 8; } .b-12 { grid-column: span 12; }
@media (max-width: 1100px) { .b-3, .b-4, .b-5, .b-7, .b-8 { grid-column: span 6; } }
@media (max-width: 720px) { .bento > * { grid-column: span 12; } }
.big-figure { display: block; margin-top: 18px; font: 800 clamp(2.6rem, 4.4vw, 3.8rem)/1 var(--font-display); letter-spacing: -.04em; }
.zero-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; list-style: none; }
.zero-list li { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: .88rem; color: var(--dim); }
.zero-list b { font: 800 1.3rem/1 var(--font-display); color: #fff; }

.buffer-viz { display: flex; align-items: flex-end; gap: 3px; height: 74px; margin-top: 22px; }
.buffer-viz i { flex: 1; height: var(--h); border-radius: 2px; background: #252936; }
.buffer-viz i.hot { background: var(--grad); background-size: 1600% 100%; box-shadow: 0 0 10px rgba(47, 123, 255, .4); }
.buffer-legend { display: flex; justify-content: space-between; margin-top: 10px; font: 500 .74rem var(--mono); color: var(--muted); }
.buffer-legend span:last-child { color: var(--c1); }

.audio-tracks { display: grid; gap: 10px; margin-top: 20px; }
.audio-track { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; font-size: .8rem; color: var(--dim); }
.audio-track > span { display: inline-flex; align-items: center; gap: 6px; }
.audio-track > span .icon { width: 14px; height: 14px; color: var(--muted); }
.audio-wave { display: flex; align-items: center; gap: 2px; height: 26px; padding: 0 8px; border-radius: 8px; background: #11131A; border: 1px solid var(--line); overflow: hidden; }
.audio-wave i { flex: 1; height: var(--h); min-height: 2px; border-radius: 2px; background: var(--c, var(--c2)); opacity: .9; }
.audio-track.is-mic .audio-wave i { --c: var(--c3); }
.audio-track.is-game .audio-wave i { --c: var(--c1); }

.encoders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.encoder { padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.encoder b { display: block; font: 700 .95rem var(--mono); color: #fff; }
.encoder small { color: var(--muted); font-size: .76rem; }

/* Edytor (makieta) */
.editor-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 1100px) { .editor-layout { grid-template-columns: 1fr; } }
.check-list { list-style: none; display: grid; gap: 16px; margin-top: 28px; }
.check-list li { display: flex; gap: 14px; }
.li-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--grad-soft); border: 1px solid rgba(255, 255, 255, .08); color: var(--c1); }
.li-icon .icon { width: 18px; height: 18px; }
.check-list strong { display: block; font-weight: 650; }
.check-list span { color: var(--muted); font-size: .93rem; }
.editor-mock { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: #0E1015; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(47, 123, 255, .45); }
.ed-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.ed-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2E3A; }
.ed-bar span { margin-left: 8px; }
.ed-top { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 12px; padding: 14px; }
.ed-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(0, 200, 255, .35), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(155, 61, 255, .4), transparent 50%),
    linear-gradient(135deg, #1B2340, #0D1020);
}
.ed-title-overlay { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font: 800 clamp(.9rem, 1.6vw, 1.3rem) var(--font-display); text-align: center; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); white-space: nowrap; }
.ed-timecode { position: absolute; left: 10px; bottom: 8px; font: 600 .7rem var(--mono); padding: 2px 6px; border-radius: 5px; background: rgba(0, 0, 0, .55); }
.ed-speed { position: absolute; right: 10px; top: 8px; font: 700 .7rem var(--mono); padding: 2px 7px; border-radius: 5px; background: var(--grad); }
.ed-export { display: flex; flex-direction: column; gap: 6px; font-size: .76rem; }
.ed-export h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 2px; }
.ed-opt { display: flex; justify-content: space-between; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); color: var(--dim); }
.ed-opt b { font-family: var(--mono); color: #fff; }
.ed-opt.is-active { border-color: rgba(0, 200, 255, .5); background: rgba(0, 200, 255, .08); }
.ed-timeline { position: relative; padding: 10px 14px 14px; border-top: 1px solid var(--line); background: #0B0D12; }
.ed-ruler { display: flex; justify-content: space-between; margin-left: 84px; font: 500 .66rem var(--mono); color: #5F6678; margin-bottom: 6px; }
.ed-track { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: center; margin-top: 6px; }
.ed-label { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--muted); }
.ed-label .icon { width: 13px; height: 13px; }
.ed-lane { position: relative; height: 30px; border-radius: 7px; background: #12141B; border: 1px solid var(--line); }
.ed-block { position: absolute; top: 3px; bottom: 3px; display: flex; align-items: center; padding: 0 8px; border-radius: 5px; font-size: .66rem; font-weight: 600; white-space: nowrap; overflow: hidden; color: #fff; }
.ed-block.title { background: linear-gradient(90deg, rgba(245, 184, 75, .85), rgba(245, 184, 75, .55)); color: #1A1300; }
.ed-block.v1 { background: linear-gradient(90deg, #0090C8, #00B5F0); }
.ed-block.v2 { background: linear-gradient(90deg, #2459D6, #2F7BFF); }
.ed-block.v3 { background: linear-gradient(90deg, #5A35D8, #7A45F2); }
.ed-block.v4 { background: linear-gradient(90deg, #7F2FD0, #9B3DFF); }
.ed-block.mic { background: linear-gradient(90deg, rgba(34, 211, 154, .7), rgba(34, 211, 154, .45)); color: #032; }
.ed-trans { position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; transform: translateY(-50%) rotate(45deg); border-radius: 3px; background: #fff; box-shadow: 0 0 0 3px #12141B; }
.ed-wave { position: absolute; inset: 4px 6px; display: flex; align-items: center; gap: 2px; }
.ed-wave i { flex: 1; height: var(--h); border-radius: 1px; background: rgba(155, 61, 255, .7); }
.ed-playhead { position: absolute; top: 4px; bottom: 6px; left: calc(84px + 14px + 22%); width: 2px; background: var(--c1); box-shadow: 0 0 12px var(--c1); animation: playhead 9s linear infinite; }
.ed-playhead::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: var(--c1); }
@keyframes playhead { from { left: calc(84px + 14px); } to { left: calc(100% - 16px); } }
/* nowsze przeglądarki: głowica jedzie przez transform (bez przeliczania układu co klatkę) */
@keyframes playheadX { from { transform: none; } to { transform: translateX(calc(100cqw - 86px)); } }
@supports (width: 1cqw) {
  .ed-timeline { container-type: inline-size; }
  .ed-playhead { left: calc(84px + 14px); animation-name: playheadX; }
}
@media (max-width: 560px) { .ed-top { grid-template-columns: 1fr; } .ed-export { display: none; } }

/* Porównanie */
.compare-wrap { border-radius: var(--r-lg); border: 1px solid var(--line); background: #0E1015; overflow-x: auto; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; }
.compare th, .compare td { padding: 16px clamp(14px, 2vw, 26px); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { background: #12141B; color: var(--muted); font-size: .84rem; font-weight: 600; }
.compare tbody th { font-weight: 600; width: 30%; }
.compare tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.compare .col-vexlip { width: 36%; background: linear-gradient(180deg, rgba(47, 123, 255, .1), rgba(155, 61, 255, .06)); }
.compare thead .col-vexlip { color: #fff; position: relative; }
.compare thead .col-vexlip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.compare tbody tr:hover th, .compare tbody tr:hover td { background-color: rgba(255, 255, 255, .02); }
.brand-cell { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 800; }
.brand-cell img { width: 26px; height: 26px; border-radius: 7px; }
.yes, .no, .meh { display: inline-flex; align-items: center; gap: 10px; }
.yes { color: var(--text); font-weight: 550; }
.no, .meh { color: var(--muted); }
.yes .icon { color: var(--ok); }
.no .icon { color: var(--danger); }
.meh .icon { color: var(--warn); }
.compare-note { margin-top: 14px; text-align: center; font-size: .82rem; color: var(--muted); }

/* Kroki */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step-num { display: block; font: 800 2.6rem/1 var(--font-display); letter-spacing: -.04em; margin-bottom: 18px; }
.step-visual { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; color: var(--dim); font-size: .88rem; }
.step-visual .icon { width: 16px; height: 16px; }
.pulse-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: livePulse 1.8s ease-out infinite; }

/* Wymagania */
.req-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .req-grid { grid-template-columns: 1fr; } }
.req p { color: var(--text); }
.req small { display: block; margin-top: 8px; color: var(--muted); font-size: .84rem; }
.req-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(47, 123, 255, .06); color: var(--dim); font-size: .93rem; }
.req-note .icon { color: var(--c1); margin-top: 3px; }
.download-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(100deg, rgba(0, 200, 255, .08), rgba(155, 61, 255, .08)); }
.download-box strong { display: block; font-size: 1.1rem; }
.download-box span { color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq { max-width: 920px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: #0F1116; transition: border-color .2s, background-color .2s; }
.faq details[open] { border-color: var(--line-2); background: #12141B; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  font-size: 1.02rem;
  border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .25s var(--ease), margin .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; border-color: var(--c1); }
.faq summary:hover { color: #fff; }
.faq-a { padding: 0 22px 20px; color: var(--dim); }
.faq-a p + p { margin-top: 10px; }
.faq-a a { color: var(--c1); text-decoration: underline; text-underline-offset: 3px; }

/* CTA */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px);
  border-radius: 28px;
  border: 1px solid var(--line-2);
  text-align: center;
  background: #0E1016;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 140%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 25% 50%, rgba(0, 200, 255, .28), transparent),
    radial-gradient(closest-side at 50% 40%, rgba(47, 123, 255, .3), transparent),
    radial-gradient(closest-side at 75% 50%, rgba(155, 61, 255, .3), transparent);
  filter: blur(30px);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; }
.cta-band p { max-width: 620px; margin: 14px auto 0; color: var(--dim); }
.cta-meta { font-size: .85rem; color: var(--muted) !important; margin-top: 18px !important; }

/* Stopka */
.site-footer { margin-top: clamp(40px, 6vh, 72px); padding: 56px 0 32px; border-top: 1px solid var(--line); background: #08090C; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { max-width: 380px; margin-top: 14px; color: var(--muted); font-size: .92rem; }
.footer-col h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--dim); font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: #6E7689; font-size: .82rem; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--text); }
.site-footer--slim { margin-top: 0; padding: 22px 0; }
.site-footer--slim .footer-bottom { margin: 0; padding: 0; border: 0; }

/* ---------- Społeczność ---------- */
.cm-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding-top: var(--nav-h);
}
.cm-side {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(10, 11, 15, .6);
}
.cm-side-scroll { flex: 1; overflow-y: auto; padding: 18px 14px 20px; scrollbar-width: thin; scrollbar-color: #2C303C transparent; }
.side-head { display: none; align-items: center; justify-content: space-between; padding: 14px 14px 0; }
.side-head h2 { font-size: 1.1rem; }
.side-title { padding: 0 8px; margin: 0 0 8px; font: 700 .72rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side-group + .side-group { margin-top: 22px; }
.side-links { display: grid; gap: 2px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 0;
  background: none;
  color: #C9CFDD;
  font-size: .92rem;
  font-weight: 550;
  text-align: left;
  transition: background-color .2s, color .2s;
}
.side-link .icon { width: 18px; height: 18px; color: var(--muted); }
.side-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-link[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .07); }
.side-link[aria-current="true"] .icon { color: var(--c1); }
.game-list { display: grid; gap: 2px; margin-top: 10px; }
.game-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  border: 0;
  background: none;
  color: #C9CFDD;
  font-size: .9rem;
  text-align: left;
  transition: background-color .2s, color .2s;
}
.game-item .cover { width: 30px; height: 40px; border-radius: 6px; font-size: 10px; }
.game-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.game-item[aria-current="true"] { color: #fff; background: linear-gradient(90deg, rgba(47, 123, 255, .2), rgba(155, 61, 255, .06)); box-shadow: inset 2px 0 0 var(--c1); }
.gi-name { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-count { padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .05); font: 500 .72rem/1.4 var(--mono); color: var(--muted); }
.game-item.is-empty .gi-name { color: var(--muted); }
.game-item.is-empty .gi-count { opacity: .5; }
.gi-all { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--grad); color: #fff; }
.gi-all .icon { width: 16px; height: 16px; }
.game-list-msg { padding: 10px 8px; color: var(--muted); font-size: .85rem; }
.sk-item { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 6px 8px; }
.sk-item .sk:first-child { height: 40px; border-radius: 6px; }
.sk-item .sk:last-child { height: 12px; }
.side-promo {
  margin: 0 14px 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: radial-gradient(240px 120px at 0% 0%, rgba(0, 200, 255, .16), transparent), radial-gradient(240px 140px at 100% 100%, rgba(155, 61, 255, .18), transparent), #10121A;
}
.side-promo strong { display: block; font-size: .98rem; }
.side-promo p { margin: 4px 0 12px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.side-promo .btn { width: 100%; }

.cm-main { min-width: 0; padding: 24px clamp(16px, 2.6vw, 40px) 48px; }
.cm-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  padding: clamp(22px, 3vw, 36px);
  margin-bottom: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #0E1016;
}
.cm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(0, 200, 255, .18), transparent 70%),
    radial-gradient(520px 260px at 100% 100%, rgba(155, 61, 255, .2), transparent 70%);
}
.cm-hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -.035em; }
.cm-hero p { margin-top: 8px; color: var(--dim); max-width: 60ch; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-stats .chip { padding: 7px 12px; font-size: .84rem; }
.hero-stats b { color: #fff; font-family: var(--mono); }

.game-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: clamp(18px, 2.4vw, 28px);
  margin-bottom: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--tile, #13151C);
}
.game-banner-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: saturate(1.15); }
.game-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 11, 15, .95) 0%, rgba(10, 11, 15, .7) 45%, rgba(10, 11, 15, .25)), linear-gradient(to top, rgba(10, 11, 15, .9), transparent 60%); }
.game-banner-content { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 22px; width: 100%; }
.game-banner-content > .cover { width: clamp(80px, 8vw, 112px); border-radius: 12px; font-size: 1.6rem; box-shadow: 0 16px 40px -10px #000, 0 0 0 1px rgba(255, 255, 255, .1); }
.game-banner-text { flex: 1; min-width: 200px; }
.game-banner-text .eyebrow { margin-bottom: 6px; }
.game-banner-text h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.game-banner-text p { margin-top: 6px; color: var(--dim); }

.cm-rail { margin-bottom: 26px; }
.cm-toolbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 18px;
  background: linear-gradient(to bottom, var(--bg) 75%, rgba(10, 11, 15, 0));
}
.cm-toolbar .search-field { flex: 1 1 260px; max-width: 420px; margin-left: auto; }
.result-count { color: var(--muted); font-size: .86rem; font-family: var(--mono); min-width: 9ch; text-align: right; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; border: 1px solid var(--line); background: #11131A; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 650;
  font-size: .9rem;
  white-space: nowrap;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.tab .icon { width: 16px; height: 16px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #fff; background: linear-gradient(100deg, rgba(0, 200, 255, .2), rgba(47, 123, 255, .22), rgba(155, 61, 255, .2)); box-shadow: inset 0 0 0 1px rgba(47, 123, 255, .5); }
.tab[aria-selected="true"] .icon { color: var(--c1); }
.drawer-toggle { display: none; }
.load-more { display: flex; justify-content: center; padding-top: 28px; }
.sentinel { height: 1px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.page-community .nav-search { display: none; }

@media (min-width: 2400px) { .cm-layout { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 1024px) {
  .cm-layout { grid-template-columns: minmax(0, 1fr); }
  .cm-side {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 150;
    width: min(320px, 86vw);
    height: 100%;
    background: #0D0F14;
    transform: translateX(-102%);
    transition: transform .3s var(--ease);
    box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
  }
  .drawer-open .cm-side { transform: none; }
  .side-head { display: flex; }
  .drawer-toggle { display: inline-flex; }
  .drawer-open, .drawer-open body { overflow: hidden; }
}
@media (max-width: 640px) {
  .cm-toolbar .search-field { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .result-count { display: none; }
  .tabs { order: 2; flex: 1 1 100%; }
  .tab { flex: 1 1 auto; justify-content: center; padding: 0 8px; font-size: .84rem; }
  .tab .icon { display: none; }
}

/* Tryb osadzony (aplikacja desktopowa) */
.embed .site-nav, .embed .site-footer, .embed .skip-link { display: none !important; }
.embed .cm-layout { padding-top: 0; max-width: none; margin: 0; }
.embed .clip-page .container { max-width: none; }
.embed .cm-side { border-left: 0; }
.embed .cm-side { top: 0; height: 100vh; }
.embed .cm-toolbar { top: 0; }
.embed .cm-main { padding-top: 16px; }
.embed .cm-hero { padding: 20px 24px; margin-bottom: 20px; }
.embed .cm-hero h1 { font-size: 1.6rem; }
.embed .side-promo { display: none; }
.embed .clip-page { padding-top: 0; }

/* ---------- Strona klipu ---------- */
.clip-page { padding-top: var(--nav-h); }
.theater { position: relative; isolation: isolate; overflow: hidden; background: #040507; border-bottom: 1px solid var(--line); }
.theater-glow { position: absolute; inset: -20%; z-index: -1; background-size: cover; background-position: center; filter: blur(80px) saturate(1.5); opacity: .4; }
.theater::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(4, 5, 7, .2), rgba(4, 5, 7, .7)); }
.theater-inner { width: min(100%, 1640px, calc((100vh - var(--nav-h) - 120px) * 16 / 9)); min-width: min(100%, 640px); margin: 0 auto; padding: clamp(0px, 2vw, 28px) clamp(0px, 2vw, 28px); }
.player-shell { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: clamp(0px, 1.2vw, 16px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .06); }
.player-shell video { width: 100%; height: 100%; background: #000; }
.player-shell.sk { box-shadow: none; }
.clip-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(24px, 3vw, 48px); padding-top: 28px; padding-bottom: 32px; }
@media (max-width: 1100px) { .clip-layout { grid-template-columns: minmax(0, 1fr); } }
.clip-main h1 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; overflow-wrap: anywhere; margin-top: 14px; }
.clip-owner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.owner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.owner .avatar { width: 44px; height: 44px; font-size: .9rem; }
.owner strong { display: block; font-size: 1rem; }
.owner small { color: var(--muted); font-size: .84rem; }
.clip-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--dim); font-size: .92rem; }
.clip-facts > span { display: inline-flex; align-items: center; gap: 7px; }
.clip-facts .icon { width: 16px; height: 16px; color: var(--muted); }
.clip-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.clip-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(100deg, rgba(0, 200, 255, .07), rgba(155, 61, 255, .08)); }
.clip-promo strong { display: block; }
.clip-promo span { color: var(--muted); font-size: .88rem; }
.clip-aside h2 { font-size: 1.1rem; font-weight: 750; }
.clip-aside .head-row { margin-bottom: 14px; align-items: center; }
.related-list { display: grid; gap: 14px; }
@media (max-width: 1100px) and (min-width: 640px) {
  .related-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* ---------- 404 ---------- */
.nf { position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: calc(var(--nav-h) + 40px) 20px 60px; text-align: center; overflow: hidden; }
.nf-code { font: 900 clamp(6rem, 20vw, 12rem)/1 var(--font-display); letter-spacing: -.06em; }
.nf h1 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin-top: 8px; }
.nf p { max-width: 540px; margin: 14px auto 0; color: var(--dim); }

/* ---------- Ograniczenie ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .await-scroll, .await-rise > * { opacity: 1; }
  .aurora i { animation: none; }
}

/* =========================================================================
   Przejścia sterowane przewijaniem (js/scroll-fx.js)
   ========================================================================= */
.scene { position: relative; }
.scene-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.fx-static .scene { height: auto !important; }
.fx-static .scene-sticky { position: relative; }

/* ---------- Scena 1: ściana gier → ekran gry ---------- */
.scene-zoom { height: 420vh; }
.scene-zoom .scene-sticky { perspective: 1500px; background: radial-gradient(ellipse at 50% 60%, #12162A 0%, var(--bg) 70%); }
.zoom-wall { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; gap: var(--gap, 24px); transform-origin: 50% 50%; transform-style: flat; }
/* każdy rząd to osobna warstwa GPU: ruch taśmy nie przerysowuje całej ściany (bez migania) */
.zoom-row { display: flex; gap: var(--gap, 24px); will-change: transform; backface-visibility: hidden; }
.zoom-tile {
  position: relative;
  flex: none;
  width: var(--w, 400px);
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--w, 400px) * .035);
  overflow: hidden;
  background: var(--tile, #1A1D27) center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
/* przyciemnienie stałe (nie zależy od --z), więc przewijanie nie przerysowuje wszystkich kafelków */
.zoom-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 15, .15), rgba(10, 11, 15, .6)); }
/* środkowy „ekran gry” leży pod logo — bez ramki/poświaty (wyglądała jak migający kwadrat) */
.zoom-tile.is-center::after { opacity: calc(1 - var(--z, 0) * .85); }
/* klip CS2 w „ekranie gry” (pod przyciemnieniem ::after) */
.zoom-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; background: transparent; }
/* opacity ustawia js/scroll-fx.js (1 − zoom) */
.zoom-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(10, 11, 15, .92) 78%); }
.zoom-intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; pointer-events: none; }
.zoom-intro h2 { font: 800 clamp(2.6rem, 7.4vw, 7rem)/.98 var(--font-display); letter-spacing: -.05em; text-shadow: 0 10px 60px rgba(0, 0, 0, .8); }
.zoom-intro .eyebrow { margin-bottom: 18px; }

/* Logo z fioletowym LED-em biegnącym po konturach (jak w aplikacji; js/scroll-fx.js → initLogoLed) */
.logo-led { --size: clamp(200px, 34vmin, 420px); position: relative; width: var(--size); height: var(--size); --x: 50%; --y: 96%; }
.logo-led::before { content: ""; position: absolute; inset: -70%; border-radius: 50%; background: radial-gradient(circle, rgba(10, 11, 15, .92) 0%, rgba(10, 11, 15, .78) 30%, rgba(10, 11, 15, 0) 68%); pointer-events: none; }
.logo-led::after { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(circle, rgba(155, 61, 255, .34), rgba(47, 123, 255, .12) 48%, transparent 70%); filter: blur(12px); animation: ledBreath 4.5s ease-in-out infinite; pointer-events: none; }
.logo-led-img, .logo-led > i { z-index: 1; }
button.logo-led { display: block; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; border-radius: 24px; transition: transform .35s var(--ease); }
button.logo-led:hover { transform: scale(1.04); }
button.logo-led:hover .logo-led-glow { opacity: 1; filter: blur(calc(var(--size) * .035)) saturate(1.5) brightness(1.25); }
button.logo-led:active { transform: scale(.98); }
button.logo-led:focus-visible { outline: 2px solid rgba(0, 200, 255, .7); outline-offset: 10px; }

/* intro.html — ekran startowy w zakładce Pulpit aplikacji */
.page-intro, .page-intro body { height: 100%; overflow: hidden; background: var(--bg); }
.scene-intro { height: 100vh; height: 100svh; }
.scene-intro .zoom-hud, .scene-intro .zoom-outro { display: none; }
.scene-intro .scene-sticky { transition: opacity .45s ease; }
.scene-intro.is-entered .scene-sticky { opacity: 0; }
/* aplikacja: kliknięcie logo rozmywa ścianę gier (bez zoomu do gry) */
.scene-intro .zoom-wall { transition: filter .5s ease; }
.scene-intro .zoom-intro { transition: opacity .42s ease, transform .5s var(--ease); }
.scene-intro.is-blurring .zoom-wall { filter: blur(18px) brightness(.35); }
.scene-intro.is-blurring .zoom-intro { opacity: 0 !important; transform: scale(.94) !important; }
.intro-hint { margin-top: 30px; color: var(--muted); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; animation: hintPulse 2.4s ease-in-out infinite; }
@keyframes hintPulse { 50% { opacity: .45; } }
/* pasek ładowania pod logo (ekran startowy aplikacji) → po załadowaniu „Kliknij logo” w tym samym miejscu */
.intro-under { position: relative; display: grid; justify-items: center; margin-top: 30px; min-height: 44px; }
.intro-under > * { grid-area: 1 / 1; }
.intro-under .intro-hint { margin-top: 2px; }
.intro-load { width: min(280px, 70vw); opacity: 0; visibility: hidden; transition: opacity .32s ease, visibility 0s .32s; }
.is-loading .intro-load { opacity: 1; visibility: visible; transition: none; }
.is-loading .intro-hint { opacity: 0; animation: none; }
.intro-hint { transition: opacity .32s ease .12s; }
.intro-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.intro-bar > i { display: block; height: 100%; border-radius: inherit; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, #22d3ee, #2f7bff 50%, #9b3dff); box-shadow: 0 0 12px rgba(107, 92, 255, .8);
  transition: transform .38s var(--ease); }
.intro-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .74rem; color: var(--muted); }
.intro-pct { font-variant-numeric: tabular-nums; opacity: .7; }
.is-loading .logo-led { cursor: progress; }
@keyframes ledBreath { 50% { opacity: .6; transform: scale(.94); } }
.logo-led-img { position: relative; display: block; width: 100%; height: 100%; filter: drop-shadow(0 18px 50px rgba(0, 0, 0, .7)); animation: ledIn .9s var(--ease) both; }
@keyframes ledIn { from { opacity: 0; transform: scale(.86); filter: blur(10px) drop-shadow(0 18px 50px rgba(0, 0, 0, .7)); } }
.logo-led-trace, .logo-led-line, .logo-led-glow > i {
  position: absolute; inset: 0;
  -webkit-mask: var(--led-mask) center / 100% 100% no-repeat;
          mask: var(--led-mask) center / 100% 100% no-repeat;
}
.logo-led-trace { background: rgba(177, 107, 255, .31); }
.logo-led-line, .logo-led-glow > i {
  background: radial-gradient(ellipse 30% 30% at var(--x) var(--y), #fff 0%, #F0DAFF 24%, #B855FF 50%, rgba(138, 43, 255, 0) 100%);
}
.logo-led-glow { position: absolute; inset: 0; filter: blur(calc(var(--size) * .03)) saturate(1.3); opacity: .95; }
.logo-led:not(.is-ready) > i { visibility: hidden; }
.zoom-scroll-hint { display: flex; align-items: center; gap: 10px; margin-top: 34px; color: var(--muted); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.mouse { width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 12px; position: relative; }
.mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

.zoom-hud { position: absolute; inset: 0; pointer-events: none; opacity: 0; font-family: var(--mono); }
@keyframes recBlink { 50% { opacity: .25; } }
.has-clip .hud-cross { display: none; }
.hud-cross { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); }
.hud-cross i { position: absolute; background: #6BFF9A; box-shadow: 0 0 4px rgba(0, 0, 0, .8); }
.hud-cross i:nth-child(1) { left: 16px; top: 0; width: 2px; height: 11px; }
.hud-cross i:nth-child(2) { left: 16px; bottom: 0; width: 2px; height: 11px; }
.hud-cross i:nth-child(3) { top: 16px; left: 0; width: 11px; height: 2px; }
.hud-cross i:nth-child(4) { top: 16px; right: 0; width: 11px; height: 2px; }
.hud-key { position: absolute; left: 50%; bottom: 22%; transform: translate(-50%, 20px) scale(.8); opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.hud-key kbd { display: inline-block; min-width: 92px; padding: 16px 20px; font: 800 2rem var(--mono); text-align: center; color: #fff; border-radius: 16px; background: linear-gradient(180deg, #232737, #151821); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 8px 0 #0B0D12, 0 18px 40px rgba(0, 0, 0, .6), 0 0 40px rgba(0, 200, 255, .35); transition: transform .12s, box-shadow .12s; }
.zoom-hud.show-key .hud-key { opacity: 1; transform: translate(-50%, 0) scale(1); }
.zoom-hud.key-down .hud-key kbd { transform: translateY(7px); box-shadow: 0 1px 0 #0B0D12, 0 8px 20px rgba(0, 0, 0, .6), 0 0 70px rgba(0, 200, 255, .8); }
/* powiadomienie po zapisie: prawy górny róg ekranu gry (pod paskiem strony), 1:1 jak w aplikacji */
.zoom-hud .vx-toast { position: absolute; top: calc(var(--nav-h) + 16px); right: 24px; }
.zoom-outro { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; padding: 0 20px; opacity: 0; pointer-events: none; }
.zoom-outro p { display: inline-block; padding: 16px 26px; border-radius: 18px; background: rgba(10, 11, 15, .72); backdrop-filter: blur(14px); border: 1px solid var(--line-2); font: 700 clamp(1.15rem, 2.2vw, 1.8rem) var(--font-display); letter-spacing: -.02em; }
.fx-static .zoom-hud, .fx-static .zoom-outro, .fx-static .zoom-scroll-hint { display: none; }

/* ---------- Scena 2: zdanie podświetlane przewijaniem ---------- */
.statement-sec { padding: clamp(80px, 16vh, 180px) 0; }
.statement { max-width: 1180px; margin: 0 auto; font: 800 clamp(1.9rem, 4.6vw, 4.2rem)/1.12 var(--font-display); letter-spacing: -.035em; text-align: center; }
.statement em { font-style: normal; }
.statement .w { color: rgba(233, 236, 243, .14); transition: color .35s var(--ease), text-shadow .35s; }
.statement .w.on { color: var(--text); }
.statement .w.em.on { color: #7FD8FF; text-shadow: 0 0 30px rgba(0, 200, 255, .45); }
.fx-static .statement .w { color: var(--text); }

/* ---------- Scena 3: historia w trzech krokach ---------- */
.scene-story { height: 380vh; }
.story-grid { height: 100%; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 90px); align-items: center; padding-top: var(--nav-h); }
.story-copy h2 { font: 800 clamp(2rem, 3.8vw, 3.4rem)/1.05 var(--font-display); letter-spacing: -.04em; margin: 12px 0 clamp(20px, 4vh, 40px); }
.story-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.story-step { display: flex; gap: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; opacity: .38; transition: opacity .5s var(--ease), background .5s, border-color .5s, transform .5s var(--ease); }
.story-step h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 750; letter-spacing: -.02em; }
.story-step p { margin-top: 6px; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .5s; }
.story-num { font-size: .85rem; font-weight: 700; color: var(--muted); padding-top: 4px; }
.scene-story[data-step="0"] .story-step[data-step="0"],
.scene-story[data-step="1"] .story-step[data-step="1"],
.scene-story[data-step="2"] .story-step[data-step="2"] { opacity: 1; background: linear-gradient(135deg, rgba(0, 200, 255, .07), rgba(155, 61, 255, .09)); border-color: rgba(255, 255, 255, .08); transform: translateX(8px); }
.scene-story[data-step="0"] .story-step[data-step="0"] p,
.scene-story[data-step="1"] .story-step[data-step="1"] p,
.scene-story[data-step="2"] .story-step[data-step="2"] p { max-height: 120px; opacity: 1; }
.scene-story[data-step="0"] .story-step[data-step="0"] .story-num,
.scene-story[data-step="1"] .story-step[data-step="1"] .story-num,
.scene-story[data-step="2"] .story-step[data-step="2"] .story-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story-dots { display: flex; gap: 8px; margin: 22px 0 0 18px; }
.story-dots i { width: 28px; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; position: relative; }
.story-dots i::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.scene-story[data-step="0"] .story-dots i:nth-child(1)::after,
.scene-story[data-step="1"] .story-dots i:nth-child(2)::after,
.scene-story[data-step="2"] .story-dots i:nth-child(3)::after { transform: scaleX(var(--sp, 0)); }
.scene-story[data-step="1"] .story-dots i:nth-child(1)::after,
.scene-story[data-step="2"] .story-dots i:nth-child(-n+2)::after { transform: none; }

.story-stage { position: relative; }
/* osobna warstwa: obrót przy przewijaniu nie rozmywa poświaty od nowa w każdej klatce */
.story-glow { position: absolute; inset: -12% -8%; z-index: -1; background: radial-gradient(closest-side at 35% 45%, rgba(0, 200, 255, .28), transparent), radial-gradient(closest-side at 70% 60%, rgba(155, 61, 255, .32), transparent); filter: blur(40px); transform: rotate(calc(var(--p, 0) * 120deg)); will-change: transform; }
.story-window { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: #0E1015; overflow: hidden; box-shadow: 0 50px 120px -40px rgba(47, 123, 255, .5); transform: perspective(1600px) rotateY(calc(-8deg + var(--p, 0) * 16deg)) rotateX(4deg); transition: transform .2s linear; }
.story-bar-title { position: relative; display: inline-grid; }
.story-bar-title b { grid-area: 1 / 1; font-weight: 500; opacity: 0; transition: opacity .4s; }
.scene-story[data-step="0"] .story-bar-title b[data-t="0"], .scene-story[data-step="1"] .story-bar-title b[data-t="1"], .scene-story[data-step="2"] .story-bar-title b[data-t="2"] { opacity: 1; }
.story-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0B0D12; }
.st-panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.06) translateY(20px); filter: blur(10px); transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s, visibility 0s .8s; }
.scene-story[data-step="0"] .st-panel[data-panel="0"],
.scene-story[data-step="1"] .st-panel[data-panel="1"],
.scene-story[data-step="2"] .st-panel[data-panel="2"],
.scene-story:not([data-step]) .st-panel[data-panel="0"] { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s, visibility 0s; }

/* panel 1: gra + bufor */
.st-frame { position: absolute; inset: 0; background: var(--tile, #1A1D27) center / cover no-repeat; transform: scale(calc(1.15 - var(--sp, 0) * .12)); }
.st-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 30%, rgba(0, 0, 0, .75)); }
.st-chip { position: absolute; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(10, 11, 15, .72); backdrop-filter: blur(8px); border: 1px solid var(--line-2); }
.st-chip--rec { left: 14px; }
.st-chip--rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: recBlink 1.6s steps(2) infinite; }
.st-chip--fps { right: 14px; color: #8FF0C8; }
.st-chip--fps em { font-style: normal; color: var(--muted); }
.st-buffer { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 14px 10px; border-radius: 14px; background: rgba(10, 11, 15, .78); backdrop-filter: blur(10px); border: 1px solid var(--line-2); }
.st-bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.st-bars i { flex: 1; height: var(--h); border-radius: 2px; background: #252938; transition: background .25s; }
.st-bars i.on { background: linear-gradient(180deg, var(--c1), var(--c3)); }
.st-buffer-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: .7rem; color: var(--muted); }
.st-buffer-legend span:nth-child(2) { color: #fff; }

/* panel 2: edytor */
.st-edit { display: flex; flex-direction: column; }
.st-preview { position: relative; flex: 1; background: var(--tile, #1A1D27) center / cover no-repeat; overflow: hidden; }
.st-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .6)); }
.st-caption { position: absolute; left: 50%; top: 40%; z-index: 1; transform: translate(-50%, -50%) scale(calc(.9 + var(--sp, 0) * .2)) rotate(-3deg); font: 900 clamp(1.4rem, 3vw, 2.6rem) var(--font-display); color: #FFD23F; letter-spacing: -.02em; -webkit-text-stroke: 2px #000; text-shadow: 0 6px 0 #000, 0 0 30px rgba(255, 210, 63, .5); white-space: nowrap; }
.st-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-caption { transition: opacity .2s; }
.st-caption.is-off { opacity: 0; }
.st-tc { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-size: .74rem; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .6); }
.st-timeline { position: relative; padding: 10px 12px 12px; background: #0B0D12; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.st-lane { position: relative; height: 22px; border-radius: 6px; background: #12141B; border: 1px solid var(--line); }
.st-lane span { position: absolute; top: 2px; bottom: 2px; display: flex; align-items: center; padding: 0 8px; border-radius: 4px; font-size: .64rem; font-weight: 700; white-space: nowrap; overflow: hidden; color: #fff; }
.st-lane--text span { background: linear-gradient(90deg, #F5B84B, #E6A23C); color: #1A1300; }
.st-lane--fx span { background: linear-gradient(90deg, #FF4D6A, #D23A8F); }
.st-lane--video { height: 30px; }
.st-lane--video .v1 { background: linear-gradient(90deg, #0090C8, #00B5F0); }
.st-lane--video .v2 { background: linear-gradient(90deg, #2459D6, #2F7BFF); }
.st-lane--video .v3 { background: linear-gradient(90deg, #5A35D8, #9B3DFF); }
.st-wave { position: absolute; inset: 3px 6px; display: flex; align-items: center; gap: 2px; }
.st-wave i { flex: 1; height: var(--h); border-radius: 1px; background: rgba(34, 211, 154, .65); }
.st-playhead { position: absolute; top: 4px; bottom: 6px; left: calc(12px + var(--sp, 0) * (100% - 24px)); width: 2px; background: #fff; box-shadow: 0 0 10px #fff; }
.st-playhead::before { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top-color: #fff; }
@supports (width: 1cqw) {
  .st-timeline { container-type: inline-size; }
  .st-playhead { left: 12px; transform: translateX(calc(var(--sp, 0) * 100cqw)); }
}

/* panel 3: publikacja */
.st-share { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; align-content: center; gap: 16px; padding: 20px; background: radial-gradient(circle at 30% 20%, rgba(0, 200, 255, .14), transparent 55%), radial-gradient(circle at 80% 80%, rgba(155, 61, 255, .18), transparent 55%), #0B0D12; }
.st-card { width: min(78%, 460px); border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); transform: translateY(calc((1 - var(--sp, 0)) * 20px)) rotate(calc((1 - var(--sp, 0)) * -2deg)); }
.st-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--tile, #1A1D27) center / cover no-repeat; }
.st-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(10, 11, 15, .6); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.st-play .icon { width: 22px; height: 22px; margin-left: 3px; }
.st-dur { position: absolute; right: 10px; bottom: 10px; font-size: .72rem; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); }
.st-meta { padding: 12px 14px 14px; display: grid; gap: 4px; }
.st-meta > b { font-size: 1rem; }
.st-meta > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.st-ava { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .6rem; font-weight: 800; }
.st-stats { display: flex; gap: 16px; margin-top: 6px; font-size: .85rem; color: var(--dim); }
.st-stats span { display: inline-flex; align-items: center; gap: 6px; }
.st-stats em { font-style: normal; }
.st-stats .icon { width: 15px; height: 15px; }
.st-like { color: #FF7A93; }
.st-link { display: flex; align-items: center; gap: 10px; width: min(78%, 460px); padding: 10px 12px; border-radius: 12px; background: #0E1016; border: 1px solid var(--line-2); font-size: .8rem; color: var(--dim); }
.st-link .icon { width: 16px; height: 16px; color: var(--c1); flex: none; }
.st-link > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-copied { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; font-size: .74rem; background: var(--grad); color: #fff; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease); }
.st-copied .icon { width: 13px; height: 13px; color: #fff; }
.scene-story.is-copied .st-copied { opacity: 1; transform: none; }
.st-hearts { position: absolute; right: 12%; bottom: 18%; width: 40px; height: 200px; pointer-events: none; }
.st-hearts i { position: absolute; bottom: 0; left: 50%; width: 18px; height: 18px; background: #FF4D6A; clip-path: path("M9 16 1.6 8.8A4.4 4.4 0 0 1 9 3.3a4.4 4.4 0 0 1 7.4 5.5Z"); opacity: 0; }
.scene-story[data-step="2"] .st-hearts i { animation: heartFloat 2.4s ease-out infinite; }
.st-hearts i:nth-child(2) { animation-delay: .5s !important; margin-left: -18px; }
.st-hearts i:nth-child(3) { animation-delay: 1s !important; margin-left: 8px; background: #FF7AD0; }
.st-hearts i:nth-child(4) { animation-delay: 1.5s !important; margin-left: -6px; }
.st-hearts i:nth-child(5) { animation-delay: 1.9s !important; margin-left: 14px; background: #B88CFF; }
@keyframes heartFloat { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-180px) scale(1.2) rotate(18deg); } }

@media (max-width: 900px) {
  .scene-story { height: 340vh; }
  .story-grid { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 18px; }
  .story-stage { order: -1; }
  .story-copy h2 { display: none; }
  .story-copy .eyebrow { display: none; }
  .story-step { display: none; }
  .scene-story[data-step="0"] .story-step[data-step="0"],
  .scene-story[data-step="1"] .story-step[data-step="1"],
  .scene-story[data-step="2"] .story-step[data-step="2"] { display: flex; transform: none; }
  .story-window { transform: none; }
}
.fx-static .story-step { opacity: 1; }
.fx-static .story-step p { max-height: none; opacity: 1; }

/* ---------- Scena 4: przewijanie w bok ---------- */
.scene-hs { height: 300vh; }
.scene-hs .scene-sticky { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 40px); padding-top: var(--nav-h); }
.hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hs-head h2 { font: 800 clamp(2rem, 4.2vw, 3.6rem)/1.04 var(--font-display); letter-spacing: -.04em; margin-top: 10px; }
.hs-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 10px max(clamp(16px, 4vw, 56px), calc((100vw - var(--maxw)) / 2 + 56px)); width: max-content; will-change: transform; }
.hs-card { width: clamp(270px, 27vw, 460px); flex: none; transform-origin: 50% 60%; }
.hs-card .clip-thumb { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.hs-bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.hs-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.fx-static .hs-track { width: auto; overflow-x: auto; }

/* ---------- Elementy przejeżdżające przez ekran ---------- */
[data-track="tilt"] { transform-origin: 50% 0; will-change: transform; }
[data-track="tilt"].reveal { transition: opacity .7s var(--ease); }
[data-track="tilt"] .ed-playhead { animation-play-state: running; }
[data-track="cta"] { transform-origin: 50% 50%; will-change: transform, opacity; }
[data-track="cta"]::before { opacity: calc(.3 + var(--t, 1) * .7); transform: scale(calc(.7 + var(--t, 1) * .3)); }.hs-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.clip-edit { left: 10px; bottom: 10px; background: var(--grad); color: #fff; letter-spacing: .06em; font-size: .66rem; }
.nav-reels { position: relative; }
.nav-reels::after { content: ""; position: absolute; top: 7px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #B88CFF; box-shadow: 0 0 8px #9B3DFF; }
.pop-card { position: relative; }
.pop-mod { position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 7px; font: 800 .68rem var(--mono); letter-spacing: .08em; color: #fff; background: linear-gradient(135deg, #FF8A3D, #FF4D6A); box-shadow: 0 6px 16px -6px rgba(255, 77, 106, .9); }

/* =========================================================================
   Wydajność: animacje poza ekranem są wstrzymane (klasa .anim-off z js/api.js)
   ========================================================================= */
.anim-off, .anim-off::before, .anim-off::after,
.anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }

/* =========================================================================
   Podpowiedź przy pobieraniu na telefonie (aplikacja działa tylko na Windows)
   ========================================================================= */
.pc-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  max-width: 520px;
  margin: 14px auto 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 200, 255, .3);
  background: rgba(0, 200, 255, .07);
  color: var(--dim);
  font-size: .88rem;
  line-height: 1.45;
  text-align: left;
}
.pc-note > .icon { width: 20px; height: 20px; color: var(--c1); }
.pc-note > span { flex: 1 1 190px; min-width: 0; }
.pc-note b { color: #fff; font-weight: 650; }
.pc-note-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .05);
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
}
.pc-note-copy .icon { width: 16px; height: 16px; }
.download-box .pc-note, .clip-promo .pc-note { flex-basis: 100%; max-width: none; margin: 0; }
.side-promo .pc-note { margin: 10px 0 0; padding: 8px 10px; font-size: .78rem; flex-wrap: nowrap; align-items: flex-start; }
.pc-note.is-compact > .icon { width: 16px; height: 16px; margin-top: 2px; }
.is-mobile-device .side-promo > p:not(.pc-note) { display: none; }
.state-block .pc-note { margin-top: 2px; }

/* =========================================================================
   Telefony / ekrany dotykowe — lżejsze efekty (rozmycia tła i warstwy w ruchu
   są na słabszych GPU najdroższe) i wygodniejsze cele dotyku
   ========================================================================= */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .site-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 11, 15, .8); }
  .clip-play, .clip-badge, .pop-rank, .hero-pill, .modal-backdrop, .drawer-backdrop,
  .zoom-outro p, .st-chip, .st-buffer, .st-play { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .clip-badge { background: rgba(8, 9, 12, .85); }
  .modal-backdrop { background: rgba(5, 6, 9, .94); }
  .drawer-backdrop { background: rgba(0, 0, 0, .72); }
  .hero-pill { background: rgba(19, 21, 28, .92); }
  /* zorza: statyczna i słabiej rozmyta (rozmycie liczone raz, nie w każdej klatce) */
  .aurora { filter: blur(56px); }
  .aurora i { animation: none; mix-blend-mode: normal; }
  .gradient-text--animated { animation: none; }
  .theater-glow { filter: blur(48px) saturate(1.4); }
}
@media (pointer: coarse) {
  a, button, summary { -webkit-tap-highlight-color: rgba(0, 200, 255, .14); }
  .btn, .btn-sm { --h: 44px; }
  .btn-lg { --h: 52px; }
  .icon-btn, .nav-toggle { width: 44px; height: 44px; }
  .tab { height: 44px; }
  /* 16 px — iOS nie przybliża strony przy wejściu w pole */
  .search-field input, .search-field--sm input { height: 44px; font-size: 16px; }
  .search-field .kbd-hint { display: none; }
  .side-link { min-height: 44px; }
  .game-item { min-height: 48px; }
  .section-link { min-height: 44px; }
  .hero-pill { min-height: 44px; }
  .footer-col ul { gap: 0; }
  .footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-bottom a { display: inline-block; padding: 10px 0; }
  .pop-card .cover { transition: none; }
}

/* ---------- Menu mobilne ---------- */
@media (max-width: 1180px) {
  .nav-open .site-nav::before { opacity: 1; }
  .nav-links .nav-reels::after { position: static; display: inline-block; margin-left: 8px; vertical-align: 2px; }
  .nav-links { max-height: calc(100vh - var(--nav-h)); max-height: calc(100svh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; }
}

/* =========================================================================
   Strona główna w trybie „lekkim” (html.fx-lite: telefony, tablety, dotyk).
   Sceny nie są przypinane na kilka ekranów — zwykłe przewijanie, treść zawsze widoczna.
   ========================================================================= */
.fx-lite .scene-zoom { height: 100vh; height: 100svh; min-height: 540px; }
.fx-lite .scene-sticky { position: relative; }
.fx-lite .zoom-tile { box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
.fx-lite .zoom-hud { display: none; }
.fx-lite .zoom-scroll-hint { margin-top: 22px; }
.fx-lite .zoom-scroll-hint .mouse { display: none; }
.fx-lite .zoom-outro { opacity: 1 !important; transform: none !important; bottom: max(24px, 4svh); }
.fx-lite .zoom-outro p { padding: 12px 18px; font-size: clamp(1rem, 4.2vw, 1.3rem); background: rgba(10, 11, 15, .82); }

/* overflow: clip — poświata (.story-glow) wystaje poza ekran, a na telefonie poszerzałaby stronę */
.fx-lite .scene-story, .fx-lite .scene-hs { height: auto !important; padding: clamp(56px, 9vh, 104px) 0; overflow: hidden; overflow: clip; }
.fx-lite .scene-story .scene-sticky, .fx-lite .scene-hs .scene-sticky { height: auto; overflow: visible; }
.fx-lite .story-grid { height: auto; padding-top: 0; }
.fx-lite .story-glow { transform: none; will-change: auto; filter: blur(28px); }
.fx-lite .story-window { transform: none; transition: none; }
.fx-lite .st-panel { filter: none !important; }
.fx-lite .story-step { cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (max-width: 900px) {
  /* nagłówek → okno aplikacji → kroki (wszystkie widoczne, aktywny rozwinięty) */
  .fx-lite .story-grid { gap: 14px; }
  .fx-lite .story-copy { display: contents; }
  .fx-lite .story-copy .eyebrow { display: inline-flex; justify-self: start; margin: 0; order: 0; }
  .fx-lite .story-copy h2 { display: block; margin: 0 0 6px; order: 1; }
  .fx-lite .story-stage { order: 2; }
  .fx-lite .story-steps { order: 3; }
  .fx-lite .story-dots { order: 4; margin: 4px 0 0 18px; }
  .fx-lite .story-step { display: flex; padding: 12px 14px; transform: none !important; }
}

.fx-lite .scene-hs .scene-sticky { padding-top: 0; }
.fx-lite .hs-track, .fx-static .hs-track {
  width: auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(16px, 4vw, 56px);
  scrollbar-width: none;
  will-change: auto;
  padding: 8px clamp(16px, 4vw, 56px) 14px;
}
.fx-lite .hs-track::-webkit-scrollbar, .fx-static .hs-track::-webkit-scrollbar { display: none; }
.fx-lite .hs-card, .fx-static .hs-card { width: min(80vw, 380px); scroll-snap-align: start; }
.fx-lite .hs-bar { display: none; }
.fx-lite [data-track="tilt"] { will-change: auto; }
/* bez animacji na telefonie: wszystkie kroki historii widoczne (wcześniej tylko ostatni) */
@media (max-width: 900px) { .fx-static .story-step { display: flex; transform: none; } }

/* =========================================================================
   Układ na wąskich ekranach (telefony ~360–430 px)
   ========================================================================= */
@media (max-width: 640px) {
  .hs-head { flex-direction: column; align-items: flex-start; }
  /* okno „Jak to działa”: wyższe, żeby karta publikacji mieściła się w całości */
  .story-screen { aspect-ratio: 4 / 3.4; }
  .st-card, .st-link { width: min(88%, 460px); }
  .st-share { gap: 10px; padding: 14px; }
  .st-meta { padding: 10px 12px 12px; }
  /* społeczność: pasek filtrów nie jest przyklejony — na telefonie zabierałby 1/4 ekranu */
  .cm-toolbar { position: static; padding-top: 4px; gap: 10px; background: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 400px; margin-inline: auto; }
  .hero-ctas .btn { width: 100%; }
  .download-box { padding: 18px; }
  .download-box .btn { width: 100%; }
  .clip-promo .btn { width: 100%; }
  .req-note { padding: 14px 16px; }
  .faq summary { padding: 16px 18px; font-size: 1rem; }
  .faq-a { padding: 0 18px 18px; }
  .cta-band { border-radius: 22px; }

  /* Porównanie: zamiast tabeli przewijanej w bok — karta na każdą funkcję */
  .compare-wrap { overflow: visible; border: 0; background: none; border-radius: 0; }
  .compare, .compare tbody { display: block; min-width: 0; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: 10px; }
  .compare tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #0E1015; }
  .compare tbody th { grid-column: 1 / -1; width: auto; padding: 14px 16px 10px; border: 0; font-size: 1rem; }
  .compare td { width: auto !important; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 14px; border: 0; font-size: .88rem; line-height: 1.4; }
  .compare td::before { font: 700 .66rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .compare td.col-vexlip::before { content: "Vexlip"; color: var(--c1); }
  .compare td:last-child::before { content: "Typowa aplikacja"; }
  .compare .yes, .compare .no, .compare .meh { align-items: flex-start; gap: 8px; }
  .compare .yes .icon, .compare .no .icon, .compare .meh .icon { margin-top: 1px; }
  .compare tbody tr:hover th, .compare tbody tr:hover td { background-color: transparent; }
  .compare-note { text-align: left; }
}

/* =========================================================================
   Konta i Vexlip PRO — elementy wspólne (nagłówek, odznaka, autorzy z kontem)
   ========================================================================= */
/* Link „PRO” w nawigacji */
.nav-links .nav-pro { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #D9CCFF; }
.nav-links .nav-pro::before {
  content: "";
  width: 14px; height: 14px;
  flex: none;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nav-links .nav-pro:hover, .nav-links .nav-pro[aria-current="page"] { color: #fff; }

/* Odznaka PRO */
.pro-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 20px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 6px;
  font: 800 .66rem/1 var(--mono);
  letter-spacing: .08em;
  color: #fff;
  vertical-align: middle;
  background: var(--grad);
  box-shadow: 0 4px 14px -6px rgba(110, 80, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.pro-badge.is-sm { height: 16px; padding: 0 5px; font-size: .58rem; border-radius: 5px; margin-left: 5px; }

/* Avatar ze zdjęciem profilowym (inicjały zostają pod spodem jako zapas) */
.avatar { position: relative; overflow: hidden; }
.avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.has-img { color: transparent; text-shadow: none; }

/* Autor z kontem na kartach i w odtwarzaczu */
.clip-sub .author.is-link, .clip-body .avatar[data-profile] { cursor: pointer; }
.clip-sub .author.is-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.clip-body .avatar[data-profile]:hover { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(0, 200, 255, .7); }
.clip-sub .pro-badge { align-self: center; margin-left: -2px; }
.meta-author { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.meta-author:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.owner.is-link { border-radius: 14px; padding: 4px 10px 4px 4px; margin: -4px 0 -4px -4px; transition: background-color .2s; }
.owner.is-link:hover { background: rgba(255, 255, 255, .05); }
.owner.is-link:hover strong { color: #fff; }

/* ---------- Konto w nagłówku ---------- */
.nav-account { position: relative; display: flex; align-items: center; }
.nav-login .icon { width: 17px; height: 17px; }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  max-width: 230px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  transition: background-color .2s, border-color .2s;
}
.account-btn:hover, .nav-account.is-open .account-btn { background: rgba(255, 255, 255, .08); border-color: #3B404F; }
.account-avatar.avatar { width: 30px; height: 30px; font-size: .66rem; box-shadow: none; }
.account-avatar.is-lg { width: 44px; height: 44px; font-size: .9rem; }
.account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-btn .pro-badge { margin-left: -2px; }
.account-chevron { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.nav-account.is-open .account-chevron { transform: rotate(180deg); }
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: 270px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: #12141B;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3);
  animation: menuIn .18s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.account-menu-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.account-menu-head > div { min-width: 0; }
.account-menu-head strong { display: flex; align-items: center; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-head small { display: block; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
.account-item, .nav-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #D5DAE5;
  font-size: .93rem;
  font-weight: 550;
  text-align: left;
  transition: background-color .15s, color .15s;
}
.account-item .icon, .nav-account-item .icon { width: 18px; height: 18px; color: var(--muted); }
.account-item:hover, .account-item:focus-visible { background: rgba(255, 255, 255, .06); color: #fff; }
.account-item:hover .icon { color: var(--c1); }
.account-item.is-danger:hover, .nav-account-item.is-danger:hover { color: #FFB3C0; }
.account-item.is-danger:hover .icon { color: var(--danger); }
.account-item-tag { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: var(--grad-soft); border: 1px solid rgba(155, 61, 255, .35); font: 600 .7rem/1.4 var(--mono); color: #D9CCFF; }
.account-item[aria-busy="true"], .nav-account-item[aria-busy="true"] { opacity: .6; pointer-events: none; }
.account-sep { height: 1px; margin: 6px 4px; background: var(--line); }

/* Te same pozycje w menu mobilnym (hamburger) */
.nav-account-links { display: none; }
@media (max-width: 1180px) {
  .nav-account-links { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-account-item { min-height: 46px; padding: 0 14px; font-size: 1rem; color: var(--muted); }
  .nav-account-item:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
  .nav-account-head { display: flex; align-items: center; gap: 12px; padding: 6px 14px 10px; }
  .nav-account-head strong { display: flex; align-items: center; }
  .nav-account-head small { display: block; color: var(--muted); font-size: .82rem; }
  .nav-links .nav-pro::before { width: 15px; height: 15px; }
}
@media (max-width: 1440px) and (min-width: 1181px) {
  .account-name { max-width: 110px; }
}
@media (max-width: 760px) {
  /* telefon: w pasku tylko okrągły avatar / ikona logowania — pełne menu jest pod hamburgerem */
  .nav-login { width: 44px; padding: 0; }
  .nav-login-label { display: none; }
  .account-btn { width: 44px; height: 44px; padding: 0; justify-content: center; gap: 0; }
  .account-btn .account-name, .account-btn .pro-badge, .account-btn .account-chevron { display: none; }
  .account-btn .account-avatar.avatar { width: 34px; height: 34px; }
  .account-menu { position: fixed; top: calc(var(--nav-h) + 6px); left: 8px; right: 8px; width: auto; }
  .nav-actions { gap: 8px; }
}

/* ---------- Strona główna: zaproszenie do PRO przy pobieraniu ---------- */
.pro-promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 14px;
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid rgba(155, 61, 255, .32);
  background: radial-gradient(420px 160px at 0% 0%, rgba(155, 61, 255, .16), transparent 70%), radial-gradient(420px 160px at 100% 100%, rgba(0, 200, 255, .1), transparent 70%), #0F1118;
}
.pro-promo-text { min-width: 0; flex: 1 1 320px; }
.pro-promo strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.08rem; }
.pro-promo strong .pro-badge { margin: 0; }
.pro-promo-price { color: var(--dim); font-weight: 550; font-size: .92rem; }
.pro-promo ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; list-style: none; color: var(--muted); font-size: .88rem; }
.pro-promo li { display: inline-flex; align-items: center; gap: 6px; }
.pro-promo li .icon { width: 15px; height: 15px; color: #B88CFF; }
@media (max-width: 640px) {
  .pro-promo { padding: 18px; }
  .pro-promo .btn { width: 100%; }
}

/* =========================================================================
   Wygląd aplikacji w grze — 1:1 z kodu aplikacji (kolory, odstępy, czcionki, czasy animacji):
   powiadomienie = Views/OverlayWindow.xaml, nakładka = Views/GameOverlay.xaml,
   licznik nagrywania = Views/RecordingHud.cs. Wymiary w px jak jednostki WPF.
   ========================================================================= */
.fl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.k-ok { color: #3DDC97; }
.k-red { color: #FF4D6A; }
.k-cyan { color: #00D2FF; }
.k-violet { color: #9B3DFF; }

/* ---------- powiadomienie (pokazuje się na 2,6 s, błąd na 4 s) ---------- */
.vx-toast { position: relative; display: flex; align-items: center; min-width: 280px; overflow: hidden; border-radius: 12px; background: rgba(18, 18, 24, .9); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 0 24px rgba(0, 0, 0, .6); font-family: "Segoe UI", var(--font); color: #fff; text-align: left; letter-spacing: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s cubic-bezier(.33, 1, .68, 1), visibility 0s .35s; }
.vx-toast.is-on { opacity: 1; visibility: visible; transition: opacity .16s cubic-bezier(.33, 1, .68, 1), visibility 0s; }
.vx-toast-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(135deg, #00D2FF, #2F7BFF 50%, #9B3DFF); }
.vx-toast-logo { flex: none; width: 40px; height: 40px; margin: 12px 0 12px 18px; }
.vx-toast-text { min-width: 0; margin: 12px 20px 12px 12px; }
.vx-toast-title { display: flex; align-items: center; font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.vx-toast-title svg { flex: none; width: 16px; height: 16px; margin-right: 6px; }
.vx-toast-body { display: block; margin-top: 2px; font-size: 12.5px; line-height: 17px; color: rgba(255, 255, 255, .7); white-space: nowrap; }

/* ---------- nakładka: scena 1536×864 (ekran 1080p przy skali 125%), skalowana do szerokości ---------- */
.ov-demo { max-width: 1536px; margin-inline: auto; }
.ov-screen { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: #07080C; overflow: hidden; box-shadow: 0 50px 120px -40px rgba(47, 123, 255, .5); }
.ov-screen.is-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.ov-sizer { position: relative; width: max-content; }
/* zoom (nie transform): tekst układa się w docelowym rozmiarze, bez rozjechanych odstępów między literami */
.ov-stage { position: relative; width: 1536px; height: 864px; zoom: var(--ov-s, .6); font-family: "Segoe UI Variable Text", "Segoe UI", var(--font); color: #F2F4F8; line-height: 1.33; letter-spacing: 0; -webkit-user-select: none; user-select: none; }
.ov-stage :focus-visible { outline: 2px solid rgba(0, 210, 255, .7); outline-offset: 2px; }
.ov-game { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ov-stage.is-closed { cursor: pointer; }
/* przeglądarki bez `zoom` (starszy Firefox): skalowanie transformacją */
.ov-tf .ov-sizer { width: calc(1536px * var(--ov-s, .6)); height: calc(864px * var(--ov-s, .6)); overflow: hidden; }
.ov-tf .ov-stage { position: absolute; left: 0; top: 0; zoom: normal; transform: scale(var(--ov-s, .6)); transform-origin: 0 0; }
.ov-stage .vx-toast { position: absolute; top: 24px; right: 24px; z-index: 3; }

/* otwieranie: 170 ms przejrzystość + 260 ms wjazd z dołu (18 px); zamykanie: 140 ms */
.ov-win { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .14s linear, visibility 0s .14s; }
.ov-win.is-open { opacity: 1; visibility: visible; transition: opacity .17s cubic-bezier(.33, 1, .68, 1), visibility 0s; }
.ov-root { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(7, 8, 16, .72); }
.ov-glow { position: absolute; left: 50%; top: -520px; width: 1400px; height: 800px; margin-left: -700px; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 123, 255, .267), rgba(155, 61, 255, .094) 55%, transparent); opacity: .7; pointer-events: none; }
.ov-content { position: relative; flex: 1; max-width: 1240px; margin: 36px 48px; display: grid; grid-template-columns: 400px minmax(0, 1fr); column-gap: 20px; align-items: start; transform: translateY(18px); transition: transform 0s .14s; }
.ov-win.is-open .ov-content { transform: none; transition: transform .26s cubic-bezier(.33, 1, .68, 1); }

.ov-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin: 0 4px 18px; }
.ov-brand { display: flex; align-items: center; }
.ov-brand img { width: 44px; height: 44px; margin-right: 14px; }
.ov-name { font: 700 22px/28px "Segoe UI Variable Display", "Segoe UI", var(--font-display); }
.ov-status { display: flex; align-items: center; margin-top: 2px; font-size: 12.5px; color: #8D95A8; }
.ov-dot { flex: none; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #3DDC97; }
.ov-dot.is-rec { background: #FF4D6A; }
.ov-dot.is-off { background: #5E6577; }
.ov-head-right { display: flex; align-items: center; }
.ov-hk { margin-right: 10px; padding: 4px 9px; border-radius: 7px; background: rgba(255, 255, 255, .1); font: 12px/16px "Cascadia Mono", Consolas, var(--mono); color: #8D95A8; }
.ov-esc { margin-right: 14px; font-size: 12px; color: #5E6577; }

.ov-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 10px; border-radius: 12px; background: #181B24; border: 1px solid rgba(255, 255, 255, .15); cursor: pointer; }
.ov-btn:hover { background: #232838; border-color: rgba(123, 108, 255, .33); }
.ov-btn:active { background: #2A3044; }
.ov-btn:disabled { cursor: default; background: #181B24; border-color: rgba(255, 255, 255, .15); }
.ov-btn svg { width: 22px; height: 22px; }
.ov-btn b { margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.ov-btn small { font-size: 10.5px; color: #5E6577; }
.ov-close { width: 40px; height: 40px; padding: 0; }
.ov-close svg { width: 16px; height: 16px; }

.ov-panel { border-radius: 18px; background: rgba(16, 18, 25, .94); border: 1px solid rgba(255, 255, 255, .133); padding: 22px; box-shadow: 7px 7px 40px rgba(0, 0, 0, .6); }
.ov-title { font: 700 17px/23px "Segoe UI Variable Display", "Segoe UI", var(--font-display); color: #F2F4F8; }
.ov-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.ov-label { margin: 16px 0 8px; font-size: 11px; font-weight: 600; color: #5E6577; }
.ov-chips { display: flex; flex-wrap: wrap; }
.ov-chip { display: inline-flex; align-items: center; justify-content: center; margin: 0 6px 6px 0; padding: 6px 12px; border-radius: 8px; background: #181B24; border: 1px solid rgba(255, 255, 255, .15); font-size: 12.5px; line-height: 17px; color: #F2F4F8; text-decoration: none; cursor: pointer; }
.ov-chip:hover { background: #222634; color: #F2F4F8; }
.ov-chip.is-on { background: linear-gradient(90deg, #00D2FF, #2F7BFF 50%, #9B3DFF); border-color: rgba(255, 255, 255, .33); }
.ov-chip svg { width: 14px; height: 14px; margin-right: 6px; }
.ov-divider { height: 1px; margin: 12px 0 4px; background: #1E212A; }
.ov-toggle { display: flex; align-items: center; margin-top: 10px; }
.ov-toggle-text { flex: 1; min-width: 0; }
.ov-toggle-text b { display: block; font-size: 13px; font-weight: 400; }
.ov-toggle-text span { display: block; margin-top: 1px; font-size: 11.5px; color: #5E6577; }
/* przełącznik WPF UI (motyw ciemny, akcent aplikacji #5B8CFF) */
.ov-switch { flex: none; position: relative; width: 40px; height: 20px; margin-left: 12px; padding: 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .545); background: rgba(255, 255, 255, .04); cursor: pointer; transition: background-color .1s, border-color .1s; }
.ov-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .77); transition: transform .16s cubic-bezier(.33, 1, .68, 1); }
.ov-switch[aria-checked="true"] { background: #5B8CFF; border-color: #5B8CFF; }
.ov-switch[aria-checked="true"]::after { transform: translateX(20px); background: #000; }
.ov-hint { margin-top: 10px; font-size: 11.5px; color: #5E6577; }
.ov-hint:empty { display: none; }

.ov-panel-head { display: flex; align-items: flex-start; justify-content: space-between; }
.ov-panel-tools { display: flex; }
.ov-panel-tools .ov-chip { margin: 0 0 0 6px; }
.ov-clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px -6px -6px; }
.ov-card { margin: 6px; padding: 6px; border-radius: 14px; cursor: pointer; }
.ov-card:hover { background: #1A1D28; }
.ov-thumb { position: relative; height: 124px; overflow: hidden; border-radius: 10px; background: #161922; }
.ov-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ov-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .8); font: 11px/15px "Cascadia Mono", Consolas, var(--mono); color: #fff; }
.ov-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: linear-gradient(90deg, #00D2FF, #2F7BFF 50%, #9B3DFF); opacity: 0; }
.ov-play svg { width: 20px; height: 20px; margin-left: 2px; color: #fff; }
.ov-card:hover .ov-play { opacity: 1; }
.ov-card b { display: block; margin: 8px 2px 0; overflow: hidden; font-size: 12.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ov-card span { display: block; margin: 1px 2px 0; font-size: 11.5px; color: #5E6577; }
.ov-foot { grid-column: 1 / -1; margin: 16px 4px 0; font-size: 11.5px; color: #5E6577; }

.ov-recpill { position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; align-items: center; padding: 6px 14px 6px 12px; border-radius: 14px; background: rgba(11, 13, 20, .78); border: 1px solid rgba(255, 255, 255, .25); }
.ov-recpill[hidden] { display: none; }
.ov-recpill i { width: 10px; height: 10px; border-radius: 50%; background: #FF4D6A; }
.ov-recpill span { margin-left: 8px; font: 600 13px/17px Consolas, "Segoe UI", monospace; color: #fff; white-space: pre; }

.ov-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }
.ov-bar .btn kbd { margin-left: 2px; }
.ov-bar .btn span { margin-right: 6px; }
.ov-plus { font-style: normal; }
.ov-note { flex: 1 1 320px; color: var(--muted); font-size: .92rem; }
@media (hover: none) and (pointer: coarse) { .ov-bar .btn kbd, .ov-bar .btn .ov-plus { display: none; } }
