/* Author: yopappyn */
:root {
  --bg: #050608; --bg2: #0a0c11; --surface: #0f1218; --surface2: #151922; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.05);
  --text: #eef1f6; --muted: #8a93a3; --accent: #e23b3b; --accent2: #ff9a9a; --accent-d: color-mix(in srgb, var(--accent) 80%, #000); --accent-l: color-mix(in srgb, var(--accent) 14%, transparent);
  --ok: #3ddc97; --ok-l: rgba(61,220,151,.12); --warn: #ffbe3d; --warn-l: rgba(255,190,61,.12); --bad: #ff5a5f; --bad-l: rgba(255,90,95,.12);
  --radius: 10px; --ease: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 'Inter', system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 50% at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(40% 40% at 100% 100%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%); }
body::after { content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
img { max-width: 100%; display: block; }
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 20px 72px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 5vw, 52px); } h2 { font-size: 22px; } h3 { font-size: 16px; }
.display { font-family: 'Anton', 'Inter', sans-serif; font-weight: 400; letter-spacing: .02em; line-height: .92; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.kicker { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* intro: kinowe pasy */
.bars::before, .bars::after { content: ''; position: fixed; left: 0; right: 0; height: 50vh; background: #000; z-index: 90; transition: transform 1.4s var(--ease) .25s; }
.bars::before { top: 0; } .bars::after { bottom: 0; }
.bars.open::before { transform: translateY(-100%); } .bars.open::after { transform: translateY(100%); }

/* odsłanianie przy przewijaniu */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
.split span { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.split.in span { opacity: 1; transform: none; }

.demo-bar { position: relative; z-index: 5; background: var(--warn-l); color: var(--warn); font-size: 12px; text-align: center; padding: 6px 16px; border-bottom: 1px solid rgba(255,190,61,.2); }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(5,6,8,.7); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line2); }
.topbar .in { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { color: var(--text); font-family: 'Anton', sans-serif; font-size: 28px; letter-spacing: .12em; display: flex; align-items: center; gap: 10px; }
.brand:hover { color: #fff; }
.brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.topbar nav { display: flex; gap: 4px; margin-left: auto; }
.topbar nav a { color: var(--muted); padding: 8px 12px; font-size: 14px; font-weight: 500; position: relative; }
.topbar nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .4s var(--ease); }
.topbar nav a:hover, .topbar nav a.on { color: var(--text); }
.topbar nav a:hover::after, .topbar nav a.on::after { transform: scaleX(1); }

.footer { border-top: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: 14px; margin-top: auto; position: relative; z-index: 1; }
.footer .in { max-width: 1200px; margin: 0 auto; padding: 40px 20px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer h4 { margin: 0 0 10px; font-size: 11px; color: var(--text); text-transform: uppercase; letter-spacing: .2em; font-weight: 600; }
.footer a { color: var(--muted); display: block; padding: 2px 0; }
.footer a:hover { color: var(--text); }
.footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line2); padding-top: 18px; font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; }

/* strona główna */
.hero { min-height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 20px 60px; position: relative; }
.hero h1.display { font-size: clamp(64px, 13vw, 168px); margin: 18px 0 8px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 540px; color: var(--muted); font-size: 17px; margin: 0 auto 48px; }
.games { display: flex; gap: 16px; justify-content: center; align-items: center; width: 100%; max-width: 1080px; }
.game { flex: 1; aspect-ratio: 3/4; max-width: 190px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; text-align: left; color: var(--text); font: inherit; }
.game .gname { font-family: 'Anton', sans-serif; font-size: 34px; letter-spacing: .04em; line-height: 1; }
.game .gsub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.game .gart { position: absolute; inset: 0; opacity: .5; background-size: cover; background-position: center; }
.game.locked { filter: grayscale(1); opacity: .45; cursor: not-allowed; }
.game.locked .gart { opacity: .25; }
.game.locked::before { content: 'Wkrótce'; position: absolute; top: 12px; left: 12px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; background: rgba(0,0,0,.5); z-index: 1; }
.game.main { max-width: 260px; flex: 1.4; border-color: color-mix(in srgb, var(--accent) 50%, transparent); cursor: pointer; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent), 0 30px 80px -20px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.game.main:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 40px 100px -20px color-mix(in srgb, var(--accent) 60%, transparent); }
.game.main .gname { font-size: 52px; }
.game > * { position: relative; }
.game .gart { position: absolute; }
.game::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(5,6,8,.95)); }
.game > div { z-index: 1; }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

.section { padding: 80px 0 20px; }
.section-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(36px, 6vw, 64px); margin: 6px 0 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.srv-card { padding: 0; overflow: hidden; color: inherit; display: block; position: relative; transition: transform .6s var(--ease), border-color .4s; }
.srv-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: inherit; }
.srv-card .ban { height: 170px; background: var(--surface2) center/cover; transition: transform 1.2s var(--ease); }
.srv-card:hover .ban { transform: scale(1.06); }
.srv-card .body { padding: 16px 18px 18px; display: flex; gap: 14px; align-items: center; position: relative; background: var(--surface); }
.logo { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--surface2); border: 1px solid var(--line); flex: none; }
.logo.lg { width: 96px; height: 96px; border-radius: 18px; border: 1px solid rgba(255,255,255,.2); }

