/* ============================================================
   BlazeRPG – styl
   ============================================================ */
:root {
  --bg: #070404;
  --bg-2: #0d0707;
  --card: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(255, 120, 40, 0.06);
  --line: rgba(255, 255, 255, 0.07);
  --line-hot: rgba(255, 110, 30, 0.45);
  --text: #f4ece6;
  --muted: #9a8c84;
  --dim: #5f5550;
  --orange: #ff7a1a;
  --orange-2: #ff9a3c;
  --red: #e5281f;
  --yellow: #ffcf4a;
  --fire: linear-gradient(100deg, #ffcf4a 0%, #ff7a1a 35%, #e5281f 80%);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-d: "Unbounded", system-ui, sans-serif;
  --font: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
main, .footer { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--orange); color: #000; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; position: relative; z-index: 2; }
.container.narrow { width: min(860px, 100% - 32px); }
.section { padding-block: clamp(70px, 10vw, 130px) 0; }
.page-top { padding-top: 140px; padding-bottom: 60px; min-height: 100vh; }

/* ---------- tło ---------- */
#embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.noise {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: 1; pointer-events: none;
  border-radius: 50%; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 110, 30, .12), transparent 60%);
  transition: opacity .4s; opacity: 0;
}
body.has-cursor .cursor-glow { opacity: 1; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; gap: 28px; justify-items: center;
  background: var(--bg); transition: opacity .7s var(--ease), visibility .7s;
}
.loader img { width: 120px; animation: loaderPulse 1.4s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(255, 100, 20, .6)); }
.loader-bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--fire); animation: loaderBar 1s var(--ease) infinite; }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes loaderPulse { 50% { transform: scale(1.08); filter: drop-shadow(0 0 50px rgba(255, 100, 20, .9)); } }
@keyframes loaderBar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ---------- przejście stron ---------- */
.page-wipe {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--bg); opacity: 0;
}
.page-wipe.in { animation: wipeIn .25s ease forwards; }
.page-wipe.out { animation: wipeOut .35s ease forwards; }
@keyframes wipeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipeOut { from { opacity: 1; } to { opacity: 0; } }

/* ---------- nawigacja ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; translate: -50% 0; z-index: 50;
  width: min(1180px, 100% - 32px);
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 5, 5, .55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background .3s, border-color .3s, top .3s, box-shadow .3s;
}
.nav.scrolled { top: 10px; background: rgba(10, 5, 5, .85); border-color: rgba(255, 120, 40, .18); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 900; font-size: 18px; letter-spacing: -.02em; }
.nav-brand img { width: 34px; height: 34px; object-fit: contain; transition: transform .5s var(--ease); }
.nav-brand:hover img { transform: rotate(-12deg) scale(1.15); }
.nav-brand b { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { position: relative; display: flex; gap: 4px; }
.nav-links a {
  position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-indicator {
  position: absolute; top: 0; height: 100%; border-radius: 999px; z-index: 0;
  background: linear-gradient(100deg, rgba(255, 122, 26, .22), rgba(229, 40, 31, .22));
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, .35), 0 0 24px rgba(255, 100, 20, .2);
  transition: left .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.btn-discord {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: #5865f2; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn-discord svg { width: 18px; height: 18px; fill: currentColor; }
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(88, 101, 242, .5); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .05); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- typografia ---------- */
h1, h2, h3 { font-family: var(--font-d); margin: 0; letter-spacing: -.03em; line-height: 1.05; }
h2 { font-size: clamp(30px, 5vw, 54px); font-weight: 900; text-transform: uppercase; }
h3 { font-size: 19px; font-weight: 700; }
.fire-text {
  background: var(--fire); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kicker {
  margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--orange);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--fire); border-radius: 2px; }
