/* ============================================
   GameVault - Cyberpunk Neon Gaming Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a1f2e;
  --bg-card-hover: #222842;
  --bg-glass: rgba(17, 24, 39, 0.85);
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00e5;
  --neon-purple: #b000ff;
  --neon-green: #39ff14;
  --neon-yellow: #ffe600;
  --neon-orange: #ff6a00;
  --text-primary: #e8eaed;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: rgba(0, 240, 255, 0.15);
  --border-glow: rgba(0, 240, 255, 0.4);
  --gradient-cyan: linear-gradient(135deg, #00f0ff, #0080ff);
  --gradient-magenta: linear-gradient(135deg, #ff00e5, #b000ff);
  --gradient-fire: linear-gradient(135deg, #ff6a00, #ff00e5);
  --gradient-aurora: linear-gradient(135deg, #00f0ff, #b000ff, #ff00e5);
  --shadow-neon-cyan: 0 0 15px rgba(0, 240, 255, 0.3), 0 0 30px rgba(0, 240, 255, 0.1);
  --shadow-neon-magenta: 0 0 15px rgba(255, 0, 229, 0.3), 0 0 30px rgba(255, 0, 229, 0.1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-main: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-mid: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated background grid */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Floating particles effect */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(0, 240, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255, 0, 229, 0.2), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(176, 0, 255, 0.2), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(57, 255, 20, 0.15), transparent);
  background-size: 300px 300px;
  animation: floatParticles 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatParticles {
  0% { transform: translateY(0); }
  100% { transform: translateY(-300px); }
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--neon-cyan);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 4px;
}

/* --- Header / Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-mid);
}

.navbar.scrolled {
  box-shadow: 0 2px 30px rgba(0, 240, 255, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-aurora);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.7), 0 0 50px rgba(176, 0, 255, 0.3); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  position: relative;
  padding: 8px 18px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  border-radius: 2px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 0, 229, 0.06), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(176, 0, 255, 0.05), transparent 50%);
  z-index: 0;
}

/* Scanline effect */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 24px;
  animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  0% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.2); }
  100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-family: var(--font-main);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-cyan);
  color: #000;
  box-shadow: var(--shadow-neon-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), 0 0 50px rgba(0, 240, 255, 0.2);
  color: #000;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before { left: 100%; }

.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 1.5px solid var(--neon-cyan);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: var(--shadow-neon-cyan);
  transform: translateY(-2px);
  color: var(--neon-cyan);
}

.btn-magenta {
  background: var(--gradient-magenta);
  color: #fff;
  box-shadow: var(--shadow-neon-magenta);
}

.btn-magenta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 0, 229, 0.5);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.75rem;
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header:has(.section-header-left) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
}

.section-header-left {
  text-align: left;
  flex: 1;
}

.section-header-left .section-divider {
  margin: 16px 0;
}

.section-header-left p {
  margin: 0;
}

.section-header h2 {
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 .accent {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  /* margin: 0 auto; */
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-aurora);
  border-radius: 3px;
  margin: 16px auto;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.view-more-btn {
  display: inline-block;
  padding: 10px 32px;
  white-space: nowrap;
  align-self: center;
  margin-top: 16px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

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

.game-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition-mid);
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 40px rgba(0, 240, 255, 0.15), 0 0 1px var(--neon-cyan);
}

.game-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.game-card:hover .game-card-image img {
  transform: scale(1.08);
}

/* Gradient overlay on image */
.game-card-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
}

.game-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  z-index: 2;
}

.badge-new {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

.badge-hot {
  background: var(--neon-orange);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.4);
}

.badge-top {
  background: var(--gradient-magenta);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 229, 0.4);
}

.game-card-rating {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon-yellow);
  z-index: 2;
}

.game-card-info {
  padding: 16px 20px 20px;
}

.game-card-genre {
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 6px;
}

.game-card-title {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-plays {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-card-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  background: var(--gradient-cyan);
  border-radius: 8px;
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.game-card:hover .game-card-play-btn {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  transform: scale(1.05);
}

/* --- Category Cards --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-mid);
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-aurora);
  opacity: 0;
  transition: var(--transition-mid);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.1);
}

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

.category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-mid);
}

.category-card:hover .category-icon {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.category-card h3 {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.category-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Index Section Background --- */
.section-dark {
  background: rgba(0,0,0,0.25);
}

/* ============================================
   Hot Games - Featured Horizontal Cards
   Large cover image on left + info on right,
   like game store featured sections
   ============================================ */
.hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 24px;
}

.hot-card {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-mid);
  border: 1px solid var(--border-color);
  position: relative;
}

