:root {
  /* ========================================================================
     Variables
     ======================================================================== */

  /* Color palette */
  --color-background: #05060a;
  --color-surface: #0c0f16;
  --color-surface-alt: #141927;
  --color-text: #f5f7ff;
  --color-text-muted: #a3abc2;

  --color-primary: #4c6fff;
  --color-primary-soft: rgba(76, 111, 255, 0.12);
  --color-primary-strong: #3352dd;

  --color-success: #22c55e;
  --color-success-soft: rgba(34, 197, 94, 0.12);

  --color-warning: #fbbf24;
  --color-warning-soft: rgba(251, 191, 36, 0.12);

  --color-danger: #ef4444;
  --color-danger-soft: rgba(239, 68, 68, 0.12);

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 40px rgba(4, 6, 15, 0.75);
  --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.8);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 260ms ease-out;
}

/* ==========================================================================
   Reset / Normalize
   ========================================================================== */

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:root {
  color-scheme: dark;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top left, #151b3a 0, #05060a 55%, #000 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 650;
  line-height: var(--line-height-snug);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

strong,
b {
  font-weight: 600;
  color: var(--gray-50);
}

code,
pre,
kbd {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

pre {
  padding: var(--space-3);
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-fast);
}

a:hover {
  color: var(--color-primary-strong);
}

a:active {
  opacity: 0.85;
}

hr {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  margin: var(--space-8) 0;
}

/* ==========================================================================
   Accessibility & Motion
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--alt {
  background: radial-gradient(circle at top, rgba(76, 111, 255, 0.06) 0, #05060a 40%);
}

/* Flex */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* Grid */

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Width helpers */

.w-full {
  width: 100%;
}

/* ==========================================================================
   Component Primitives
   ========================================================================== */

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(76, 111, 255, 0.45);
  transition:
    background-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.button:hover {
  background: var(--color-primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(76, 111, 255, 0.55);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.9);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.button--outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: none;
}

.button--outline:hover {
  border-color: var(--color-primary);
  background: rgba(76, 111, 255, 0.08);
}

.button--ghost {
  background: rgba(15, 23, 42, 0.7);
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: none;
}

.button--ghost:hover {
  background: rgba(15, 23, 42, 0.95);
}

.button--sm {
  padding: 0.55rem 1.1rem;
  font-size: var(--font-size-xs);
}

.button--lg {
  padding: 0.85rem 1.6rem;
  font-size: var(--font-size-base);
}

/* Inputs & Form Controls */

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-100);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(76, 111, 255, 0.65);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-4);
}

.form-hint {
  font-size: var(--font-size-xs);
  color: rgba(148, 163, 184, 0.75);
}

.form-error {
  margin-top: 0.3rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Cards for content blocks (hero, features, nieuws, etc.) */

.card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
}

.card--subtle {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-sm);
}

.card-header {
  margin-bottom: var(--space-3);
}

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: 0.35rem;
}

.card-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Status badges for "Laatste updates", features, game-info */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge--primary {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: rgba(76, 111, 255, 0.55);
}

.badge--success {
  background: var(--color-success-soft);
  color: var(--color-success);
  border-color: rgba(34, 197, 94, 0.6);
}

.badge--warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
  border-color: rgba(251, 191, 36, 0.6);
}

.badge--danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.7);
}

/* ==========================================================================
   Page-Level Helpers (Hero, Sections, Lists)
   ========================================================================== */

.hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.hero-kicker {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: var(--space-3);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 40rem;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-6);
}

.section-heading__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

.section-heading__title {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
}

.section-heading__lead {
  max-width: 46rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}

.feature-item__title {
  font-size: var(--font-size-lg);
  margin-bottom: 0.3rem;
}

.feature-item__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.feature-item__body {
  font-size: var(--font-size-sm);
}

.timeline {
  display: grid;
  gap: var(--space-4);
}

.timeline-item {
  border-left: 2px solid rgba(148, 163, 184, 0.35);
  padding-left: var(--space-4);
  margin-left: 0.3rem;
}

.timeline-item__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

.timeline-item__title {
  font-size: var(--font-size-lg);
  margin-bottom: 0.25rem;
}

.timeline-item__excerpt {
  font-size: var(--font-size-sm);
}

/* Lists suitable for game mechanics, tips & strategie */

.list {
  list-style: none;
  padding-left: 0;
}

.list--check li,
.list--steps li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
}

.list--check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-full);
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.list--steps li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-50);
}

.list--steps {
  counter-reset: step-counter;
}

/* Tags for game genres, modes etc. */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Media & Screenshot Styling for Game Page
   ========================================================================== */

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top, rgba(76, 111, 255, 0.18) 0, #020617 40%);
  box-shadow: var(--shadow-md);
}

.media-frame--aspect-16x9 {
  position: relative;
  padding-bottom: 56.25%;
}

.media-frame--aspect-16x9 > img,
.media-frame--aspect-16x9 > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Footer & Meta
   ========================================================================== */

.site-footer {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9) 0, #020617 60%);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

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

.site-footer a:hover {
  color: var(--gray-50);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 960px) {
  .hero {
    padding-top: var(--space-12);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .section {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }

  .card {
    padding: var(--space-4);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
