/* ========== Tokens ========== */
:root {
  --color-bg: #0b0e14;
  --color-surface: #12161f;
  --color-surface-2: #181d29;
  --color-text: #e8eaf0;
  --color-text-muted: #9aa3b2;
  --color-accent: #c5d315;
  --color-accent-hover: #d4e34a;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-danger: #c94f4f;

  --font-base: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-h1: clamp(1.85rem, 1.2rem + 2.4vw, 3.35rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --lh-body: 1.6;
  --lh-heading: 1.15;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --transition: 200ms ease;
}

/* ========== Mini reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--color-accent);
  color: #111;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 0.75rem;
  color: #111;
}

.accent {
  color: var(--color-accent);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #14180a;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: #14180a;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--color-text);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
  }

  .btn--ghost:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
  }

  .feature-card:hover,
  .bonus-card:hover,
  .game-card:hover,
  .step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
  }
}

.btn:active {
  transform: translateY(0);
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 20, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 72px;
}

.header__logo {
  flex: 0 0 auto;
  line-height: 0;
}

.header__logo img {
  width: 148px;
  height: auto;
}

.header__nav {
  display: none;
  margin-left: auto;
  gap: 1.25rem;
}

.header__link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
}

.header__link:hover {
  color: var(--color-text);
}

.header__cta {
  margin-left: auto;
  padding-inline: 1.35rem;
}

/* ========== Sections shared ========== */
.section-head {
  max-width: 52rem;
  margin-bottom: 1.75rem;
}

.section-copy {
  max-width: 58rem;
  color: var(--color-text-muted);
}

.section-copy p + p,
.section-copy ul {
  margin-top: 0.9rem;
}

.section-copy ul {
  padding-left: 1.2rem;
}

.section-copy li + li {
  margin-top: 0.4rem;
}

.section-copy--after,
.section-copy + .table-wrap,
.table-wrap + .section-copy {
  margin-top: 1.5rem;
}

.section-copy h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--color-text);
  margin: 1.25rem 0 0.55rem;
  letter-spacing: -0.02em;
}

.section-copy h3:first-child {
  margin-top: 0;
}

.section-head h2,
.games__providers-title,
.step__title,
.bonus-card__title,
.feature-card__title,
.game-card h3 {
  font-family: var(--font-display);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

.section-head h2 {
  font-size: var(--fs-h2);
  margin-bottom: 0.75rem;
}

.section-head__lead,
.games__extra,
.bonuses__note,
.payments__note,
.hero__lead p {
  color: var(--color-text-muted);
}

.features,
.bonuses,
.games,
.payments,
.steps,
.faq {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

/* ========== Spis treści ========== */
.toc {
  padding-block: 0 0.5rem;
}

.toc__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: toc;
}

.toc__list li {
  counter-increment: toc;
}

.toc__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.85em;
}

.toc__list a:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem);
  overflow: clip;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(900px 480px at 8% -10%, rgba(197, 211, 21, 0.16), transparent 60%),
    radial-gradient(700px 420px at 92% 10%, rgba(197, 211, 21, 0.08), transparent 55%),
    radial-gradient(600px 300px at 50% 100%, rgba(197, 211, 21, 0.05), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  background-size: auto, auto, auto, 40px 40px, 40px 40px, 160px 160px;
}

.hero__grid {
  display: grid;
  gap: 1.25rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__eyebrow {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.hero__lead {
  margin-top: 1.1rem;
  max-width: 42rem;
}

.hero__lead p + p {
  margin-top: 0.85rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(18, 22, 31, 0.7);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.hero__badge span {
  color: var(--color-accent);
  font-weight: 700;
}

.hero__media {
  width: min(100%, 820px);
  margin-block: 0.15rem 0.35rem;
}

.hero__media img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

/* ========== Cards ========== */
.feature-card,
.bonus-card,
.game-card,
.step,
.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.features__grid,
.bonuses__grid,
.games__grid {
  display: grid;
  gap: var(--gutter);
}

.feature-card,
.game-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.45rem;
}

.feature-card p,
.game-card p,
.bonus-card p,
.step p {
  color: var(--color-text-muted);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
  color: var(--color-accent);
  background: rgba(197, 211, 21, 0.08);
  border-radius: 12px;
}

.feature-card__body,
.game-card__body {
  min-width: 0;
  flex: 1;
}

.feature-card__title,
.game-card h3,
.bonus-card__title,
.step__title {
  font-size: var(--fs-h3);
  margin-bottom: 0.55rem;
}

/* ========== Bonuses ========== */
.bonus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem 1.3rem 1.55rem;
}

.bonus-card__aside,
.bonus-card__body,
.step__body {
  min-width: 0;
}

.bonus-card .btn {
  margin-top: 0.85rem;
}

.bonus-card__amount {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  color: var(--color-accent);
  line-height: 1.2;
}

.bonus-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #14180a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bonus-card--featured {
  border-color: rgba(197, 211, 21, 0.45);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(197, 211, 21, 0.14), transparent 60%),
    var(--color-surface);
}