.hot-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hot-cover {
  position: relative;
  width: 200px;
  min-width: 200px;
  overflow: hidden;
}

.hot-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hot-card:hover .hot-cover img {
  transform: scale(1.06);
}

/* Gradient fade from image to info */
.hot-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, var(--bg-card));
  pointer-events: none;
}

/* HOT badge */
.hot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  background: var(--neon-orange);
  color: #000;
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.4);
}

/* Play overlay on hover */
.hot-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.hot-card:hover .hot-play-overlay {
  opacity: 1;
}

.hot-play-circle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cyan);
  border-radius: 50%;
  color: #000;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  transition: transform 0.3s;
}

.hot-card:hover .hot-play-circle {
  transform: scale(1.1);
}

/* Info area */
.hot-info {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hot-genre {
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 6px;
}

.hot-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hot-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-yellow);
}

.hot-plays {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hot-play-btn {
  margin-left: auto;
  padding: 6px 18px;
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000;
  background: var(--gradient-cyan);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.hot-card:hover .hot-play-btn {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  transform: scale(1.05);
}

/* ============================================
   New Games - Standard Game Cards
   Vertical card with large thumbnail,
   like Steam/CrazyGames store cards
   ============================================ */
.new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.new-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-mid);
  border: 1px solid var(--border-color);
  position: relative;
}

.new-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.new-thumb {
  position: relative;
  height: 170px;
  overflow: hidden;
}

.new-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.new-card:hover .new-thumb img {
  transform: scale(1.08);
}

.new-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
}

/* NEW ribbon */
.new-ribbon {
  position: absolute;
  top: 0;
  right: 16px;
  padding: 6px 14px 8px;
  background: var(--neon-green);
  color: #000;
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
  box-shadow: 0 4px 12px rgba(57, 255, 20, 0.3);
}

/* Rating pill */
.new-rating {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon-yellow);
  z-index: 2;
}

/* Play overlay */
.new-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.new-card:hover .new-play-overlay {
  opacity: 1;
}

.new-play-circle {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-magenta);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 24px rgba(255, 0, 229, 0.5);
  transition: transform 0.3s;
}

.new-card:hover .new-play-circle {
  transform: scale(1.1);
}

/* Info section */
.new-body {
  padding: 14px 18px 18px;
}

.new-genre {
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-magenta);
  margin-bottom: 6px;
}

.new-title {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.new-tag {
  padding: 2px 8px;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.new-footer {
  display: block;
}

.new-plays {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.new-play-btn {
  width: 100%;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-fire);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.2), 0 0 24px rgba(255, 0, 229, 0.1);
  transition: var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.new-play-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.new-play-btn:hover::before {
  left: 100%;
}

.new-card:hover .new-play-btn {
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.4), 0 0 40px rgba(255, 0, 229, 0.2);
  transform: translateY(-2px);
}

/* ============================================
   Popular Games - Leaderboard / Rank List
   Numbered rows with thumbnail, like
   game site ranking tables
   ============================================ */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-mid);
  position: relative;
}

.rank-item:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateX(4px);
}

