/* ============================================================================
   SYLWO WEBSITE — MINIMALIST DESIGN SYSTEM & AESTHETIC ANIMATIONS
   Zgodność: WCAG 2.1 AA/AAA (Fix color contrast, Keyboard navigation, Zero dark patterns)
   ============================================================================ */

:root {
  /* Paleta bazowa — Obsidian Minimal (Domyślna ciemna, kontrast > 15:1 WCAG AAA) */
  --bg-base: #07080c;
  --bg-elevated: #0d1017;
  --bg-surface: rgba(17, 21, 31, 0.78);
  --bg-surface-solid: #11151f;
  --bg-glass: rgba(13, 16, 23, 0.82);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent-primary: #10b981;
  --accent-bright: #34d399;
  --accent-cyan: #38bdf8;
  --accent-amber: #fbbf24;
  --accent-danger: #f43f5e;
  --accent-glow: rgba(16, 185, 129, 0.24);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(52, 211, 153, 0.45);

  --shadow-soft: 0 16px 40px -12px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 36px -6px rgba(16, 185, 129, 0.28);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container-max: 1240px;
  --header-height: 76px;
}

/* Motyw jasny — Alabaster Minimal (Wysoki kontrast tekstu > 16:1) */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-elevated: #f1f5f9;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-solid: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);

  --text-primary: #090d16;
  --text-secondary: #1e293b;
  --text-muted: #475569;

  --accent-primary: #047857;
  --accent-bright: #059669;
  --accent-cyan: #0369a1;
  --accent-amber: #b45309;
  --accent-danger: #be123c;
  --accent-glow: rgba(4, 120, 87, 0.16);

  --border-subtle: rgba(15, 23, 42, 0.11);
  --border-strong: rgba(15, 23, 42, 0.22);
  --border-accent: rgba(4, 120, 87, 0.5);

  --shadow-soft: 0 16px 36px -12px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 28px -6px rgba(4, 120, 87, 0.2);
}

/* Tryb Ultra Wysokiego Kontrastu WCAG AAA (Fix color contrast #14) */
[data-contrast="high"] {
  --bg-base: #000000;
  --bg-elevated: #050505;
  --bg-surface: #0a0a0a;
  --bg-surface-solid: #0a0a0a;
  --bg-glass: #000000;

  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #e2e8f0;

  --accent-primary: #00ff9d;
  --accent-bright: #00ff9d;
  --accent-cyan: #00e5ff;
  --accent-amber: #ffea00;

  --border-subtle: rgba(255, 255, 255, 0.45);
  --border-strong: #ffffff;
  --border-accent: #00ff9d;
}

/* ============================================================================
   RESET I BAZA
   ============================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Nawigacja klawiaturą — wyraźny obrys :focus-visible (#15 Keyboard navigation) */
:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Link "Przejdź do głównej treści" dla czytników ekranu i klawiatury */
.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 10000;
  background: var(--accent-primary);
  color: #000000;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: top 0.25s var(--ease-out-expo);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid #ffffff;
}

/* ============================================================================
   PRELOADER / INTRO ANIMATION
   ============================================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.65s var(--ease-in-out-quart), visibility 0.65s var(--ease-in-out-quart), transform 0.65s var(--ease-in-out-quart);
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

.preloader-mark {
  width: 68px;
  height: 68px;
  position: relative;
}

.preloader-mark svg {
  width: 100%;
  height: 100%;
}

.preloader-path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw-stroke 1.1s var(--ease-out-expo) forwards;
}

@keyframes draw-stroke {
  to {
    stroke-dashoffset: 0;
  }
}

.preloader-bar {
  width: 140px;
  height: 2px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
  animation: load-progress 0.9s var(--ease-out-expo) forwards;
}

@keyframes load-progress {
  to {
    width: 100%;
  }
}

.preloader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================================
   TŁO INTERAKTYWNE CANVAS & AMBIENT GLOW
   ============================================================================ */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.ambient-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 650px at var(--cursor-x, 50vw) var(--cursor-y, 30vh), var(--accent-glow), transparent 70%),
    radial-gradient(circle 500px at 85% 12%, rgba(56, 189, 248, 0.08), transparent 65%);
  transition: opacity 0.4s ease;
}

