/* onyxbot.live — wersja testowa w stylu panelu streamera („Channel Analytics”):
   ciepłe ciemne szkło z pomarańczową poświatą, Lexend, wąski pasek ikon jako
   nawigacja po sekcjach. Komendy czatu w JetBrains Mono, logo w Rubiku. */

:root {
  --bg: #141111;
  --ink: #f6f1ee;
  --dim: #c9bfba;
  --faint: #9a8f8a;
  --glass: rgba(255, 246, 240, 0.065);
  --glass-2: rgba(255, 246, 240, 0.1);
  --line: rgba(255, 240, 230, 0.09);
  --line-2: rgba(255, 240, 230, 0.16);
  --glow: #d6703a;
  --orange: #ff7a2f;
  --cream: #efe5c2;
  --yellow: #e6cc2e;
  --green: #c9f27e;
  --mint: #3ddc84;
  --kick: #53fc18;
  --r: 32px;
  --f: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  padding: 14px;
  color: var(--ink);
  font: 300 16px/1.6 var(--f);
  background:
    radial-gradient(60% 45% at 30% 20%, rgba(150, 80, 45, 0.28), transparent 70%),
    radial-gradient(40% 40% at 85% 75%, rgba(70, 60, 120, 0.16), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 500 0.86em var(--mono); color: var(--cream); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: 0.005em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; border-radius: 12px; background: #fff; color: #141111; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

/* ---------------------------------------------------------------- rama */

.frame {
  position: relative;
  margin: 0 auto;
  min-height: calc(100dvh - 28px);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 34px;
  padding: 26px 34px 30px 26px;
  border-radius: 46px;
  background:
    radial-gradient(42% 30% at 40% 10%, rgba(214, 112, 58, 0.34), transparent 72%),
    radial-gradient(40% 30% at 60% 62%, rgba(214, 112, 58, 0.12), transparent 72%),
    linear-gradient(170deg, #3d3634 0%, #2d2827 35%, #262221 100%);
  border: 1px solid rgba(255, 240, 230, 0.07);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------- pasek ikon */

.rail {
  position: sticky; top: 14px; align-self: start;
  height: calc(100dvh - 80px); min-height: 520px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 0; border-radius: 26px; background: #151313;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 10;
}
.rail-logo { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; }
.ball {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #e9ffdc 0 12%, var(--kick) 38%, #2a9b06 100%);
  box-shadow: 0 0 22px rgba(83, 252, 24, 0.25);
}
.rail-nav { display: flex; flex-direction: column; gap: 10px; }
.rail-foot { margin-top: auto; }
.ico {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; color: #d8d0cc; border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.ico[aria-current="true"] { background: #2f2a29; border-color: rgba(255, 255, 255, 0.08); color: var(--kick); }
.ico[aria-current="true"]::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 4px; height: 18px; translate: 0 -50%;
  border-radius: 0 4px 4px 0; background: var(--kick);
}
.ico::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; translate: 0 -50%;
  padding: 6px 10px; border-radius: 10px; background: #0f0d0d; color: #fff;
  font: 400 12px/1 var(--f); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.ico:hover::after, .ico:focus-visible::after { opacity: 1; }

/* ------------------------------------------------------------ nagłówek */

.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 16px; margin: 6px 0 22px; }
.wordmark {
  font: 800 34px/1 "Rubik", var(--f); letter-spacing: -0.03em; text-decoration: none; color: #fff;
  display: inline-flex; align-items: center;
}
.wordmark .o {
  display: inline-block; width: 0.56em; height: 0.56em; margin: 0 0.04em; border-radius: 50%;
  translate: 0 0.08em;
  background: radial-gradient(circle at 34% 30%, #e9ffdc 0 12%, var(--kick) 38%, #2a9b06 100%);
}
.beta {
  align-self: center; margin: 0 0 0 -2px; padding: 5px calc(9px - 0.07em) 5px calc(9px + 0.07em); border-radius: 999px;
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--kick);
  background: linear-gradient(180deg, rgba(83, 252, 24, .16), rgba(83, 252, 24, .05));
  border: 1px solid rgba(83, 252, 24, .35);
  box-shadow: 0 0 18px rgba(83, 252, 24, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
  text-shadow: 0 0 10px rgba(83, 252, 24, .5);
}
.top-tag { font-size: 13px; color: var(--dim); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top-link { font-size: 14px; color: var(--dim); text-decoration: none; }
.top-link:hover { color: #fff; }

/* -------------------------------------------------------------- przyciski */

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 34px;
  border-radius: 14px; background: #fff; color: #141111; text-decoration: none; white-space: nowrap;
  font: 500 14.5px/1 var(--f); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 13.5px; }
/* główne „Wypróbuj” w zieleni Kicka; reszta przycisków zostaje biała */
.btn-go { background: var(--kick); color: #0b1408; box-shadow: 0 10px 30px rgba(83, 252, 24, 0.18); }
.btn-go:hover { background: #7dff4f; box-shadow: 0 14px 34px rgba(83, 252, 24, 0.26); }
.btn-wide { width: 100%; margin-top: auto; }
.btn-login {
  gap: 9px; color: #fff; background: rgba(255, 246, 240, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 230, 0.16);
}
.btn-login svg { width: 15px; height: 15px; fill: var(--kick); flex: none; }
.btn-login:hover { background: rgba(255, 246, 240, 0.14); box-shadow: inset 0 0 0 1px rgba(83, 252, 24, 0.45), 0 14px 34px rgba(0, 0, 0, 0.32); }
.link { font-size: 14.5px; color: var(--ink); text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.link:hover { text-decoration-color: #fff; }

/* ---------------------------------------------------------------- karty */

.card {
  position: relative; border-radius: var(--r); background: var(--glass);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 24px 26px;
}
.card-title { font: 400 15px/1.3 var(--f); display: flex; align-items: center; gap: 10px; }
.card-sub { margin: 4px 0 0; font-size: 12px; color: var(--dim); }
.sec-head { max-width: 640px; margin-bottom: 20px; }
.sec-head h2 { font: 500 clamp(24px, 2.6vw, 32px)/1.15 var(--f); }
.sec-head p { margin: 10px 0 0; color: var(--dim); font-size: 14.5px; }

section[id], main[id] { scroll-margin-top: 24px; }

/* ---------------------------------------------------------- pierwszy ekran */

.grid-hero {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-areas: "hero chat" "hero points"; gap: 18px;
  grid-template-rows: minmax(0, 1fr) auto;
}

.hero {
  grid-area: hero; position: relative; min-height: 520px; margin-top: 34px;
  padding: 70px 34px 160px; border-radius: 34px;
  background:
    radial-gradient(55% 70% at 74% 45%, rgba(236, 120, 62, 0.55), transparent 72%),
    linear-gradient(145deg, rgba(255, 246, 240, 0.1), rgba(255, 246, 240, 0.03));
  border: 1px solid var(--line);
}
.rings { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.rings i { position: absolute; left: 74%; top: 46%; border-radius: 50%; border: 1px solid rgba(255, 230, 215, .12); translate: -50% -50%; }
.rings i:nth-child(1) { width: 320px; height: 320px; }
.rings i:nth-child(2) { width: 500px; height: 500px; border-color: rgba(255, 230, 215, .08); }
.rings i:nth-child(3) { width: 690px; height: 690px; border-color: rgba(255, 230, 215, .05); }
.figure {
  position: absolute; right: 0; bottom: 0; height: calc(100% + 44px); width: auto; max-width: 46%;
  object-fit: contain; object-position: bottom; pointer-events: none;
  filter: drop-shadow(0 30px 40px rgba(60, 20, 0, .35)) drop-shadow(0 0 60px rgba(83, 252, 24, .1));
}
.hero-text { position: relative; max-width: 56%; }
.eyebrow { margin: 0 0 14px; font-size: 12px; color: var(--dim); }
.hero h1 { font: 500 clamp(32px, 3.3vw, 44px)/1.12 var(--f); color: #fff; }
.lead { margin: 18px 0 28px; max-width: 330px; font-size: 15px; color: var(--dim); }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.strip {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; gap: 8px;
  padding: 22px 22px 22px 34px; border-radius: 30px;
  background: rgba(255, 246, 240, 0.09); border: 1px solid rgba(255, 240, 230, 0.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1);
}
.stat b { display: block; font: 400 clamp(24px, 2.5vw, 38px)/1 var(--f); color: #fff; white-space: nowrap; }
.stat span { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 11.5px; line-height: 1.2; color: var(--dim); }
.stat span i { flex: none; width: 14px; height: 14px; border-radius: 5px; background: var(--c); }
.stat em { display: block; width: 68%; height: 2px; margin-top: 9px; border-radius: 2px; background: linear-gradient(90deg, rgba(83, 252, 24, .85), rgba(83, 252, 24, .1)); }
.round {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #121010; color: #fff;
  transition: transform .15s ease;
}
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { transform: translateX(2px); }

/* czat */
.chat { grid-area: chat; display: flex; flex-direction: column; min-height: 300px; overflow: hidden; }
.live {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 77, 94, .14); color: #ffb3bb; font-size: 11px;
}
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff4d5e; }
.chat-lines {
  list-style: none; margin: 14px 0 0; padding: 0; flex: 1 1 0; height: 0; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%);
  font-size: 13px; line-height: 1.4;
}
.chat-lines li { animation: in .35s ease-out; overflow-wrap: anywhere; }
.chat-lines b { font-weight: 500; }
.chat-lines .bot { padding: 7px 10px; border-radius: 12px; background: rgba(83, 252, 24, .08); border: 1px solid rgba(83, 252, 24, .18); }
.chat-lines .bot b { color: var(--kick); }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

/* punkty (karta jak „Latest Sales”) */
.points { grid-area: points; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 18px 14px 14px 22px; }
.points-main { display: flex; flex-direction: column; }
.trend { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 11px; color: var(--dim); }
.big { font: 500 clamp(32px, 3.2vw, 44px)/1.05 var(--f); color: var(--green); white-space: nowrap; }
.big small { font-size: .5em; margin-left: 6px; opacity: .85; }
.points-note { margin: auto 0 0; padding-top: 12px; font-size: 11.5px; line-height: 1.45; color: var(--dim); }
.product {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  min-height: 180px; padding: 14px 12px; border-radius: 26px; text-align: center;
  background: radial-gradient(60% 50% at 50% 40%, rgba(255, 255, 255, .16), transparent 75%), rgba(255, 246, 240, .08);
  border: 1px solid var(--line);
}
.product img { position: absolute; top: 9%; left: 50%; width: auto; height: 60%; max-width: 56%; object-fit: contain; translate: -50% 0; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .4)); }
.product p { position: relative; margin: 0; font-size: 12px; line-height: 1.35; }
.product p small { display: block; color: var(--dim); font-size: 10.5px; }

/* -------------------------------------------------------------------- gry */

.games { margin-top: 18px; }
.games-body { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px;
  background: #1a1716 center / cover no-repeat; border: 1px solid var(--line);
}
.screen iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.screen-tag {
  position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 12px;
  background: rgba(15, 13, 13, .78); font: 500 13px var(--mono); color: var(--cream);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.game-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.theme-label { margin: 16px 0 0; font-size: 12.5px; color: var(--dim); }
.theme-label + .chips { margin-top: 8px; }
.theme-chips button { display: inline-flex; align-items: center; gap: 9px; padding: 0 14px 0 10px; }
.theme-chips .sw { display: inline-flex; }
.theme-chips .sw i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px #1f1b1a, inset 0 0 0 1px rgba(255, 255, 255, .18); }
.theme-chips .sw i + i { margin-left: -4px; }
.theme-chips button[aria-checked="true"] { background: rgba(83, 252, 24, .09); border-color: rgba(83, 252, 24, .45); color: var(--ink); }
@media (max-width: 620px) {
  /* na telefonie motywy w jednym pasku przewijanym w bok, zamiast dziewięciu rzędów nad listą gier */
  .chips.theme-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .theme-chips::-webkit-scrollbar { display: none; }
  .theme-chips button { flex: none; }
}
.game-list button {
  display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line);
  color: var(--ink); font: 400 14px/1.3 var(--f); transition: background-color .2s ease, border-color .2s ease;
}
.game-list button small { font-size: 11.5px; color: var(--dim); }
.game-list li:has(button[aria-selected="true"]) { flex-basis: 100%; }
.game-list button small { display: none; }
.game-list button[aria-selected="true"] small { display: block; white-space: normal; }
.game-list button[aria-selected="true"] { border-radius: 16px; width: 100%; }
.game-list button:hover { background: rgba(255, 246, 240, .14); }
.game-list button[aria-selected="true"] { background: rgba(83, 252, 24, .09); border-color: rgba(83, 252, 24, .45); }
.game-list button[aria-selected="true"] b { color: var(--kick); }
@media (max-width: 760px) {
  /* na telefonie 15 gier w jednym pasku przewijanym w bok */
  .game-list { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
  .game-list::-webkit-scrollbar { display: none; }
  .game-list li, .game-list li:has(button[aria-selected="true"]) { flex: none; scroll-snap-align: start; }
  .game-list button[aria-selected="true"] { width: auto; border-radius: 999px; }
}

/* ---------------------------------------------------------------- funkcje */

.table { margin-top: 18px; }
.cols, .row {
  display: grid; grid-template-columns: 96px minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1.6fr);
  align-items: center; gap: 14px;
}
.cols span:first-child { grid-column: span 2; }
.cols { margin: 4px 0 14px; padding: 0 4px 14px; border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--dim); }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.row { padding: 6px 14px 6px 6px; border-radius: 22px; background: var(--glass-2); border: 1px solid var(--line); }
.thumb { width: 96px; height: 66px; display: grid; place-items: center; }
.thumb img {
  width: 64px; height: 64px; display: block; border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  animation: ikona-float 4.2s ease-in-out infinite;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.row:nth-child(2) .thumb img { animation-delay: -.8s; }
.row:nth-child(3) .thumb img { animation-delay: -1.6s; }
.row:nth-child(4) .thumb img { animation-delay: -2.4s; }
.row:nth-child(5) .thumb img { animation-delay: -3.2s; }
.row:hover .thumb img { transform: scale(1.14) rotate(-6deg); animation-play-state: paused; }
@keyframes ikona-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -4px; rotate: 2deg; } }
@media (prefers-reduced-motion: reduce) { .thumb img { animation: none; transition: none; } }
.what b { display: block; font-weight: 400; font-size: 14.5px; color: #fff; }
.what small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--dim); line-height: 1.35; }
.val { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.35; flex-wrap: wrap; }
.val::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.val.y { --c: var(--yellow); }
.val.g { --c: var(--mint); color: var(--ink); }

/* ------------------------------------------------------- alerty + panel */

.grid-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.alert-screen { background-image: url(oprawa/przejscia/scena-minecraft.webp); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips button {
  min-height: 40px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--dim); font: 400 13px var(--f);
}
.chips button[aria-selected="true"] { background: var(--kick); color: #0b1408; border-color: var(--kick); }

.mini { padding: 18px 18px 10px; border-radius: 24px; background: rgba(255, 246, 240, .05); border: 1px solid var(--line); }
.mini-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.mini-head b { font-weight: 400; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.legend i { width: 14px; height: 2px; border-radius: 2px; background: var(--c); margin-left: 6px; }
.chart { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.ax { font: 300 10.5px var(--f); fill: var(--dim); }
.cap-num { font: 500 10.5px var(--f); fill: #fff; }
.mini-note { margin: 2px 0 0; text-align: right; font-size: 10.5px; color: var(--faint); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); translate: 0 -2px; }

/* ----------------------------------------------------------------- oprawa */

.oprawa { margin-top: 18px; }
.op-styles { margin: 0 0 16px; }
.op-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.op-screen { background: #0f0d0d; container-type: inline-size; }
/* różowo-biała „na żywo”: okno gry 960x540 @ 893,160 i karta czatu 48,160 780x820 z 1920x1080 */
.op-layer > .op-gwin { inset: auto; left: 46.5%; top: 14.8%; width: 50%; height: 50%; overflow: hidden; border-radius: 1.6cqw; background: #121010; box-shadow: 0 0 0 .45cqw #fff; }
.op-gwin iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.op-layer > .op-chat {
  inset: auto; left: 3.6%; top: 18%; width: 37%; height: 70%; margin: 0; padding: 0; list-style: none; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .55cqw;
  font: 500 1.25cqw/1.35 var(--f); color: #1d1d1f;
}
.op-chat li { animation: in .35s ease-out; overflow-wrap: anywhere; }
.op-chat b { font-weight: 600; }
.op-chat .bot { background: #eef9e8; border-radius: .6cqw; padding: .35cqw .6cqw; }
.op-chat .bot b { color: #2f9e0f; }
.op-layer, .op-layer > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.op-layer > video, .op-layer > img { object-fit: cover; display: block; }
.op-layer > iframe { width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.op-sting { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; pointer-events: none; opacity: 0; }
.op-sting.on { opacity: 1; }
/* przejście zastępcze (Safari/iPad nie pokazuje przezroczystości w filmach): pasy w kolorze oprawy */
.op-wipe { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; visibility: hidden; }
.op-wipe.run { visibility: visible; }
.op-wipe i { position: absolute; left: -2%; width: 104%; height: 26%; border-radius: 40px; background: var(--wipe, var(--kick)); transform: translateX(105%); }
.op-wipe i:nth-child(1) { top: 0; }
.op-wipe i:nth-child(2) { top: 25%; --from: -105%; --to: 105%; }
.op-wipe i:nth-child(3) { top: 50%; }
.op-wipe i:nth-child(4) { top: 75%; --from: -105%; --to: 105%; }
.op-wipe.run i { animation: wipe 1.3s cubic-bezier(.7, 0, .3, 1) both; }
.op-wipe.run i:nth-child(2) { animation-delay: .05s; }
.op-wipe.run i:nth-child(3) { animation-delay: .1s; }
.op-wipe.run i:nth-child(4) { animation-delay: .15s; }
@keyframes wipe { 0% { transform: translateX(var(--from, 105%)); } 38%, 58% { transform: translateX(0); } 100% { transform: translateX(var(--to, -105%)); } }

.op-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
.op-scenes { display: flex; flex-wrap: wrap; gap: 6px; }
.op-scenes button {
  min-height: 38px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--dim); font: 400 13px var(--f);
}
.op-scenes button[aria-selected="true"] { color: #fff; border-color: rgba(83, 252, 24, .6); background: rgba(83, 252, 24, .08); }
.op-hint { font-size: 11.5px; color: var(--faint); }

.op-label { margin: 0 0 10px; font-size: 13px; color: var(--ink); }
.op-label span { color: var(--faint); }
.op-banner { width: 100%; aspect-ratio: 1600 / 875; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); }
.op-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.op-panels img { width: 100%; border-radius: 10px; }

.op-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; margin-top: 26px; }
.trans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.trans li { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--dim); }
.tile { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #1a1716; }
.tile span { position: absolute; inset: 0; background: center / cover no-repeat; }
.tile .b { opacity: 0; }
.trans li.flip .a { opacity: 0; }
.trans li.flip .b { opacity: 1; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.tile .tile-sting { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; }
.tile .tile-sting.on { opacity: 1; }
.tile .op-wipe i { border-radius: 8px; }
.pop-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; }

/* ----------------------------------------------------------------- cennik */

.pricing { margin-top: 56px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 28px; }
.plan h3 { font: 400 16px/1.3 var(--f); color: var(--dim); }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.price b { font: 500 clamp(36px, 3.6vw, 48px)/1 var(--f); color: var(--green); }
.price small { font-size: 14px; color: var(--dim); }
.plan-note { margin: 4px 0 0; font-size: 13px; color: var(--dim); }
.plan-note b { font-weight: 500; color: var(--ink); }
.plan-start { margin: 2px 0 0; font-size: 12px; color: var(--orange); }
.plan .ticks { margin-bottom: 24px; }
.plan-single {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 18px; padding: 22px 28px;
}
.plan-single h3 { font: 400 16px/1.3 var(--f); color: var(--ink); }
.plan-single p { margin: 4px 0 0; font-size: 14px; color: var(--dim); }
.plan-single .btn { flex: none; }
.plan-plus {
  background:
    radial-gradient(70% 60% at 90% 0%, rgba(236, 120, 62, .3), transparent 70%),
    var(--glass);
  border-color: rgba(255, 122, 47, .3);
}

/* ---------------------------------------------------------------- pytania */

.faq { margin-top: 18px; }
.q { border-radius: 18px; background: var(--glass-2); border: 1px solid var(--line); margin-top: 8px; }
.q summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; font-size: 15px; font-weight: 400;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; translate: 0 -70%;
  border-right: 1.7px solid var(--dim); border-bottom: 1.7px solid var(--dim); rotate: 45deg; transition: rotate .2s ease;
}
.q[open] summary::after { rotate: 225deg; translate: 0 -20%; }
.q p { margin: 0; padding: 0 20px 18px; color: var(--dim); font-size: 14.5px; }

/* ------------------------------------------------------------------ finał */

.final {
  position: relative; margin-top: 18px; padding: 56px 34px; border-radius: 34px; text-align: center; overflow: hidden;
  background:
    radial-gradient(50% 80% at 50% 100%, rgba(236, 120, 62, .5), transparent 72%),
    linear-gradient(145deg, rgba(255, 246, 240, .1), rgba(255, 246, 240, .03));
  border: 1px solid var(--line);
}
.final-gem { width: 110px; margin: 0 auto 18px; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .45)); }
.final h2 { font: 500 clamp(28px, 3.4vw, 44px)/1.15 var(--f); }
.final p { margin: 12px 0 28px; color: var(--dim); }

.foot { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; padding: 0 6px; font-size: 13px; color: var(--faint); }
.foot span { margin-right: auto; }
.foot a { color: var(--faint); text-decoration: none; }
.foot a:hover { color: #fff; }

/* ----------------------------------------------------- podstrony prawne */

.doc { margin-top: 6px; padding: 34px 40px 40px; max-width: 860px; }
.doc h1 { font: 500 clamp(28px, 3vw, 38px)/1.15 var(--f); color: #fff; }
.doc .updated { margin: 8px 0 26px; font-size: 13px; color: var(--faint); }
.doc h2 { margin: 34px 0 10px; font: 500 19px/1.3 var(--f); color: #fff; }
.doc p, .doc li { font-size: 15px; line-height: 1.7; color: var(--dim); }
.doc p { margin: 0 0 12px; }
.doc ol, .doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { font-weight: 500; color: var(--ink); }
.doc a { color: var(--kick); text-underline-offset: 3px; }
/* miejsca do uzupełnienia przez właściciela, widoczne dopóki ich nie zastąpi */
.fill { padding: 1px 6px; border-radius: 6px; background: rgba(230, 204, 46, .18); color: #ffe98a; font-weight: 400; white-space: nowrap; }
.doc-note { margin: 0 0 24px; padding: 14px 16px; border-radius: 16px; background: rgba(230, 204, 46, .1); border: 1px solid rgba(230, 204, 46, .3); font-size: 13.5px; color: #f3e6a6; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.contact-card { padding: 20px; border-radius: 22px; background: var(--glass-2); border: 1px solid var(--line); }
.contact-card b { display: block; font-weight: 500; color: #fff; font-size: 16px; }
.contact-card p { margin: 6px 0 14px; font-size: 13.5px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13.5px; color: var(--dim); text-decoration: none; }
.back:hover { color: #fff; }

/* ------------------------------------------------------------ mniejsze ekrany */

@media (max-width: 1100px) {
  .grid-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "chat" "points"; grid-template-rows: none; }
  .games-body, .grid-two, .op-grid, .op-two { grid-template-columns: minmax(0, 1fr); }
  .chat { min-height: 260px; }
}

@media (max-width: 760px) {
  body { padding: 0; }
  .frame { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 16px 96px; border-radius: 0; }
  .rail {
    position: fixed; top: auto; left: 12px; right: 12px; bottom: 12px; height: auto; min-height: 0; max-height: none;
    flex-direction: row; justify-content: center; padding: 8px;
  }
  .rail-logo, .rail-foot { display: none; }
  .rail-nav { flex-direction: row; gap: 0; }
  .ico { width: 44px; height: 44px; }
  .ico::after { display: none; }
  .top-tag, .top-link { display: none; }
  .top-actions { gap: 8px; }
  .top-actions .btn-sm { padding: 0 14px; }
  .btn-login-more { display: none; }
  .wordmark { font-size: 28px; }
  .hero { margin-top: 0; min-height: 0; padding: 30px 20px 210px; }
  .hero-text { max-width: none; }
  .lead { max-width: 64%; }
  .figure { right: -6%; height: 64%; max-width: 62%; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; padding: 18px 20px; }
  .strip .round { display: none; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 20px; }
  .cols { display: none; }
  .row { grid-template-columns: 64px minmax(0, 1fr); padding: 6px 12px 6px 6px; }
  .row .thumb { width: 64px; height: 56px; }
  .thumb img { width: 52px; height: 52px; }
  .row > .val { display: none; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-single { flex-direction: column; align-items: stretch; padding: 20px; }
  .doc { padding: 24px 20px 28px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .trans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-hint { display: none; }
}
@media (max-width: 520px) {
  .top-actions .btn-go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* cennik w zamkniętej becie: zamiast kwot napis */
.price b.soon { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }

/* ---------------------------------------------------------------- widżety */

.wid { margin-top: 18px; }
.stage::before { content: ""; position: absolute; inset: 0; background: rgba(12, 9, 9, .38); pointer-events: none; }
.stage-in { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.wd { position: absolute; overflow: hidden; transform-origin: 0 0; }
.wd[hidden] { display: none; }
.wd iframe { position: absolute; width: 1920px; height: 1080px; border: 0; pointer-events: none; background: transparent; }
.stage-note { margin: 10px 4px 0; font-size: 12.5px; color: var(--faint); }

.wd-list .gl { flex-basis: 100%; margin: 10px 0 0; font: 400 11.5px/1 var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.wd-list .gl:first-child { margin-top: 0; }
.wd-list button small code { font-size: .95em; }

/* TTS nie ma trybu pokazowego, więc jego kartę rysuje strona */
.wd-tts { z-index: 1; }
.tts-bubble {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 30px; width: 1300px; padding: 44px 56px;
  border-radius: 48px; background: rgba(20, 17, 17, .92); color: #f6f1ee; font: 500 54px/1.25 var(--f);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(83, 252, 24, .35);
}
.tts-bubble svg { flex: none; width: 100px; height: 100px; fill: none; stroke: #53fc18; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tts-bubble b { color: #53fc18; font-weight: 500; }
.eq { display: flex; align-items: center; gap: 9px; height: 84px; margin-left: auto; }
.eq s { display: block; width: 12px; height: 100%; border-radius: 6px; background: #53fc18; transform-origin: 50% 50%; animation: eq 1s ease-in-out infinite; }
.eq s:nth-child(2) { animation-delay: -.3s; } .eq s:nth-child(3) { animation-delay: -.6s; } .eq s:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .eq s { animation: none; transform: scaleY(.6); } }

/* ----------------------------------------------------------- komendy czatu */

.cmd { margin-top: 18px; }
.cmd-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cmd-chat { border-radius: 24px; background: rgba(12, 10, 10, .55); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; height: 500px; }
.cmd-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cmd-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--kick); box-shadow: 0 0 10px var(--kick); }
.cmd-bar b { font-weight: 400; }
.cmd-bar code { margin-left: auto; padding: 4px 10px; border-radius: 10px; background: rgba(15, 13, 13, .78); }
.cmd-replay { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink); }
.cmd-replay:hover { background: rgba(255, 246, 240, .16); }
.cmd-replay svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmd-lines { flex: 1; list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 9px; justify-content: flex-end; overflow: hidden; font-size: 15px; line-height: 1.5; }
.cmd-lines li { animation: in .35s ease-out; overflow-wrap: anywhere; }
.cmd-lines b { font-weight: 500; }
.cmd-lines img { display: inline-block; height: 28px; width: auto; vertical-align: -9px; margin: 0 1px; }
.cmd-lines .bot { padding: 9px 12px; border-radius: 14px; background: rgba(83, 252, 24, .08); border: 1px solid rgba(83, 252, 24, .18); }
.cmd-lines .bot b { color: var(--kick); }
.cmd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cmd-list button {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; padding: 10px 14px 10px 10px; border-radius: 20px;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--ink); font: 400 14px/1.3 var(--f); transition: background-color .2s ease, border-color .2s ease;
}
.cmd-list button:hover { background: rgba(255, 246, 240, .14); }
.cmd-list img { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.cmd-list b { font-weight: 400; display: block; }
.cmd-list small { display: none; margin-top: 3px; font-size: 12px; color: var(--dim); }
.cmd-list button[aria-selected="true"] { background: rgba(83, 252, 24, .09); border-color: rgba(83, 252, 24, .45); }
.cmd-list button[aria-selected="true"] b { color: var(--kick); }
.cmd-list button[aria-selected="true"] small { display: block; }
@media (max-width: 900px) { .cmd-body { grid-template-columns: minmax(0, 1fr); } .cmd-chat { height: 420px; } }

/* widżety: lista po lewej, podgląd po prawej (odwrotnie niż przy grach) */
.wd-body { grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); }
.wd-opts { margin-top: 18px; padding-top: 2px; border-top: 1px solid var(--line); }
.wd-opts[hidden] { display: none; }
.wd-opts .theme-label:first-child { margin-top: 12px; }
@media (max-width: 1100px) { .wd-body { grid-template-columns: minmax(0, 1fr); } .wd-body .games-main { order: -1; } }
