/* ==========================================================================
   Vox Casino Polska — design system
   Bands: .band--void (hero/dark), .band--sand (editorial), .band--ink (deep)
   CTA: .btn.js-play  |  Tables: .table-scroll > .sheet
   ========================================================================== */

:root {
  --void: #08090d;
  --ink: #10131a;
  --panel: #171b24;
  --sand: #efe6d4;
  --sand-2: #e4d8c0;
  --paper: #f7f1e6;
  --amber: #f0a202;
  --amber-deep: #c47d00;
  --teal: #2ad4c2;
  --rose: #ff5a73;
  --mute: #9aa3b5;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(16, 19, 26, 0.12);
  --text: #f4efe6;
  --text-dim: #c8c2b4;
  --ink-text: #16181f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --wrap: 1180px;
  --header-h: 76px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Source Serif 4", "Times New Roman", serif;
  --font-ui: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--amber);
  color: #111;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(calc(100% - 32px), var(--wrap));
  margin: 0 auto;
}

.wrap--wide {
  width: min(calc(100% - 32px), 1280px);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.btn--primary {
  background: linear-gradient(180deg, #ffd056 0%, var(--amber) 55%, var(--amber-deep) 100%);
  color: #1a1406;
  box-shadow: 0 10px 28px rgba(240, 162, 2, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ink {
  background: var(--void);
  color: var(--sand);
}

.btn--full {
  width: 100%;
}

.btn__hint {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.72;
}

/* --------------------------------------------------------------------------
   Announce + header
   -------------------------------------------------------------------------- */

.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 38px;
  padding: 8px 16px;
  background: #0c0e13;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.announce__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 0 rgba(255, 90, 115, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(255, 90, 115, 0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 9, 13, 0.42);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.site-header.is-solid {
  background: rgba(8, 9, 13, 0.94);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav__link:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 36px 0 56px;
  background:
    radial-gradient(circle at 82% 18%, rgba(240, 162, 2, 0.16), transparent 26%),
    radial-gradient(circle at 8% 88%, rgba(42, 212, 194, 0.1), transparent 24%),
    var(--void);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 40px;
  align-items: start;
}

.hero__side {
  display: grid;
  gap: 16px;
}

.hero__media {
  margin: 0;
  line-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  box-shadow: var(--shadow);
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 4.6rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero__title em {
  display: block;
  margin-top: 6px;
  color: var(--amber);
  font-style: normal;
}

.hero__lead {
  max-width: 58ch;
  margin: 0 0 26px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 1.14rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
}

.bonus-slab {
  padding: 24px;
  border: 1px solid rgba(240, 162, 2, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(240, 162, 2, 0.12), rgba(16, 19, 26, 0.88)),
    var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.bonus-slab__label {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bonus-slab__sum {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.bonus-slab__sum span {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 0.42em;
}

.bonus-slab p {
  margin: 14px 0 18px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Spis treści
   -------------------------------------------------------------------------- */

.toc {
  padding: 8px 0 56px;
}

.toc .display {
  color: var(--text);
}

.toc__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.toc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.toc__link:hover {
  border-color: rgba(240, 162, 2, 0.45);
  background: rgba(240, 162, 2, 0.08);
}

.toc__num {
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.band[id],
.toc[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* --------------------------------------------------------------------------
   Bands + typography
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  padding: 84px 0;
}

.band--sand {
  background: var(--sand);
  color: var(--ink-text);
}

.band--ink {
  background: var(--ink);
}

.band--void {
  background: var(--void);
}

.band--cut {
  clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%);
  padding-top: 110px;
  padding-bottom: 110px;
}

.kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.band--ink .kicker,
.band--void .kicker {
  color: var(--amber);
}

.display {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display--sm {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
}

.lede--flush {
  margin-bottom: 0;
}

.stack-lg {
  margin-top: 36px;
}

.lede,
.prose p,
.prose li {
  font-family: var(--font-body);
  font-size: 1.12rem;
}

.lede {
  max-width: 68ch;
  margin: 0 0 28px;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 1.2em;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 28px;
  align-items: end;
  margin-bottom: 36px;
}

.chapter {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.band--sand .chapter {
  color: var(--amber-deep);
}

/* --------------------------------------------------------------------------
   Why cards
   -------------------------------------------------------------------------- */

.reason-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.reason {
  grid-column: span 4;
  padding: 22px 22px 24px;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
}

.reason:nth-child(1) {
  grid-column: span 6;
}

.reason:nth-child(2) {
  grid-column: span 6;
}

.reason__index {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--amber-deep);
}

.reason h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.reason p {
  margin: 0;
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   Game catalog
   -------------------------------------------------------------------------- */

.catalog {
  display: grid;
  gap: 16px;
}

.game-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.game-card__code {
  display: grid;
  place-items: center;
  min-height: 92px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(240, 162, 2, 0.2), rgba(42, 212, 194, 0.08));
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.game-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.game-card p,
.game-card li {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.game-card ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
}

.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 28px;
}

.points li {
  list-style: none;
  padding: 16px 18px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(16, 19, 26, 0.08);
}

.band--ink .table-scroll,
.band--void .table-scroll {
  border-color: var(--line);
  background: #131722;
  box-shadow: none;
}

.sheet {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.sheet caption {
  caption-side: bottom;
  padding: 12px 16px 14px;
  text-align: left;
  font-size: 0.85rem;
  color: #5d6472;
}

.band--ink .sheet caption,
.band--void .sheet caption {
  color: var(--mute);
}

.sheet th,
.sheet td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-dark);
}

.band--ink .sheet th,
.band--ink .sheet td,
.band--void .sheet th,
.band--void .sheet td {
  border-bottom-color: var(--line);
}

.sheet thead th {
  background: #e9dfca;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.band--ink .sheet thead th,
.band--void .sheet thead th {
  background: #1c2230;
  color: var(--amber);
}

.sheet tbody th {
  font-weight: 800;
  color: var(--ink-text);
}

.band--ink .sheet tbody th,
.band--void .sheet tbody th {
  color: var(--text);
}

.sheet tbody tr:last-child th,
.sheet tbody tr:last-child td {
  border-bottom: 0;
}

.sheet tbody tr:hover td,
.sheet tbody tr:hover th {
  background: rgba(240, 162, 2, 0.06);
}

/* --------------------------------------------------------------------------
   Steps / split / faq
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.step {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line-dark);
}

.step strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.note {
  padding: 22px;
  border-radius: 20px;
  background: #171b24;
  color: var(--text);
}

.note h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.faq__q span:last-child {
  color: var(--amber-deep);
}

.faq__a {
  padding: 0 20px 18px;
  font-family: var(--font-body);
}

.cta-finale {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(240, 162, 2, 0.16), transparent 42%),
    var(--panel);
  border: 1px solid rgba(240, 162, 2, 0.24);
}

/* --------------------------------------------------------------------------
   Footer + dock
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 42px 0 110px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.92rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer a {
  color: var(--text-dim);
}

.site-footer__legal {
  width: min(calc(100% - 32px), var(--wrap));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--mute);
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .toc__list {
    grid-template-columns: 1fr 1fr;
  }

  .hero__grid,
  .split,
  .cta-finale,
  .site-footer__grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .reason,
  .reason:nth-child(1),
  .reason:nth-child(2) {
    grid-column: span 6;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .bonus-slab {
    transform: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 18px 18px 28px;
    background: rgba(8, 9, 13, 0.97);
    transform: translateX(110%);
    transition: transform 0.35s var(--ease);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__link,
  .nav .btn {
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
  }

  .header-cta {
    display: none;
  }

  .dock {
    display: block;
  }
}

@media (max-width: 680px) {
  .reason,
  .reason:nth-child(1),
  .reason:nth-child(2) {
    grid-column: span 12;
  }

  .points,
  .steps,
  .game-card,
  .toc__list {
    grid-template-columns: 1fr;
  }

  .band,
  .band--cut {
    padding: 64px 0;
  }

  .hero {
    padding-top: 24px;
  }

  .announce {
    letter-spacing: 0.06em;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