/* Niestandardowy minimalistyczny kursor (tylko urządzenia z precyzyjną myszką) */
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9990;
  transform: translate3d(-100px, -100px, 0);
  transition: width 0.25s var(--ease-out-expo), height 0.25s var(--ease-out-expo), background-color 0.25s ease, border-color 0.25s ease;
  mix-blend-mode: normal;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor-ring.is-active {
    display: block;
  }
}

.custom-cursor-ring.is-hovering {
  width: 50px;
  height: 50px;
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-bright);
}

/* ============================================================================
   LAYOUT & KONTAINER
   ============================================================================ */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================================
   NAWIGACJA GÓRNA (GLASSMORPHISM HEADER)
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease;
}

.brand-link:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  border-color: var(--accent-bright);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-bright);
  border: 1px solid var(--border-accent);
  letter-spacing: 0.06em;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.is-active {
  background: rgba(15, 23, 42, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.icon-btn.shield-btn {
  border-color: var(--border-accent);
  color: var(--accent-bright);
  background: rgba(16, 185, 129, 0.09);
}

.icon-btn.shield-btn:hover {
  background: rgba(16, 185, 129, 0.18);
  box-shadow: var(--shadow-glow);
}

/* ============================================================================
   SEKCJA HERO — MINIMALISTYCZNA & EFEKTOWNA
   ============================================================================ */
.hero-section {
  padding: 84px 0 56px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
}

.edge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.65;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-title-gradient {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--accent-bright) 65%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), background-color 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-primary);
  color: #04130d;
  border-color: var(--accent-bright);
  box-shadow: 0 10px 28px -6px rgba(16, 185, 129, 0.45);
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-bright);
  box-shadow: 0 14px 34px -6px rgba(16, 185, 129, 0.65);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent-bright);
  background: rgba(16, 185, 129, 0.08);
}

.hero-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.guarantee-item svg {
  color: var(--accent-bright);
  flex-shrink: 0;
}

/* Karta statusu Hero po prawej stronie (Bento Telemetry Card) */
.hero-showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(52, 211, 153, 0.14),
    transparent 60%
  );
  pointer-events: none;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.showcase-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

[data-theme="light"] .stat-box {
  background: rgba(15, 23, 42, 0.03);
}

.stat-box:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.stat-value.accent {
  color: var(--accent-bright);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.architecture-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ============================================================================
   SEKCJA KATALOGU GIER (FILTRY, WYSZUKIWARKA, KARTY 3D SPOTLIGHT)
   ============================================================================ */
.section-block {
  padding: 56px 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  backdrop-filter: blur(16px);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.is-active {
  background: var(--accent-primary);
  color: #03140e;
  border-color: var(--accent-bright);
  font-weight: 700;
}

[data-theme="light"] .tab-btn.is-active {
  color: #ffffff;
}

.search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 360px;
}

.search-input {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 9px 44px 9px 38px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  pointer-events: none;
}

/* Siatka gier */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.35s ease;
  backdrop-filter: blur(16px);
  will-change: transform;
}

/* Efekt Spotlight śledzący kursor na karcie */
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(52, 211, 153, 0.13),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.game-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.game-card:hover::before {
  opacity: 1;
}

.game-thumb {
  position: relative;
  height: 196px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-thumb svg.game-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out-expo);
}

.game-card:hover .game-thumb svg.game-artwork {
  transform: scale(1.05);
}

.game-badges-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.badge-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(9, 13, 22, 0.85);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.badge-pill.status-ready {
  background: rgba(6, 78, 59, 0.9);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.45);
}

.badge-pill.status-slot {
  background: rgba(30, 41, 59, 0.9);
  color: #93c5fd;
  border-color: rgba(56, 189, 248, 0.4);
}

.game-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}

.game-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.game-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex: 1;
}

.game-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.spec-chip {
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 6px;
}

[data-theme="light"] .spec-chip {
  background: rgba(15, 23, 42, 0.04);
}