/* Rank number */
.rank-num {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 900;
  min-width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num { color: #ff6a00; text-shadow: 0 0 10px rgba(255,106,0,0.4); }
.rank-item:nth-child(2) .rank-num { color: #b0b0b0; text-shadow: 0 0 8px rgba(176,176,176,0.3); }
.rank-item:nth-child(3) .rank-num { color: #cd7f32; text-shadow: 0 0 8px rgba(205,127,50,0.3); }
.rank-item:nth-child(n+4) .rank-num { color: var(--text-muted); }

/* Thumbnail */
.rank-thumb {
  width: 64px;
  min-width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.rank-item:hover .rank-thumb img {
  transform: scale(1.08);
}

/* Info */
.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-genre {
  font-family: var(--font-main);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 2px;
}

.rank-title {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.rank-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.rank-tag {
  padding: 1px 6px;
  font-size: 0.6rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
}

/* Stats on right */
.rank-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.rank-rating {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--neon-yellow);
}

.rank-plays {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.rank-play-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cyan);
  border-radius: 50%;
  color: #000;
  font-size: 0.65rem;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
}

.rank-item:hover .rank-play-btn {
  opacity: 1;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

/* Tags Page */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 20px 0;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: var(--transition-mid);
  cursor: pointer;
}

.tag-item:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  transform: translateY(-2px);
}

.tag-item .tag-count {
  padding: 2px 8px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 50px;
  font-size: 0.65rem;
  color: var(--neon-cyan);
}

.tag-item.active,
.tag-item.size-lg.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.tag-item.size-lg {
  font-size: 1rem;
  padding: 12px 28px;
}

.tag-item.size-md {
  font-size: 0.88rem;
}

.tag-item.size-sm {
  font-size: 0.72rem;
  padding: 8px 16px;
}

/* Tags category sections */
.tag-group {
  margin-bottom: 48px;
}

.tag-group-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

/* --- Tags Page: Category Games --- */
.category-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .category-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .category-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.category-game-card {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

.category-game-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.08);
}

.category-game-thumb {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.category-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-game-card:hover .category-game-thumb img {
  transform: scale(1.05);
}

.category-game-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-game-info .new-play-btn {
  margin-top: auto;
  width: 100%;
}

.category-game-info h3,
.category-game-info h4 {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.category-game-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-game-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.category-game-meta span:first-child {
  color: #ffd700;
}

/* --- List Page --- */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.list-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.list-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-sort select {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.list-sort select:focus {
  border-color: var(--neon-cyan);
}

/* List view variant - horizontal cards */
.games-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-list-item {
  display: flex;
  gap: 20px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-mid);
  cursor: pointer;
}

.game-list-item:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 24px rgba(0, 240, 255, 0.1);
  transform: translateX(4px);
}

.game-list-item .game-thumb {
  width: 200px;
  min-width: 200px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.game-list-item .game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-mid);
}

.game-list-item:hover .game-thumb img {
  transform: scale(1.05);
}

.game-list-item .game-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-list-item .game-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.game-list-item .game-meta span {
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.game-list-item .game-meta .dot {
  width: 3px; height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

.game-list-item .game-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.game-list-item .game-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.game-list-item .game-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.game-list-item .game-tags span {
  padding: 3px 10px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 50px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* View toggle */
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.view-toggle button {
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.85rem;
}

.view-toggle button.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
}

/* Pagination */
.pagination-bar {
  margin-top: 48px;
}

.pagination-container {
  display: flex;
  justify-content: center;
}

.pagination nav.pagination {
  display: inline-block;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.pagination-link:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  transform: translateY(-1px);
}

.pagination-item.active .pagination-link.current {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(139, 92, 246, 0.2));
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  cursor: default;
}

.pagination-link.prev,
.pagination-link.next {
  font-size: 1.1rem;
  padding: 0 14px;
}

.pagination-link.prev.disabled,
.pagination-link.next.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}



/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-mid);
}

.stat-item:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.stat-number {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Featured / Trending Section --- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.featured-main {
  grid-row: span 2;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 440px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition-mid);
}

.featured-main:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 50px rgba(0, 240, 255, 0.15);
}

.featured-main .featured-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0a2e, #0a1628);
  z-index: 0;
}

.featured-main .featured-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(10, 14, 23, 0.95));
  z-index: 1;
}

.featured-main .featured-label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--gradient-magenta);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.featured-main h3 {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.featured-main p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.featured-side {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-mid);
}

.featured-side:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 24px rgba(0, 240, 255, 0.1);
  transform: translateX(4px);
}

.featured-side .side-thumb {
  width: 100px;
  min-width: 100px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a2e, #0a1628);
}

.featured-side .side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-side .side-info h4 {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.featured-side .side-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 240, 255, 0.06), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(255, 0, 229, 0.04), transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .sep { color: var(--text-muted); }

/* --- About Page --- */
.about-text-block {
  max-width: 960px;
  margin: 0 auto 56px;
}

.about-text-block h2 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.about-text-block p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-mid);
}

.value-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.value-card .value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: rgba(0, 240, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.value-card h3 {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

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

.form-group label {
  display: block;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-mid);
}

.contact-info-card:hover {
  border-color: var(--border-glow);
}

.contact-info-card .info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-card h4 {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Privacy Page --- */
.policy-content {
  max-width: 1200px;
  margin: 0 auto;
}

.policy-content h2 {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  margin: 32px 0 12px;
}

.policy-content h3 {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 24px 0 10px;
}

.policy-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-content ul {
  margin: 12px 0;
  padding-left: 24px;
}

.policy-content ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  list-style: none;
  position: relative;
  padding-left: 20px;
}

.policy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-cyan);
}

.policy-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 0;
  border-top: 1px solid var(--border-color);
  background: rgba(10, 14, 23, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-aurora);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--neon-cyan);
  padding-left: 4px;
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.cta-box {
  padding: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-aurora);
}