.section-head { text-align: center; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head .kicker::after { content: ""; width: 28px; height: 2px; background: var(--fire); border-radius: 2px; }
code { font-family: ui-monospace, monospace; color: var(--orange-2); background: rgba(255, 122, 26, .1); padding: 2px 7px; border-radius: 6px; font-size: .92em; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 120px 16px 90px;
}
.hero-glow {
  position: absolute; top: 8%; left: 50%; translate: -50% 0; width: min(900px, 140vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 100, 20, .14), rgba(229, 40, 31, .05) 40%, transparent 65%);
}
.hero-logo { position: relative; width: clamp(200px, 32vw, 340px); aspect-ratio: 1; margin-bottom: 18px; display: grid; place-items: center; }
.hero-logo img {
  position: relative; z-index: 2; width: 100%; object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(255, 100, 20, .3));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot, .pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 2s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

.hero-title { font-size: clamp(32px, 7vw, 84px); font-weight: 900; text-transform: uppercase; line-height: 1; }
.hero-title .split { display: block; }
.split .ch { display: inline-block; opacity: 0; transform: translateY(70%) rotate(8deg); filter: blur(6px); }
.split.go .ch { animation: chIn .8s var(--ease) forwards; animation-delay: calc(var(--i) * 28ms); }
.split .sp { display: inline-block; width: .3em; }
.split .word { display: inline-block; white-space: nowrap; }
@keyframes chIn { to { opacity: 1; transform: none; filter: none; } }
.hero-title .split.fire-text { background: none; animation: none; color: var(--orange); }
.hero-title .split.fire-text .ch { text-shadow: 0 0 40px rgba(255, 90, 20, .45); }
.hero-sub { margin: 22px 0 40px; font-size: clamp(16px, 2vw, 20px); color: var(--muted); font-weight: 500; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.ip-btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 14px 28px 14px 18px; border-radius: 999px;
  background: #0d0707; border: 1px solid rgba(255, 122, 26, .35); text-align: left; overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.ip-btn-bg { position: absolute; inset: 0; background: var(--fire); opacity: 0; transition: opacity .4s; }
.ip-btn:hover { border-color: var(--orange); box-shadow: 0 0 50px rgba(255, 100, 20, .35); }
.ip-btn:hover .ip-btn-bg { opacity: .14; }
.ip-btn svg { position: relative; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--fire); fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; flex: none; transition: transform .4s var(--ease); }
.ip-btn:hover svg { transform: rotate(-10deg) scale(1.08); }
.ip-label { position: relative; display: grid; line-height: 1.2; }
.ip-label small { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ip-label strong { font-family: var(--font-d); font-size: 20px; letter-spacing: -.01em; }
.ip-btn.copied { border-color: #3ddc84; box-shadow: 0 0 40px rgba(61, 220, 132, .3); }
.ip-btn.copied svg { background: #3ddc84; }
.ip-btn.copied small { color: #3ddc84; }

.btn-ghost {
  display: inline-flex; padding: 16px 26px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  transition: color .3s, border-color .3s, background .3s;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); }

.btn-fire {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 34px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--fire); background-size: 200% 100%; color: #fff;
  font-weight: 900; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 40px rgba(255, 90, 20, .35);
  transition: background-position .6s var(--ease), box-shadow .3s, transform .3s var(--ease);
}
.btn-fire::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-fire:hover { background-position: 100% 0; box-shadow: 0 14px 60px rgba(255, 90, 20, .6); }
.btn-fire:hover::after { transform: translateX(120%); }
.btn-fire.wide { width: 100%; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- karty / tilt ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 122, 26, .16), transparent 45%);
}
.tilt:hover::after { opacity: 1; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: clamp(80px, 10vw, 120px); }
.stat-card {
  position: relative; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  transition: border-color .4s, background .4s, transform .5s var(--ease);
}
.stat-card:hover { border-color: var(--line-hot); background: var(--card-hover); }
.stat-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .04); margin-bottom: 26px; transition: background .4s, transform .5s var(--ease); }
.stat-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.stat-card:hover .stat-icon { background: var(--fire); transform: rotate(-8deg) scale(1.08); }
.stat-card:hover .stat-icon svg { stroke: #fff; }
.stat-num { font-family: var(--font-d); font-size: clamp(40px, 5vw, 58px); font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  position: relative; padding: 30px 26px 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.feature::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--fire);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.feature:hover { border-color: var(--line-hot); }
.feature:hover::before { transform: scaleX(1); }
.feature-num { font-family: var(--font-d); font-size: 54px; font-weight: 900; line-height: 1; margin-bottom: 40px; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 122, 26, .5); transition: color .4s; }
.feature:hover .feature-num { color: rgba(255, 122, 26, .15); }
.feature h3 { margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- kroki ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 31px; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform 1.4s var(--ease);
}
.steps.in-view::before { --progress: 1; }
.step { text-align: center; position: relative; }
.step-dot {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  font-family: var(--font-d); font-weight: 900; font-size: 22px; position: relative; z-index: 1;
  background: var(--bg); border: 2px solid var(--orange); box-shadow: 0 0 30px rgba(255, 100, 20, .35), inset 0 0 20px rgba(255, 100, 20, .2);
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0 auto; color: var(--muted); max-width: 280px; }