.table-wrap--bonus {
  margin-top: 2rem;
}

.bonuses__note,
.payments__note {
  margin-top: 1rem;
}

/* ========== Tables ========== */
.table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.table-wrap::after {
  content: "";
  pointer-events: none;
  position: sticky;
  right: 0;
  top: 0;
  display: block;
  width: 2.5rem;
  height: 0;
  margin-top: -1px;
  float: right;
  box-shadow: -16px 0 20px rgba(11, 14, 20, 0.55);
}

.table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table caption {
  caption-side: bottom;
  padding: 0.85rem 1rem 1rem;
  color: var(--color-text-muted);
  text-align: left;
  font-size: 0.875rem;
}

.table th,
.table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.table thead th {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.table tbody th {
  font-weight: 650;
  color: var(--color-text);
}

/* ========== Games ========== */
.games__extra {
  margin-top: 1.5rem;
  max-width: 58rem;
}

.games__providers-title {
  font-size: var(--fs-h3);
  margin: 1.75rem 0 0.85rem;
}

.games__providers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.games__providers li {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ========== Steps ========== */
.steps__list {
  display: grid;
  gap: var(--gutter);
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.25rem 1.5rem 1.25rem;
  counter-increment: steps;
}

.step::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--color-accent);
}

/* ========== FAQ ========== */
.faq__list {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  padding: 0;
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.faq__item[open] .faq__icon {
  transform: rotate(225deg);
}

.faq__body {
  padding: 0 1.15rem 1.15rem;
  color: var(--color-text-muted);
}

/* ========== Footer ========== */
.footer {
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid var(--color-border);
  background:
    radial-gradient(500px 200px at 10% 0%, rgba(197, 211, 21, 0.08), transparent 60%),
    var(--color-surface);
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__logo img {
  width: 160px;
  height: auto;
  margin-bottom: 1rem;
}

.footer__brand p,
.footer__legal p {
  color: var(--color-text-muted);
}

.footer__brand p {
  margin-bottom: 1.25rem;
  max-width: 38rem;
}

.footer__age {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  border: 2px solid var(--color-danger);
  border-radius: 50%;
  color: var(--color-danger);
  font-weight: 800;
}

.footer__legal p + p {
  margin-top: 0.75rem;
}

.footer__copy {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

/* ========== To-top / noscript ========== */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 15;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.15rem;
  cursor: pointer;
}

.to-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.noscript {
  padding: 0.85rem var(--gutter);
  background: #2a1d12;
  color: #f3e6c8;
  text-align: center;
}

/* ========== Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========== Adaptive ========== */
@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }

  .header__cta {
    margin-left: 0;
  }

  .header__logo img {
    width: 176px;
  }

  .features__grid,
  .games__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card,
  .game-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }

  .feature-card__icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .feature-card__title,
  .game-card h3 {
    margin-top: 0.1rem;
  }

  .bonuses__grid,
  .steps__list {
    grid-template-columns: 1fr;
  }

  .bonus-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding-right: 6rem;
  }

  .bonus-card__aside {
    flex: 0 0 240px;
  }

  .bonus-card__body {
    flex: 1;
  }

  .bonus-card .btn {
    margin-top: 1rem;
  }

  .step {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .step::before {
    margin-bottom: 0;
    flex-shrink: 0;
    min-width: 3.4rem;
  }

  .step__body {
    flex: 1;
  }

  .footer__grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .hero h1 {
    max-width: 28ch;
  }

  .hero__media img {
    max-height: 480px;
  }
}

@media (min-width: 992px) {
  .features__grid,
  .games__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bonus-card__aside {
    flex-basis: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