.cta-box h2 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 28px;
}

/* --- Search Bar --- */
.search-bar {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.search-bar input {
  flex: 1;
  padding: 14px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar button {
  padding: 14px 28px;
  background: var(--gradient-cyan);
  border: none;
  color: #000;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-bar button:hover {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cyan);
  border-radius: 50%;
  color: #000;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-neon-cyan);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-mid);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  transform: translateY(-4px);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glitch text effect for hero */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.glitch::before {
  animation: glitch1 3s infinite;
  color: var(--neon-cyan);
  z-index: -1;
}

.glitch::after {
  animation: glitch2 3s infinite;
  color: var(--neon-magenta);
  z-index: -2;
}

@keyframes glitch1 {
  0%, 95%, 100% { transform: translate(0); }
  96% { transform: translate(-3px, 2px); }
  97% { transform: translate(3px, -2px); }
}

@keyframes glitch2 {
  0%, 95%, 100% { transform: translate(0); }
  96% { transform: translate(3px, -2px); }
  97% { transform: translate(-3px, 2px); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-main { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 24px 24px;
    border-left: 1px solid var(--border-color);
    transition: var(--transition-mid);
    z-index: 999;
  }

  .nav-links.open { right: 0; }

  .nav-toggle { display: flex; }

  .hero { min-height: 70vh; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .games-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  .game-list-item { flex-direction: column; }
  .game-list-item .game-thumb { width: 100%; min-width: 100%; height: 180px; }

  .hot-grid { grid-template-columns: 1fr; }
  .hot-card { flex-direction: column; }
  .hot-cover { width: 100%; min-width: 100%; height: 180px; }
  .hot-cover::after { background: linear-gradient(180deg, transparent 40%, var(--bg-card)); }

  .new-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .new-thumb { height: 140px; }

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

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

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

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .list-toolbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item { padding: 16px; }
  .stat-number { font-size: 1.5rem; }
}

/* ============================================
   Hero Section (New Structure)
   Centered cinematic hero with magenta CTA
   ============================================ */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 0 60px;
  text-align: center;
}

/* Animated diagonal gradient bg */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 210deg at 50% 120%, rgba(255, 0, 229, 0.07), rgba(176, 0, 255, 0.05), rgba(0, 240, 255, 0.04), transparent 60%);
  z-index: 0;
  animation: heroBgRotate 20s linear infinite;
}

@keyframes heroBgRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Hex grid pattern */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 0, 229, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-main);
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon-magenta);
  margin-bottom: 24px;
  padding: 8px 24px;
  background: linear-gradient(135deg, rgba(255, 0, 229, 0.12), rgba(176, 0, 255, 0.08));
  border: 1px solid rgba(255, 0, 229, 0.3);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  animation: taglineShimmer 3s ease-in-out infinite;
}

.hero-tagline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 229, 0.15), transparent);
  animation: taglineSweep 3s ease-in-out infinite;
}

@keyframes taglineShimmer {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 229, 0.1); }
  50% { box-shadow: 0 0 25px rgba(255, 0, 229, 0.3); }
}

@keyframes taglineSweep {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 1px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 40%, var(--neon-magenta) 70%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 0, 229, 0.15));
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
  max-width: 600px;
}

.hero-subdescription {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
}

/* Hero Stats - inline pill style */
.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(255, 0, 229, 0.04);
  border: 1px solid rgba(255, 0, 229, 0.12);
  border-radius: 50px;
  transition: var(--transition-mid);
}

.hero-stats .stat-item:hover {
  border-color: rgba(255, 0, 229, 0.4);
  background: rgba(255, 0, 229, 0.08);
  box-shadow: 0 0 20px rgba(255, 0, 229, 0.12);
  transform: translateY(-2px);
}

.hero-stats .stat-number {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--neon-magenta);
  line-height: 1;
}

.hero-stats .stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Hero Actions - magenta/fire gradient button */
.hero-content .hero-actions {
  margin-top: 34px;
}

.hero-actions .btn-primary {
  background: var(--gradient-fire);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.3), 0 0 40px rgba(255, 0, 229, 0.15);
  border-radius: 50px;
  padding: 16px 44px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.hero-actions .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.45), 0 0 60px rgba(255, 0, 229, 0.25);
  color: #fff;
}

.hero-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.6s;
}

.hero-actions .btn-primary:hover::before {
  left: 100%;
}

