:root {
  --bg-main: #0A0A0A;
  --bg-surface: #131313;
  --bg-panel: #121212;
  --bg-accent: #1c1c1c;
  
  --color-primary: #f2ca50;
  --color-primary-hover: #e8c670;
  --color-secondary: #ffb3b1;
  --color-secondary-container: #bf0229;
  --color-red-hover: #e02b4a;
  --color-error: #ff5252;
  
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #e5e2e1;
  --text-dark: #0a0a0a;

  --border-gold: rgba(212, 175, 55, 0.15);
  --glow-gold: rgba(242, 202, 80, 0.3);
  --glow-red: rgba(255, 82, 82, 0.4);

  --font-serif: 'Roboto Slab', serif;
  --font-sans: 'Inter', sans-serif;

  --spacing-base: 8px;
  --spacing-gutter: 24px;
  --margin-desktop: 80px;
  --margin-mobile: 20px;
  --container-max: 1280px;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans); background-color: var(--bg-main);
  color: var(--text-muted); line-height: 1.5; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); color: var(--text-primary); }
.h1 { font-size: 40px; font-weight: 700; line-height: 1.2; }
.h2 { font-size: 32px; font-weight: 600; line-height: 1.2; }
.h3 { font-size: 28px; font-weight: 600; line-height: 1.3; }
.body-lg { font-size: 18px; line-height: 1.6; }
.label-caps {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
}

/* Layout */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--margin-mobile); }
.section { padding: 96px 0; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.w-full { width: 100%; } .h-full { height: 100%; }

/* Grid System */
.grid { display: grid; gap: var(--spacing-gutter); }
.grid-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
}

/* Specific Component Layouts */
.hero-section {
    position: relative; min-height: 90vh; display: flex; align-items: center; 
    padding-top: 120px; overflow: hidden;
}
.hero-content { position: relative; z-index: 10; max-width: 900px; }
.hero-visual {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 33%; height: 100%; opacity: 0.6; z-index: 0;
}
@media (max-width: 1200px) { .hero-visual { display: none; } }
.hero-gradient { background: linear-gradient(to left, transparent, var(--bg-main)); }

.tag {
    display: inline-flex; items-center: center; gap: 8px; padding: 8px 16px;
    border-radius: 9999px; border: 1px solid var(--border-gold);
    background: var(--bg-accent);
}

.theme-card {
    position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border-gold);
    overflow: hidden; height: 400px; transition: all 0.3s ease; background: black;
}
.theme-card-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s ease; opacity: 0.15; z-index: 1;
}
.theme-card:hover .theme-card-bg { transform: scale(1.05); }
.theme-card-gradient {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}
.theme-card-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; z-index: 10;
}
.theme-card:hover { border-color: rgba(242, 202, 80, 0.5); box-shadow: 0 0 20px var(--glow-gold); }

.feature-card {
    background: var(--bg-panel); padding: 32px; border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold); transition: all 0.3s ease; height: 100%;
}
.feature-card:hover { box-shadow: 0 0 20px var(--glow-gold); border-color: rgba(242, 202, 80, 0.5); }

.game-card {
    background: var(--bg-panel); padding: 24px; border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold); display: flex; flex-direction: column;
    align-items: center; transition: all 0.3s ease; cursor: default;
}
.game-card:hover { box-shadow: 0 0 20px var(--glow-gold); border-color: rgba(242, 202, 80, 0.5); transform: translateY(-5px); }

.gallery-card {
    position: relative; height: 450px; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-gold);
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-card:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6); opacity: 0;
    transition: opacity 0.3s ease; display: flex; align-items: center; justify-content: center;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
@media (min-width: 768px) { .gallery-offset { margin-top: 48px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 40px;
  border-radius: var(--radius-md); font-family: var(--font-sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: all 0.3s ease;
  border: none; text-decoration: none;
}
.btn-primary { background-color: var(--color-primary); color: var(--text-dark); }
.btn-primary:hover { background-color: var(--color-primary-hover); box-shadow: 0 0 20px var(--glow-gold); }
.btn-cta { background-color: var(--color-secondary-container); color: var(--text-primary); }
.btn-cta:hover { background-color: var(--color-red-hover); box-shadow: 0 0 25px var(--glow-red); }

.icon { width: 24px; height: 24px; }
.icon-md { width: 32px; height: 32px; }
.icon-lg { width: 64px; height: 64px; }
.icon-gold { filter: brightness(0) saturate(100%) invert(85%) sepia(21%) saturate(1005%) hue-rotate(345deg) brightness(102%) contrast(101%); }

/* Form Elements */
input, textarea {
  width: 100%; background-color: var(--bg-accent); border: 1px solid rgba(153, 144, 124, 0.3);
  border-radius: var(--radius-md); color: var(--text-primary); padding: 16px; transition: border-color 0.3s ease;
}
input { height: 56px; }
input:focus, textarea:focus { outline: none; border-color: var(--color-primary); }
.form-group { display: flex; flex-direction: column; gap: 8px; }

/* Utilities */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--text-secondary); }
.text-white { color: var(--text-primary); }
.text-error { color: var(--color-error); }
.bg-panel { background-color: var(--bg-panel); }
.italic { font-style: italic; }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; } .mb-12 { margin-bottom: 48px; }

/* Header */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50; padding: 16px 0;
  background: rgba(19, 19, 19, 0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(153, 144, 124, 0.15); transition: all 0.3s ease;
}
header.scrolled { padding: 12px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.nav-links { display: none; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text-secondary); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--color-primary); }
.menu-toggle { display: block; background: none; border: none; cursor: pointer; }
.hidden-mobile { display: none; }

@media (min-width: 1000px) {
  .h1 { font-size: 56px; } .h2 { font-size: 40px; }
  .container { padding: 0 var(--margin-desktop); }
  .nav-links { display: flex; } .hidden-mobile { display: flex; }
  .menu-toggle { display: none; }
}
