/* ========================================
   Playpaids.com — Global Styles
   Dark, gaming-focused theme
   ======================================== */

/* --- Design Tokens --- */
:root {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #a78bfa;
  --primary-50: rgba(139, 92, 246, 0.08);
  --primary-100: rgba(139, 92, 246, 0.18);

  --secondary: #06b6d4;
  --secondary-dark: #0891b2;
  --secondary-light: #22d3ee;
  --secondary-50: rgba(6, 182, 212, 0.08);

  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;

  --success: #10b981;
  --error: #ef4444;

  /* Dark gaming palette */
  --bg:         #0a0a12;
  --bg-alt:     #10101c;
  --bg-section: #0f0f1a;
  --surface:    #15152340;
  --surface-solid: #151523;
  --surface-hover: #1c1c2e;

  --text:       #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border:       rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.15);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', var(--font);

  --header-h: 72px;
  --container: 1200px;
  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(139, 92, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(6, 182, 212, 0.08), transparent);
  background-attachment: fixed;
}

img, svg, video { display: block; max-width: 100%; }
img { border-radius: inherit; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary-light); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
address { font-style: normal; }

::selection { background: var(--primary); color: #fff; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-top: 0.75rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

/* --- Grid --- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.55);
}

.btn-secondary {
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}
.btn-accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; border-radius: 14px; }
.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.875rem; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  height: var(--header-h);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 18, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.brand-name-accent {
  color: var(--primary-light);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main a {
  padding: 0.55rem 0.95rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--text);
  background: var(--primary-50);
}

.nav-cta { margin-left: 0.5rem; }

.nav-main a.btn.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.nav-main a.btn.nav-cta:hover { color: #fff; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1010;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .nav-main {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: 0.35rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1005;
    overflow-y: auto;
  }

  .nav-main.open { right: 0; }

  .nav-main a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav-cta { margin-left: 0; margin-top: 0.5rem; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1002;
  }

  .nav-overlay.open { display: block; }
}

/* --- Hero --- */
.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 640px; }

.hero h1 { margin-bottom: 1.25rem; }

.hero p {
  font-size: 1.1875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.35), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.3), transparent 50%);
}

.hero-visual-inner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

.hero-visual-tile {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.hero-visual-tile:nth-child(1) { transform: translateY(8px); }
.hero-visual-tile:nth-child(4) { transform: translateY(-8px); }

.hero-visual-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero decorative shapes */
.hero-shapes {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(80px);
}

.hero-shape-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -150px; right: -100px;
}

.hero-shape-2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  bottom: -100px; left: -80px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* --- Game Cards --- */
.game-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  color: inherit;
}

.game-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-thumb img { transform: scale(1.06); }

.game-card-free {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.game-card-platform {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.game-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.game-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-desc {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
}

.game-card-genre {
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-card-publisher {
  color: var(--text-light);
  text-align: right;
  max-width: 55%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Filter Bar (games page) --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.filter-search {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.filter-search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--transition);
}

.filter-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.filter-search::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.filter-select {
  padding: 0.65rem 2.25rem 0.65rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
  transition: border-color var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-count strong {
  color: var(--text);
  font-weight: 700;
}

/* --- Skeleton / Loading states --- */
.game-card-skeleton {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.game-card-skeleton .skel-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, var(--bg-alt), var(--surface-hover), var(--bg-alt));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.game-card-skeleton .skel-body {
  padding: 1rem 1.1rem 1.1rem;
}

.game-card-skeleton .skel-line {
  height: 12px;
  background: linear-gradient(90deg, var(--bg-alt), var(--surface-hover), var(--bg-alt));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.game-card-skeleton .skel-line.short { width: 60%; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* --- Game Detail Page --- */
.game-detail {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.game-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.game-detail-back:hover { color: var(--primary-light); }

.game-detail-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.game-detail-cover {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.game-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-detail-info h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.game-detail-tagline {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
}

.game-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-50);
  color: var(--primary-light);
  border: 1px solid var(--primary-100);
}

.badge-free { background: rgba(16, 185, 129, 0.12); color: var(--success); border-color: rgba(16, 185, 129, 0.25); }
.badge-cyan { background: var(--secondary-50); color: var(--secondary-light); border-color: rgba(6, 182, 212, 0.2); }

.game-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.meta-row { display: flex; flex-direction: column; gap: 0.15rem; }
.meta-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}
.meta-value {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.game-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.game-detail-section {
  margin-bottom: 2.5rem;
}

.game-detail-section h2 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.game-detail-section h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.game-detail-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-line;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.screenshots-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.screenshots-grid img:hover { transform: scale(1.02); }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .game-detail-hero { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .game-detail-meta, .specs-grid { grid-template-columns: 1fr; }
}

/* --- Page Hero --- */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 { margin-bottom: 0.75rem; }

.page-hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Beta Page --- */
.beta-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.beta-perk {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.beta-perk:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.beta-perk-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.beta-perk-icon svg { width: 24px; height: 24px; }

.beta-perk h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.beta-perk p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .beta-perks { grid-template-columns: 1fr; }
}

.beta-cta-card {
  background: linear-gradient(135deg,
    rgba(139, 92, 246, 0.12) 0%,
    rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.beta-cta-card h2 { margin-bottom: 0.75rem; }

.beta-cta-card p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 1.5rem;
  font-size: 1.0625rem;
}

.beta-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.beta-step {
  text-align: center;
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1rem;
}

.beta-step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.beta-step h3 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.beta-step p { color: var(--text-muted); font-size: 0.9375rem; }

@media (max-width: 768px) {
  .beta-steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* --- Contact page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg { width: 18px; height: 18px; }

.contact-info-item h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
}

.contact-info-item a:hover { color: var(--primary-light); }

/* Simple contact form */
.contact-form-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.35rem;
}

.contact-form-card > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.form-success.show { display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.site-footer {
  background: #06060c;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4rem 0 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
  text-decoration: none;
}

.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-light);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
