:root {
  /* Barwy z banera i MOTD serwera Igrzyska Śmierci */
  --bg: #0e0607;
  --bg-2: #140a0b;
  --surface: #1b0f11;
  --surface-2: #241417;
  --border: #3a1f24;
  --border-strong: #53303a;
  --text: #f6eded;
  --muted: #b8a1a4;
  --accent: #e63946;
  --accent-rgb: 230, 57, 70;
  --accent-strong: #c1121f;
  --accent-deep: #7a0c14;
  --accent-ink: #fff;
  --gold: #ffb703;
  --gold-rgb: 255, 183, 3;
  --ember-rgb: 255, 183, 3;
  --font-title: 'Cinzel', Georgia, serif;
  --success: #22c55e;
  --danger: #f05252;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; line-height: 1.15; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }

/* ---------- Przyciski i pola ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; text-decoration: none; transition: transform .15s, background .15s, border-color .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); color: var(--accent-ink); box-shadow: 0 8px 24px -10px rgba(var(--accent-rgb), .6); }
.btn--primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn--ghost { background: var(--surface-2); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--border-strong); }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 20px; font-size: 16px; }

.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 22px; line-height: 1;
}
.icon-btn:hover { border-color: var(--border-strong); }

.input {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.input.is-invalid { border-color: var(--danger); }
/* iOS Safari przybliża stronę przy pisaniu w polach mniejszych niż 16px */
@media (max-width: 767px) { .input, .qty__input { font-size: 16px; } }

.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.field em { font-style: normal; font-weight: 400; }
.check { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); align-items: flex-start; }
.check input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check a { color: var(--accent); }
.field-error, .form-error { color: var(--danger); font-size: 13px; margin: 6px 0 0; }