.game-actions {
  display: flex;
  gap: 10px;
}

.game-actions .btn {
  flex: 1;
  padding: 11px 16px;
  font-size: 0.88rem;
}

.btn-icon-only {
  flex: 0 0 42px !important;
  padding: 0 !important;
}

/* ============================================================================
   SEKCJA DODAWANIA GIER & ARCHITEKTURY CLOUDFLARE 24/7
   ============================================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.bento-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bento-title {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.bento-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.code-snippet {
  margin-top: 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-bright);
  overflow-x: auto;
}

/* ============================================================================
   SEKCJA TARCZY BEZPIECZEŃSTWA I ZGODNOŚCI (37 PUNKTÓW Z LIST KONTROLNYCH)
   ============================================================================ */
.security-dashboard {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.audit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}

.audit-panel {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.audit-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.audit-panel-title {
  font-size: 1.02rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  list-style: none;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.checklist-item.is-verified {
  border-color: rgba(16, 185, 129, 0.18);
}

.check-icon {
  color: var(--accent-bright);
  font-weight: 900;
  flex-shrink: 0;
}

/* ============================================================================
   FORMULARZ KONTAKTOWY / ZGŁOSZENIA GRY + PRAWO DO USUNIĘCIA DANYCH
   ============================================================================ */
.forms-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

textarea.form-control {
  min-height: 105px;
  resize: vertical;
}

/* Ukryte pole Honeypot przeciwko botom (niewidoczne dla ludzi i czytników ekranu) */
.hp-field-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.form-status-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}

.form-status-msg.is-visible {
  display: block;
}

.form-status-msg.is-success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--border-accent);
  color: var(--accent-bright);
}

.form-status-msg.is-error {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
}

[data-theme="light"] .form-status-msg.is-error {
  color: #be123c;
}

/* ============================================================================
   STOPKA (BUSINESS DETAILS, LEGAL LINKS, LICENSES)
   ============================================================================ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link-btn:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

.business-details-box {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================================
   BANER ZGODY COOKIES (ZERO DARK PATTERNS — RÓWNORZĘDNE PRZYCISKI!)
   ============================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  width: min(960px, calc(100vw - 32px));
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-soft);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), visibility 0.35s;
}

.cookie-banner.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cookie-banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text-wrap {
  flex: 1;
  min-width: 280px;
}

.cookie-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.cookie-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Równorzędne przyciski bez Dark Patterns (#5 & #9) */
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: all 0.2s ease;
  min-width: 148px;
  text-align: center;
}

.cookie-btn:hover {
  border-color: var(--accent-bright);
  background: rgba(16, 185, 129, 0.12);
}

/* ============================================================================
   MODALE (ODTWARZACZ GIER SANDBOX I DOKUMENTY PRAWNE)
   ============================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 7, 12, 0.86);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out-expo), visibility 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: min(860px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease-out-expo);
  overflow: hidden;
}

.modal-overlay.is-open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-window.game-player-window {
  width: min(1280px, 96vw);
  height: min(840px, 90vh);
  max-height: 92vh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title {
  font-size: 1.02rem;
  font-weight: 800;
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-body.game-frame-container {
  padding: 0;
  position: relative;
  background: #000000;
  overflow: hidden;
}

.sandboxed-game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.legal-doc-content h3 {
  font-size: 1.15rem;
  margin: 20px 0 8px;
  color: var(--text-primary);
}

.legal-doc-content h3:first-child {
  margin-top: 0;
}

.legal-doc-content p,
.legal-doc-content li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legal-doc-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

/* ============================================================================
   ANIMACJE WEJŚCIA (SCROLL REVEAL)
   ============================================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   RESPONSYWNOŚĆ & REDUCED MOTION
   ============================================================================ */
@media (max-width: 980px) {
  .hero-grid,
  .forms-split,
  .audit-columns {
    grid-template-columns: 1fr;
  }

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

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

  .main-nav {
    display: none;
  }
}

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

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

  .hero-section {
    padding: 48px 0 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
  }

  .preloader {
    display: none !important;
  }
}