/* Responsive for hero-section */
@media (max-width: 768px) {
  .hero-section {
    min-height: 75vh;
    padding: 80px 0 50px;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stats .stat-item {
    padding: 8px 16px;
  }

  .hero-stats .stat-number {
    font-size: 1rem;
  }

  .hero-stats .stat-label {
    font-size: 0.7rem;
  }

  .hero-actions .btn-primary {
    padding: 14px 36px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: auto;
    padding: 70px 0 40px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero-stats .stat-item {
    width: 100%;
    max-width: 260px;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  .hero-actions .btn-primary {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
  }
}

/* --- Game Detail Page --- */
.game-detail-section {
  padding: 92px 0 60px;
  position: relative;
  z-index: 1;
}

.game-player-wrap {
  margin-bottom: 32px;
}

.game-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.08);
}

.game-player iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.game-player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.game-player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.game-play-btn {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

.game-play-btn .play-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-fire);
  border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.4), 0 0 60px rgba(255, 0, 229, 0.2);
  transition: var(--transition-mid);
}

.game-play-btn:hover .play-icon {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(255, 106, 0, 0.6), 0 0 80px rgba(255, 0, 229, 0.35);
}

.game-play-btn .play-text {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 106, 0, 0.6);
}

.game-detail-info {
  margin-bottom: 40px;
}

.game-detail-main {
  width: 100%;
}

.game-detail-title {
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.game-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.game-detail-meta .meta-sep {
  color: var(--text-muted);
}

.game-detail-category {
  color: var(--neon-cyan);
  font-weight: 600;
}

.game-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.game-detail-tag {
  padding: 4px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.game-detail-tag:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
  color: #fff;
}

.game-detail-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.game-detail-desc p {
  margin-bottom: 12px;
}

.game-detail-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.game-detail-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-mid);
}

.btn-game-play {
  background: var(--gradient-fire);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.3), 0 0 40px rgba(255, 0, 229, 0.15);
}

.btn-game-play:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.5), 0 0 60px rgba(255, 0, 229, 0.25);
}

.btn-fullscreen {
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--neon-cyan);
}

.btn-fullscreen:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.game-ad-slot {
  margin: 32px 0;
  text-align: center;
  min-height: 90px;
}

.game-detail-block {
  margin-top: 48px;
  width: 100%;
}

.game-detail-block-title {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-detail-block-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.game-detail-block-content p {
  margin-bottom: 12px;
}

.game-detail-block-content ul,
.game-detail-block-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.game-detail-block-content li {
  margin-bottom: 8px;
  list-style: disc;
}

.game-detail-block-content ol li {
  list-style: decimal;
}

/* Related Games */
.related-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.related-game-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-mid);
}

.related-game-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 240, 255, 0.1);
}

.related-game-thumb {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
}

.related-game-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-mid);
}

.related-game-card:hover .related-game-thumb img {
  transform: scale(1.08);
}

.related-game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: var(--transition-mid);
}

.related-game-card:hover .related-game-overlay {
  opacity: 1;
}

.related-game-overlay span {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cyan);
  border-radius: 50%;
  font-size: 1rem;
  color: #000;
  font-weight: 700;
}

.related-game-info {
  padding: 14px 16px;
}

.related-game-title {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-game-category {
  font-size: 0.75rem;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.related-game-rating {
  font-size: 0.75rem;
}

/* Game Detail Responsive */
@media (max-width: 768px) {
  .game-detail-section {
    padding: 80px 0 40px;
  }

  .game-play-btn .play-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .game-play-btn .play-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .game-detail-actions {
    flex-direction: column;
  }

  .game-detail-actions .btn {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  .related-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .related-game-info {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .game-detail-title {
    font-size: 1.4rem;
  }

  .game-detail-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .related-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.game-detail-block {
    margin-top: 48px;
}

.game-detail-block-title {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-game-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-mid);
}

.related-game-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 240, 255, 0.1);
}

.related-game-thumb {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
}

.related-game-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-mid);
}

.related-game-card:hover .related-game-thumb img {
    transform: scale(1.08);
}

.related-game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition-mid);
}

.related-game-card:hover .related-game-overlay {
    opacity: 1;
}

.related-game-overlay span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-cyan);
    border-radius: 50%;
    font-size: 1rem;
    color: #000;
    font-weight: 700;
}

.related-game-info {
    padding: 14px 16px;
}

.related-game-title {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-game-category {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.related-game-rating {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .related-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .related-game-info {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .related-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-cyan { color: var(--neon-cyan); }
.text-magenta { color: var(--neon-magenta); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