/* ---------- Pasek górny ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 14, 20, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-title); font-weight: 900; font-size: 19px; letter-spacing: .02em; }
.topbar__nav { display: none; gap: 22px; margin-left: 12px; }
.topbar__nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.topbar__nav a:hover { color: var(--text); }
@media (min-width: 760px) { .topbar__nav { display: flex; } }

.cart-btn {
  margin-left: auto; position: relative; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-weight: 600;
}
.cart-btn:hover { border-color: var(--border-strong); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700;
}
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.08); } }
@media (max-width: 480px) { .cart-btn__label { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(var(--accent-rgb), .2), transparent 70%),
    radial-gradient(600px 360px at 85% 100%, rgba(var(--ember-rgb), .18), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 40px 40px;
  mask-image: linear-gradient(180deg, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
  opacity: .9;
}
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.embers span {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px 2px rgba(var(--gold-rgb), .7);
  opacity: 0; animation: ember 7s linear infinite;
}
.embers span:nth-child(3n) { background: var(--accent); box-shadow: 0 0 8px 2px rgba(var(--accent-rgb), .7); }
.embers span:nth-child(1)  { left: 6%;  animation-delay: 0s;   animation-duration: 8s; }
.embers span:nth-child(2)  { left: 14%; animation-delay: 2.5s; }
.embers span:nth-child(3)  { left: 23%; animation-delay: 4.1s; animation-duration: 9s; }
.embers span:nth-child(4)  { left: 34%; animation-delay: 1.2s; width: 3px; height: 3px; }
.embers span:nth-child(5)  { left: 47%; animation-delay: 5.6s; animation-duration: 10s; }
.embers span:nth-child(6)  { left: 58%; animation-delay: .8s;  width: 3px; height: 3px; }
.embers span:nth-child(7)  { left: 67%; animation-delay: 3.3s; animation-duration: 8.5s; }
.embers span:nth-child(8)  { left: 76%; animation-delay: 6.2s; }
.embers span:nth-child(9)  { left: 84%; animation-delay: 1.9s; animation-duration: 9.5s; width: 3px; height: 3px; }
.embers span:nth-child(10) { left: 93%; animation-delay: 4.7s; }
@keyframes ember {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translate(18px, -45vh); }
  100% { transform: translate(-12px, -90vh); opacity: 0; }
}
.hero__inner { position: relative; display: grid; gap: 36px; padding-top: 56px; padding-bottom: 48px; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.4fr 1fr; align-items: center; padding-top: 80px; padding-bottom: 72px; } }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
@media (max-width: 480px) { .eyebrow { letter-spacing: .2em; font-size: 12px; } }
.hero h1 {
  font-family: var(--font-title); font-weight: 900; font-size: clamp(44px, 8vw, 84px);
  line-height: 1; letter-spacing: .03em; text-transform: uppercase;
  text-shadow: 0 4px 0 #5b0a12, 0 0 40px rgba(var(--accent-rgb), .35);
}
.hero h1 .accent {
  background: linear-gradient(180deg, #ffe08a, var(--gold) 55%, #b86e00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 4px 0 #5b2a00) drop-shadow(0 0 24px rgba(var(--gold-rgb), .35));
}
.hero__motto { margin: 16px 0 0; font-weight: 600; font-size: 17px; color: var(--text); }
.hero__motto span { color: var(--gold); }
.hero__side { display: grid; gap: 12px; justify-items: center; }
.hero__emblem {
  display: none; width: 190px; height: 190px; margin-bottom: 8px;
  filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), .45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
@media (min-width: 960px) { .hero__emblem { display: block; } }
.hero__side .perks { width: 100%; }
.hero__lead { color: var(--muted); font-size: 17px; max-width: 520px; margin: 16px 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ip-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
  max-width: 100%;
}
.ip-pill:hover { border-color: var(--border-strong); }
.ip-pill__ip { font-weight: 700; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; overflow: hidden; text-overflow: ellipsis; }
.ip-pill__players { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ip-pill svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status-dot.is-online { background: var(--success); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.status-dot.is-offline { background: var(--danger); }

.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perks li {
  display: flex; gap: 14px; align-items: center; padding: 16px;
  background: rgba(21, 26, 36, .75); border: 1px solid var(--border); border-radius: var(--radius);
}
.perks svg { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: rgba(var(--accent-rgb), .12); color: var(--accent); flex: none; }
.perks strong { display: block; font-size: 15px; }
.perks span { color: var(--muted); font-size: 13px; }

/* ---------- Układ ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 72px; scroll-margin-top: 64px; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }

.catalog__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.catalog__head h2 { font-family: var(--font-title); font-weight: 900; font-size: 30px; letter-spacing: .03em; }
.tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 8px 14px; border-radius: 9px; border: 0; background: none; color: var(--muted); font-weight: 600; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.product {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, var(--border)); box-shadow: var(--shadow); }
.product__art {
  height: 130px; display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--border);
}
.product__art svg { width: 58px; height: 58px; color: var(--c); filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--c) 50%, transparent)); transition: transform .3s; }
.product:hover .product__art svg { transform: scale(1.08) rotate(-4deg); }
.product__badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--accent); color: var(--accent-ink);
}
.product__body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product__short { font-size: 12px; color: var(--muted); font-weight: 500; }
.product__name { font-family: var(--font-title); font-size: 21px; font-weight: 900; letter-spacing: .02em; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.product__price { font-size: 18px; font-weight: 800; color: var(--gold); }
.product__price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.product__add {
  padding: 8px 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface-2);
  font-weight: 600; font-size: 13px;
}
.product__add:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.skeleton { height: 270px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Pasek boczny ---------- */
.sidebar { display: grid; gap: 16px; }
@media (min-width: 960px) { .sidebar { position: sticky; top: 88px; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card h3 { font-size: 15px; margin-bottom: 4px; }
.card > .muted { font-size: 13px; margin: 0 0 12px; }

.player-card__row { display: flex; gap: 12px; align-items: center; }
.player-card__head { width: 48px; height: 48px; border-radius: 10px; image-rendering: pixelated; background: var(--surface-2); flex: none; }

.goal-card__head { display: flex; justify-content: space-between; align-items: baseline; }
.goal-card__pct { font-weight: 700; color: var(--gold); }
.progress { height: 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; margin: 12px 0 10px; }
.progress__bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent-strong), var(--accent) 60%, var(--gold)); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.goal-card .muted { font-size: 13px; margin: 0; }

.recent { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.recent li { display: flex; gap: 10px; align-items: center; }
.recent img { width: 30px; height: 30px; border-radius: 7px; image-rendering: pixelated; flex: none; }
.recent__text { min-width: 0; flex: 1; }
.recent__text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent__text span { color: var(--muted); }
.recent time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- Stopka ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }
.footer p { margin: 6px 0 0; font-size: 12.5px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }

