:root {
  /* Colors */
  --color-bg-body: #050608; /* Deep black */
  --color-bg-elevated: #101218; /* Dark graphite */
  --color-bg-glass: rgba(10, 12, 18, 0.97);
  --color-bg-soft: #151821;

  --color-text: #f5f7ff;
  --color-text-muted: #a0a4b8;
  --color-text-soft: #c5c8d8;

  --color-primary: #3cff6b; /* Neon green */
  --color-primary-soft: rgba(60, 255, 107, 0.14);
  --color-primary-strong: #46ff72;

  --color-success: #38d996;
  --color-warning: #ffd15c;
  --color-danger: #ff4f6b;

  --color-border-subtle: #252838;
  --color-border-strong: #3c4158;

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

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Noto Sans", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Noto Sans", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", 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-md: 1.0625rem; /* 17px */
  --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 */
  --font-size-5xl: 3rem; /* 48px */

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

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

  /* Radius */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Shadows (subtle glow & depth for dark UI) */
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.65);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.9);
  --shadow-glow-primary: 0 0 0 1px rgba(60, 255, 107, 0.3), 0 0 28px rgba(60, 255, 107, 0.28);

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

  /* Layout */
  --max-width-page: 1200px;
  --container-padding-x: 1.25rem;

  /* Focus ring */
  --focus-ring-color: rgba(60, 255, 107, 0.9);
  --focus-ring-offset: 2px;
  --focus-ring-width: 2px;
}

/* =====================================
   RESET / NORMALIZE
   ===================================== */

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-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;
}

li {
  list-style: none;
}

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

input, button, textarea, select {
  margin: 0;
  font: inherit;
  color: inherit;
}

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

textarea {
  resize: vertical;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

/* =====================================
   BASE STYLES
   ===================================== */

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg-body);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-12);
}

h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-10);
}

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

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

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
}

h6 {
  font-size: var(--font-size-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-6);
  color: var(--color-text-soft);
}

strong, b {
  font-weight: 600;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color var(--transition-base), text-shadow var(--transition-base), opacity var(--transition-fast);
}

a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 14px rgba(60, 255, 107, 0.5);
}

a:active {
  opacity: 0.9;
}

small {
  font-size: var(--font-size-sm);
}

code, pre {
  font-family: var(--font-mono);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-16) 0;
}

::selection {
  background: rgba(60, 255, 107, 0.22);
  color: var(--color-text);
}

/* =====================================
   ACCESSIBILITY & PREFERENCES
   ===================================== */

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

:focus:not(:focus-visible) {
  outline: none;
}

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

/* =====================================
   UTILITIES
   ===================================== */

.container {
  width: 100%;
  max-width: var(--max-width-page);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

.section {
  padding-block: var(--space-24);
}

.section--dense {
  padding-block: var(--space-16);
}

/* Flex helpers */

.flex {
  display: flex;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.gap-lg {
  gap: var(--space-12);
}

/* Grid helpers */

.grid {
  display: grid;
}

.grid-auto-fit-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
}

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

.grid-auto-fit-lg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-12);
}

/* Screen reader only */

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

/* Text utilities */

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

.text-right {
  text-align: right;
}

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

.text-soft {
  color: var(--color-text-soft);
}

.text-accent {
  color: var(--color-primary);
}

/* Spacing utilities (minimal set, extend per-page as needed) */

.mt-0 {
  margin-top: 0;
}

.mt-sm {
  margin-top: var(--space-6);
}

.mt-md {
  margin-top: var(--space-10);
}

.mt-lg {
  margin-top: var(--space-16);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-xs {
  margin-bottom: var(--space-4);
}

.mb-sm {
  margin-bottom: var(--space-6);
}

.mb-md {
  margin-bottom: var(--space-10);
}

.mb-lg {
  margin-bottom: var(--space-16);
}

.py-section {
  padding-block: var(--space-24);
}

/* Layout helpers for horizontal game sliders */

.slider-row {
  display: flex;
  gap: var(--space-8);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  scroll-snap-type: x mandatory;
}

.slider-row::-webkit-scrollbar {
  height: 6px;
}

.slider-row::-webkit-scrollbar-track {
  background: transparent;
}

.slider-row::-webkit-scrollbar-thumb {
  background: rgba(84, 255, 140, 0.3);
  border-radius: 999px;
}

.slider-item {
  scroll-snap-align: start;
}

/* =====================================
   BASIC COMPONENTS
   ===================================== */

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-12);
  padding-block: var(--space-4);
  min-height: 40px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--color-primary) 0%, #00d85f 48%, #15ff9a 100%);
  color: #020304 !important;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 12px 30px rgba(0, 0, 0, 0.9);
  transform: translateY(0);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    filter var(--transition-base),
    background var(--transition-base),
    opacity var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 0 22px rgba(60, 255, 107, 0.5), var(--shadow-soft);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 0 14px rgba(60, 255, 107, 0.4);
}

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

.btn-outline {
  background: linear-gradient(135deg, rgba(60, 255, 107, 0.12), rgba(60, 255, 107, 0.02));
  color: var(--color-text) !important;
  border-color: rgba(60, 255, 107, 0.7);
  box-shadow: 0 0 0 1px rgba(60, 255, 107, 0.35);
}

.btn-outline:hover {
  background: linear-gradient(135deg, rgba(60, 255, 107, 0.2), rgba(60, 255, 107, 0.08));
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-soft);
  border-color: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
}

/* Inputs & form controls */

.input,
select,
textarea {
  width: 100%;
  padding-inline: var(--space-8);
  padding-block: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(8, 10, 16, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(60, 255, 107, 0.7), 0 0 18px rgba(60, 255, 107, 0.45);
}

.input[disabled],
select[disabled],
textarea[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

label {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

/* Card - sharp rectangular with glass & glow-ready edges */

.card {
  position: relative;
  border-radius: var(--radius-xs);
  background: linear-gradient(145deg, rgba(10, 12, 18, 0.98), rgba(10, 16, 24, 0.98));
  border: 1px solid rgba(60, 255, 107, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  padding: var(--space-10);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-base);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0 0, rgba(60, 255, 107, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(60, 255, 107, 0.3);
  box-shadow: 0 0 22px rgba(60, 255, 107, 0.25), var(--shadow-soft);
}

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

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

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-media {
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.card-media img {
  width: 100%;
  height: auto;
  display: block;
}

.card-footer {
  margin-top: var(--space-8);
}

/* Dark glass panels for menus, filters, and info blocks */

.panel-glass {
  border-radius: var(--radius-sm);
  background: var(--color-bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

/* Platform / tag labels with glow */

.badge-platform {
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-4);
  padding-block: var(--space-2);
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 0 0, rgba(60, 255, 107, 0.4), rgba(14, 18, 24, 0.95));
  border: 1px solid rgba(60, 255, 107, 0.7);
  box-shadow: 0 0 18px rgba(60, 255, 107, 0.55);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6dd500;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-4);
  padding-block: var(--space-2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* =====================================
   MEDIA QUERIES (BASIC)
   ===================================== */

@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-5xl);
  }

  h2 {
    font-size: var(--font-size-4xl);
  }

  .section {
    padding-block: var(--space-32);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-40);
  }
}


.btn,
.btn-outline {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .btn,
  .btn-outline {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    text-align: center;
    line-height: 1.35;
    padding: 11px 14px;
  }
}