/* ---------- discord CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: clamp(32px, 5vw, 60px); border-radius: 32px; border: 1px solid rgba(255, 122, 26, .25);
  background: linear-gradient(120deg, rgba(255, 122, 26, .12), rgba(229, 40, 31, .05) 60%, rgba(88, 101, 242, .1));
}
.cta-band-glow { position: absolute; width: 400px; height: 400px; right: -100px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 26, .25), transparent 70%); pointer-events: none; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 10px; }
.cta-band p { margin: 0; color: var(--muted); max-width: 520px; }
.cta-band .btn-fire { flex: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: none; }
.tilt.reveal.in-view { transition: opacity .9s var(--ease) var(--d, 0s), transform .25s ease-out, border-color .4s, background .4s; }

/* ---------- sklep ---------- */
.shop { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.shop-side { display: grid; gap: 18px; position: sticky; top: 110px; }
.chest-wrap { position: relative; display: grid; place-items: center; padding: 10px; }
.chest-wrap img { position: relative; width: 78%; filter: drop-shadow(0 20px 40px rgba(255, 100, 20, .35)); }
.chest-glow { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 150, 30, .25), transparent 70%); }
.float { animation: float 5s ease-in-out infinite; }
.skin-preview, .help-box { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-align: center; }
.skin-preview img { height: 150px; margin: 0 auto 10px; image-rendering: pixelated; transition: transform .5s var(--ease), opacity .3s; }
.skin-preview.swap img { opacity: 0; transform: scale(.8) rotate(-6deg); }
.skin-preview p { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.skin-preview p b { color: var(--orange); }
.help-box p { margin: 0 0 4px; font-weight: 700; }
.help-box a { color: var(--orange); font-size: 14px; font-weight: 700; transition: color .3s; }
.help-box a:hover { color: var(--yellow); }

.shop-card {
  position: relative; padding: clamp(22px, 4vw, 40px); border-radius: 28px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  display: grid; gap: 28px;
}
.shop-card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 122, 26, .6), transparent 35%, transparent 70%, rgba(229, 40, 31, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.shop-card-head { display: flex; align-items: center; gap: 16px; }
.shop-card-head h3 { font-size: 24px; }
.shop-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.coin { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--fire); box-shadow: 0 10px 30px rgba(255, 100, 20, .4); flex: none; }
.coin svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field > span { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.amounts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.amounts button, .methods button {
  position: relative; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  transition: border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
}
.amounts button { padding: 18px 6px; font-family: var(--font-d); font-weight: 900; font-size: 20px; }
.amounts button:hover, .methods button:hover { border-color: rgba(255, 122, 26, .4); transform: translateY(-3px); }
.amounts button.active, .methods button.active {
  border-color: var(--orange); background: linear-gradient(160deg, rgba(255, 122, 26, .22), rgba(229, 40, 31, .1));
  box-shadow: 0 0 0 1px var(--orange), 0 10px 30px rgba(255, 100, 20, .25);
}
.amounts button.active { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.08); } }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.methods button { padding: 16px; display: grid; gap: 2px; text-align: left; }
.methods b { font-size: 16px; }
.methods small { font-size: 12px; color: var(--muted); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input {
  width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35);
  color: #fff; font: inherit; font-weight: 700; outline: none; transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder { color: var(--dim); font-weight: 500; }
.field input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 26, .15); }
.field input.invalid { border-color: var(--red); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

.check { display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--muted); font-size: 15px; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; transition: background .3s, border-color .3s; }
.check .box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform .3s var(--ease); }
.check input:checked + .box { background: var(--fire); border-color: transparent; }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(255, 122, 26, .25); }
.check.invalid .box { border-color: var(--red); animation: shake .4s; }
.check a { color: var(--orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-radius: 16px; background: rgba(255, 122, 26, .06); border: 1px dashed rgba(255, 122, 26, .3); }
.summary span { color: var(--muted); font-size: 14px; font-weight: 600; }
.summary strong { font-family: var(--font-d); font-size: 20px; }
#sumAmount { display: inline-block; color: var(--orange); }
#sumAmount.bump { animation: pop .4s var(--ease); }

.form-error { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; background: rgba(229, 40, 31, .12); border: 1px solid rgba(229, 40, 31, .4); color: #ffb4ae; font-weight: 600; font-size: 14px; animation: shake .4s; }
.form-error[hidden] { display: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-fire.loading { pointer-events: none; opacity: .85; }
.btn-fire.loading .spinner { display: block; }

/* ---------- ranking ---------- */
.tabs { position: relative; display: flex; gap: 4px; padding: 6px; margin: 0 auto 60px; width: max-content; max-width: 100%; overflow-x: auto; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; padding: 11px 20px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .3s; }
.tabs button.active { color: #fff; }
.tab-indicator { position: absolute; top: 6px; bottom: 6px; border-radius: 999px; background: var(--fire); box-shadow: 0 6px 24px rgba(255, 100, 20, .4); transition: left .45s var(--ease), width .45s var(--ease); }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; max-width: 820px; margin: 0 auto 40px; }
.podium-item { text-align: center; opacity: 0; transform: translateY(40px); animation: rise .8s var(--ease) forwards; animation-delay: var(--d); }
@keyframes rise { to { opacity: 1; transform: none; } }
.podium-avatar { position: relative; width: 84px; margin: 0 auto 14px; }
.podium-avatar img { width: 84px; height: 84px; border-radius: 18px; image-rendering: pixelated; background: #151010; border: 2px solid var(--c); box-shadow: 0 0 30px color-mix(in srgb, var(--c) 50%, transparent); }
.podium-crown { position: absolute; top: -26px; left: 50%; translate: -50% 0; font-size: 26px; animation: float 3s ease-in-out infinite; }
.podium-name { font-weight: 800; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-score { font-family: var(--font-d); color: var(--c); font-weight: 900; font-size: 18px; margin-bottom: 14px; }
.podium-block {
  border-radius: 18px 18px 6px 6px; display: grid; place-items: center; font-family: var(--font-d); font-weight: 900; font-size: 40px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, transparent), rgba(255, 255, 255, .02));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-bottom: 0;
  color: color-mix(in srgb, var(--c) 80%, #fff);
}
.podium-item.p1 { --c: #ffc93c; } .podium-item.p1 .podium-block { height: 170px; }
.podium-item.p2 { --c: #cfd6e0; } .podium-item.p2 .podium-block { height: 125px; }
.podium-item.p3 { --c: #e08a4a; } .podium-item.p3 .podium-block { height: 95px; }
.podium-item.p1 .podium-avatar, .podium-item.p1 .podium-avatar img { width: 100px; height: 100px; }

.rank-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 10px; }
.rank-row {
  display: grid; grid-template-columns: 56px 44px 1fr auto; align-items: center; gap: 16px; padding: 12px 20px 12px 16px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  opacity: 0; transform: translateX(-30px); animation: slideIn .6s var(--ease) forwards; animation-delay: var(--d);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.rank-row:hover { border-color: var(--line-hot); background: var(--card-hover); transform: translateX(6px); }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.rank-pos { font-family: var(--font-d); font-weight: 900; color: var(--dim); font-size: 18px; }
.rank-row img { width: 40px; height: 40px; border-radius: 10px; image-rendering: pixelated; background: #151010; }
.rank-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { font-family: var(--font-d); font-weight: 700; color: var(--orange); }

/* ---------- regulamin ---------- */
.rules { display: grid; gap: 12px; }
.rule { border-radius: 20px; border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: border-color .3s, background .3s; }
.rule.open { border-color: var(--line-hot); background: rgba(255, 122, 26, .035); }
.rule-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-align: left; }
.rule-num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; font-family: var(--font-d); font-weight: 900; font-size: 14px; background: rgba(255, 255, 255, .04); color: var(--orange); transition: background .3s, color .3s; }
.rule.open .rule-num { background: var(--fire); color: #fff; }
.rule-title { flex: 1; font-family: var(--font-d); font-weight: 700; font-size: clamp(15px, 2vw, 18px); }
.rule-chev { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2.5; transition: transform .4s var(--ease); flex: none; }
.rule.open .rule-chev { transform: rotate(180deg); stroke: var(--orange); }
.rule-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.rule.open .rule-body { grid-template-rows: 1fr; }
.rule-body > div { overflow: hidden; }
.rule-body ol { margin: 0; padding: 0 26px 24px 82px; color: var(--muted); display: grid; gap: 12px; font-size: 15px; }
.rule-body li::marker { color: var(--orange); font-weight: 800; }

/* ---------- stopka ---------- */
.footer { position: relative; z-index: 2; margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); background: rgba(0, 0, 0, .4); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer p { margin: 0; color: var(--dim); font-size: 13px; }
.footer a { color: var(--orange); }
.footer a:hover { color: var(--yellow); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; z-index: 80; translate: -50% 140px;
  padding: 14px 22px; border-radius: 999px; background: #121010; border: 1px solid rgba(61, 220, 132, .5);
  color: #bff5d6; font-weight: 700; font-size: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  transition: translate .5s var(--ease);
}
.toast.show { translate: -50% 0; }

/* ---------- widoki stron ---------- */
.page[hidden] { display: none; }

/* ---------- responsywność ---------- */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .shop { grid-template-columns: 1fr; }
  .shop-side { position: static; grid-template-columns: 1fr 1fr; order: 2; }
  .chest-wrap { grid-column: 1 / -1; max-width: 260px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .nav { padding: 8px 8px 8px 14px; }
  .burger { display: block; }
  .btn-discord span { display: none; }
  .btn-discord { padding: 0; width: 44px; height: 44px; justify-content: center; margin-left: auto; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 24px; border: 1px solid var(--line); background: #0c0606; box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 18px; }
  .nav-links a.active { background: rgba(255, 122, 26, .14); }
  .nav-indicator { display: none; }
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 32px; bottom: 32px; left: 50%; right: auto; width: 2px; height: auto; transform: scaleY(var(--progress, 0)); transform-origin: top; opacity: .35; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .stats { gap: 12px; }
  .stat-card { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 22px 24px; }
  .stat-icon { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .stat-num { font-size: 40px; }
  .stat-label { margin-top: 6px; letter-spacing: .14em; }
  .features { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 24px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
  .feature-num { grid-row: 1 / span 2; margin: 0; font-size: 40px; }
  .feature h3 { margin-bottom: 6px; }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .methods { grid-template-columns: 1fr; }
  .methods button { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
  .summary { padding: 14px 16px; gap: 10px; }
  .summary span { font-size: 13px; }
  .summary strong { font-size: 16px; white-space: nowrap; }
  .fields { grid-template-columns: 1fr; }
  .shop-side { grid-template-columns: 1fr; }
  .podium { gap: 8px; }
  .podium-avatar, .podium-avatar img, .podium-item.p1 .podium-avatar, .podium-item.p1 .podium-avatar img { width: 60px; height: 60px; }
  .podium-name { font-size: 13px; }
  .podium-score { font-size: 14px; }
  .rank-row { grid-template-columns: 40px 36px 1fr auto; gap: 10px; padding: 10px 14px 10px 12px; }
  .rank-row img { width: 36px; height: 36px; }
  .rule-body ol { padding: 0 20px 22px 40px; }
  .ip-label strong { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .split .ch { opacity: 1 !important; transform: none !important; filter: none !important; }
}