/* strona serwera */
.srv-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; margin: -32px -20px 32px; }
.srv-hero .bg { position: absolute; inset: 0; background: center/cover; transform: scale(1.12); filter: brightness(.5) saturate(1.1); transition: transform 2.4s var(--ease), filter 2.4s var(--ease); }
.srv-hero.in .bg { transform: scale(1); filter: brightness(.38); }
.srv-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,8,.2), rgba(5,6,8,.4) 50%, var(--bg)); }
.srv-hero .hin { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 20px; display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.srv-hero h1 { font-size: clamp(54px, 9vw, 110px); margin: 6px 0 4px; }
.stats-row { display: flex; gap: 32px; flex-wrap: wrap; margin: 8px 0 40px; }
.stats-row b { display: block; font-family: 'Anton', sans-serif; font-size: 38px; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.stats-row span { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.tabs { display: flex; gap: 6px; margin: 8px 0 24px; overflow-x: auto; padding-bottom: 4px; }
.tabs button { background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .3s; }
.tabs button:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.tabs button.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .6s var(--ease), border-color .4s; }
.product:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.product .img { aspect-ratio: 16/9; background: var(--surface2) center/cover; position: relative; }
.product .img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, var(--surface)); }
.product .body { padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product ul { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); flex: 1; }
.product li { padding: 3px 0 3px 18px; position: relative; }
.product li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.price { font-size: 22px; font-weight: 700; }
.price s { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 6px; }

.chip { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); color: var(--muted); }
.chip.ok { color: var(--ok); background: var(--ok-l); border-color: transparent; }
.chip.warn { color: var(--warn); background: var(--warn-l); border-color: transparent; }
.chip.bad { color: var(--bad); background: var(--bad-l); border-color: transparent; }
.chip.blue { color: var(--accent); background: var(--accent-l); border-color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); padding: 9px 16px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; transition: all .3s var(--ease); }
.btn:hover { border-color: rgba(255,255,255,.22); color: #fff; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.pri:hover { background: var(--accent-d); box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.ghost { background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.bad { color: var(--bad); } .btn.ok { color: var(--ok); }
.btn.sm { padding: 5px 11px; font-size: 13px; }
.btn.lg { padding: 13px 24px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }

label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin: 14px 0 6px; }
input, select, textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-l); }
select option { background: var(--surface); }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[type=color] { padding: 2px; height: 42px; }
input[type=date] { color-scheme: dark; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.check input { margin-top: 4px; }
.form2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.hp { position: absolute; left: -9999px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 80; animation: fade .3s; }
.modal .card { width: 100%; max-width: 540px; max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: rise .5s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--surface2); color: var(--text); padding: 12px 18px; border-radius: 8px; z-index: 99; max-width: calc(100% - 48px); font-size: 14px; border: 1px solid var(--line); border-left: 3px solid var(--ok); animation: rise .4s var(--ease); }
.toast.bad { border-left-color: var(--bad); }
.notice { padding: 11px 14px; border-radius: 8px; background: var(--accent-l); color: var(--accent2); font-size: 14px; margin-bottom: 16px; }
.notice.bad { background: var(--bad-l); color: var(--bad); }

.page-head { padding: 24px 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(44px, 7vw, 80px); }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }

.panel { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; position: sticky; top: 80px; }
.side button { text-align: left; background: none; border: 0; color: var(--muted); padding: 9px 12px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 14px; transition: all .2s; }
.side button:hover { color: var(--text); background: var(--surface2); }
.side button.on { background: var(--accent-l); color: var(--accent); font-weight: 600; }
.side .sep { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin: 14px 12px 6px; font-weight: 600; opacity: .7; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 16px; }
.kpi .v { font-size: 22px; font-weight: 700; margin-top: 2px; }
.kpi .l { font-size: 13px; color: var(--muted); }
.tbl { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
td.n, th.n { text-align: right; white-space: nowrap; }
.chart { width: 100%; height: 200px; }
.diff { font-size: 12px; color: var(--muted); word-break: break-word; }
.diff del { color: var(--bad); } .diff ins { color: var(--ok); text-decoration: none; }

.doc { max-width: 840px; margin: 0 auto; }
.doc h2 { margin-top: 32px; font-size: 19px; }
.doc p, .doc li { color: #c3c9d4; }
.doc ol, .doc ul { padding-left: 22px; }

@media (max-width: 860px) {
  .games { flex-wrap: wrap; }
  .game { flex: 0 0 calc(50% - 8px); max-width: none; aspect-ratio: 4/3; }
  .game.main { order: -1; flex: 0 0 100%; max-width: none; aspect-ratio: 16/9; }
  .panel { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; position: static; }
  .side .sep { display: none; }
  .side button { white-space: nowrap; }
  .topbar .in { gap: 8px; }
  .topbar nav a { padding: 8px 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .split span, .bars::before, .bars::after, .srv-hero .bg { transition: none !important; opacity: 1; transform: none; filter: none; }
  .bars::before, .bars::after { display: none; }
}