/* ---------- Modal ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 50; }
.modal { display: grid; place-items: center; padding: 16px; }
.modal__backdrop, .drawer__backdrop { position: absolute; inset: 0; background: rgba(5, 7, 11, .7); backdrop-filter: blur(4px); animation: fade .2s; }
.modal__panel {
  position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow);
  animation: pop .22s cubic-bezier(.2, .8, .2, 1);
}
.modal__panel--sm { max-width: 420px; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.pm { display: grid; }
@media (min-width: 680px) { .pm { grid-template-columns: 280px 1fr; } }
.pm__art {
  --c: var(--accent);
  min-height: 200px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--c) 50%, transparent), transparent 70%), var(--surface-2);
}
.pm__art svg { width: 110px; height: 110px; color: var(--c); filter: drop-shadow(0 12px 28px color-mix(in srgb, var(--c) 55%, transparent)); }
.pm__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.pm__short { font-size: 13px; color: var(--muted); font-weight: 500; }
.pm__body h2 { font-family: var(--font-title); font-weight: 900; font-size: 30px; letter-spacing: .02em; }
.pm__body p { margin: 0; }
.pm__features { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 8px; }
.pm__features li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.pm__features li::before {
  content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: rgba(34, 197, 94, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pm__buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.pm__actions { margin-top: 6px; }
/* Na telefonie okno jest przewijane — cena i przycisk zostają przyklejone do dołu */
@media (max-width: 679px) {
  .pm__art { min-height: 130px; }
  .pm__art svg { width: 76px; height: 76px; }
  .pm__body { padding: 22px 20px 0; }
  .pm__actions {
    position: sticky; bottom: 0; margin: 6px -20px 0; padding: 14px 20px 18px;
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -12px 24px -12px rgba(0, 0, 0, .6);
  }
}
.pm__price { font-size: 26px; font-weight: 800; color: var(--gold); margin-left: auto; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.qty__btn { width: 34px; height: 36px; border: 0; background: none; font-size: 18px; color: var(--muted); }
.qty__btn:hover { color: var(--text); }
.qty__input { width: 44px; text-align: center; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty__input:focus { outline: none; }
.qty--sm .qty__btn { width: 28px; height: 30px; font-size: 16px; }
.qty--sm .qty__input { width: 32px; font-size: 13px; }

/* ---------- Koszyk ---------- */
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-left: 1px solid var(--border-strong);
  animation: slide .25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head {
  position: sticky; top: 0; z-index: 1; background: var(--surface);
  display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.drawer__head h2 { font-size: 20px; }
.drawer__body { flex: 1 0 auto; padding: 8px 20px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--border); display: grid; gap: 12px; background: var(--bg-2); }
/* Przycisk płatności zawsze widoczny, nawet gdy formularz trzeba przewinąć */
.drawer__foot [data-checkout] { position: sticky; bottom: 14px; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .8), 0 8px 24px -10px rgba(var(--accent-rgb), .6); }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line__art { --c: var(--accent); width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface-2)); }
.cart-line__art svg { width: 26px; height: 26px; color: var(--c); }
.cart-line__name { font-weight: 600; }
.cart-line__meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cart-line__remove { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0; text-decoration: underline; }
.cart-line__remove:hover { color: var(--danger); }
.cart-line__price { font-weight: 700; }
.cart-empty { display: grid; place-items: center; gap: 8px; padding: 60px 0; color: var(--muted); }
.cart-empty svg { width: 48px; height: 48px; }

.coupon { display: flex; gap: 8px; }
.coupon .input { text-transform: uppercase; }
.coupon__applied { margin: 0; font-size: 13px; color: var(--success); display: flex; justify-content: space-between; }
.coupon__applied button { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 12px; }

.totals { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals__grand { padding-top: 8px; border-top: 1px dashed var(--border-strong); font-size: 17px; }
.totals__grand dt { color: var(--text); font-weight: 600; }
.totals__grand dd { font-weight: 800; color: var(--gold); }

/* ---------- Status zamówienia ---------- */
.order-status { padding: 36px 28px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.order-status__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; }
.order-status__icon svg { width: 32px; height: 32px; }
.order-status__icon--ok { background: rgba(34, 197, 94, .14); color: var(--success); }
.order-status__icon--wait { background: rgba(var(--accent-rgb), .14); color: var(--accent); }
.order-status__icon--err { background: rgba(240, 82, 82, .14); color: var(--danger); }
.order-status h2 { font-size: 22px; }
.order-status p { margin: 0; color: var(--muted); }
.order-status ul { list-style: none; padding: 12px 14px; margin: 8px 0; width: 100%; text-align: left; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; display: grid; gap: 4px; }
.order-status li { display: flex; justify-content: space-between; }
.order-status small { color: var(--muted); font-size: 11.5px; word-break: break-all; }
.spinner { width: 30px; height: 30px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  padding: 12px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); font-weight: 500; font-size: 14px; animation: pop .2s; max-width: calc(100% - 32px);
}

/* ---------- Nawigacja wspólna ---------- */
.topbar__nav a[aria-current="page"] { color: var(--text); }
/* Skrót do sklepu tylko na telefonie, gdzie menu jest schowane — na komputerze "Sklep" jest w menu */
.topbar__cta { margin-left: auto; padding: 9px 16px; }
@media (min-width: 760px) { .topbar__cta { display: none; } }
/* Discord na telefonie jako ikona obok skrótu do sklepu / koszyka — na komputerze jest w menu */
.topbar__discord {
  margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.topbar__discord:hover { border-color: var(--border-strong); }
.topbar__discord svg { width: 20px; height: 20px; }
.topbar__discord + .topbar__cta, .topbar__discord + .cart-btn { margin-left: 8px; }
@media (min-width: 760px) {
  .topbar__discord { display: none; }
  .topbar__discord + .cart-btn { margin-left: auto; }
}
.btn svg { width: 18px; height: 18px; flex: none; }
code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .92em;
  padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--gold);
}

/* ---------- Strona główna ---------- */
.home-hero {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: 48px; padding-bottom: 56px;
}
@media (min-width: 720px) { .home-hero { padding-top: 64px; padding-bottom: 72px; } }
.home-hero__emblem {
  width: 140px; height: 140px; margin-bottom: 18px;
  filter: drop-shadow(0 0 48px rgba(var(--accent-rgb), .5));
  animation: float 6s ease-in-out infinite;
}
@media (min-width: 720px) { .home-hero__emblem { width: 180px; height: 180px; } }
.hero--home h1 { font-size: clamp(42px, 9vw, 96px); }
.hero--home .hero__motto { font-size: 18px; margin-bottom: 28px; }
.ip-pill--lg { padding: 13px 18px; font-size: 16px; }
.home-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 44px 0 0; width: 100%; max-width: 760px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: rgba(27, 15, 17, .9); padding: 16px 12px; }
.stats dt { font-family: var(--font-title); font-weight: 900; font-size: 28px; color: var(--gold); line-height: 1.1; }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.section { padding: 64px 0; }
@media (min-width: 720px) { .section { padding: 88px 0; } }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section__head h2 { font-family: var(--font-title); font-weight: 900; font-size: clamp(28px, 4.5vw, 40px); letter-spacing: .02em; }
.section__head p { margin: 12px 0 0; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li {
  position: relative; padding: 22px 20px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.timeline li::before {
  content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.timeline__win { border-color: rgba(var(--gold-rgb), .45) !important; box-shadow: 0 0 40px -18px rgba(var(--gold-rgb), .6); }
.timeline__win::before { background: linear-gradient(90deg, var(--gold), transparent) !important; }
.timeline__time {
  display: inline-block; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-weight: 700; font-size: 13px;
  color: var(--gold); padding: 3px 8px; border-radius: 6px; background: rgba(var(--gold-rgb), .1); margin-bottom: 12px;
}
.timeline h3 { font-family: var(--font-title); font-weight: 900; font-size: 22px; margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14px; }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--accent); background: rgba(var(--accent-rgb), .12); margin-bottom: 14px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 16px; max-width: 980px; counter-reset: none; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px;
  font-family: var(--font-title); font-weight: 900; font-size: 20px; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent), var(--accent-strong)); box-shadow: 0 6px 18px -6px rgba(var(--accent-rgb), .7);
}
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
.steps strong { color: var(--text); }
.link-copy {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--gold);
  text-decoration: underline dotted; text-underline-offset: 3px;
}

.ranks { display: grid; gap: 20px; max-width: 820px; margin: 0 auto; }
@media (min-width: 720px) { .ranks { grid-template-columns: 1fr 1fr; } }
.rank {
  position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 18px; text-decoration: none;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 65%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--c) 35%, var(--border)); transition: transform .2s, box-shadow .2s;
}
.rank:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.rank__badge {
  position: absolute; top: -12px; right: 20px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--c); color: #04141c;
}
.rank__tag { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-weight: 700; color: var(--c); font-size: 14px; }
.rank h3 { font-family: var(--font-title); font-weight: 900; font-size: 34px; margin-top: 4px; }
.rank__price { margin: 4px 0 16px; font-size: 18px; font-weight: 800; color: var(--gold); }
.rank ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.rank li { display: flex; gap: 10px; align-items: baseline; }
.rank li::before { content: '◆'; color: var(--c); font-size: 10px; flex: none; }
.rank__cta { margin-top: auto; font-weight: 700; color: var(--text); }
.rank:hover .rank__cta { color: var(--c); }

.cta {
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 40px 24px;
  border-radius: 20px; border: 1px solid rgba(var(--accent-rgb), .35);
  background: radial-gradient(600px 200px at 50% 0%, rgba(var(--accent-rgb), .22), transparent 70%), var(--surface);
}
@media (min-width: 820px) { .cta { flex-direction: row; text-align: left; padding: 32px 40px; } .cta__actions { margin-left: auto; } }
.cta img { filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), .5)); }
.cta h2 { font-family: var(--font-title); font-weight: 900; font-size: 30px; }
.cta p { margin: 4px 0 0; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

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