/* ============================================
   H5Play Games - Global Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #12121e;
  --bg-card: #1a1a2e;
  --bg-card-hover: #22223a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-muted: #6c6c80;
  --accent-purple: #7c3aed;
  --accent-purple-light: #a855f7;
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-green: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-orange: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(124, 58, 237, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* --- Main Layout --- */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 0;
}

.page-wrapper {
  min-height: calc(100vh - 64px - 200px);
}

.page-wrapper .section:last-child {
  margin-bottom: 24px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 60px 20px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  z-index: -1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.4);
}

.btn-large {
  padding: 16px 40px;
  font-size: 17px;
}

/* --- Section --- */
.section {
  margin-bottom: 56px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-new { background: var(--gradient-green); color: #fff; }
.badge-hot { background: var(--gradient-orange); color: #fff; }
.badge-action { background: var(--gradient-blue); color: #fff; }
.badge-best { background: var(--gradient-primary); color: #fff; }

.section-link {
  font-size: 14px;
  color: var(--accent-purple-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  color: var(--text-primary);
  gap: 8px;
}

/* --- Game Grid --- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(124, 58, 237, 0.15);
}

.game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-secondary);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-thumb img {
  transform: scale(1.08);
}

.game-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover .game-thumb::after {
  opacity: 1;
}

.game-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  transition: var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-glow);
}

.game-card:hover .game-play-icon {
  transform: translate(-50%, -50%) scale(1);
}

.game-info {
  padding: 12px 14px;
}

.game-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.game-categories {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.game-cat-tag {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: capitalize;
}

.game-cat-tag::after {
  content: '·';
  margin-left: 6px;
}

.game-cat-tag:last-child::after {
  content: '';
}

/* --- Game Detail Page --- */
.game-detail-page {
  padding: 32px 20px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.detail-header {
  margin-bottom: 24px;
}

.detail-breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.detail-breadcrumb a:hover {
  color: var(--accent-purple-light);
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.detail-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}

.detail-badges {
  display: flex;
  gap: 8px;
}

.game-player-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
  aspect-ratio: 16 / 10;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-iframe-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 5;
}

.game-iframe-placeholder.hidden {
  display: none;
}

.placeholder-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.play-game-btn {
  display: block;
  margin: 20px auto 32px;
  padding: 16px 48px;
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.5);
}

.play-game-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 32px rgba(124, 58, 237, 0.6);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .detail-info-grid {
    grid-template-columns: 1fr;
  }
}

.game-description h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.game-description p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.game-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.sidebar-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.sidebar-info-row:last-child {
  border-bottom: none;
}

.sidebar-info-label {
  color: var(--text-muted);
}

.sidebar-info-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Similar Games --- */
.similar-games h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* --- Info / Static Pages --- */
.page-hero {
  background: var(--bg-secondary);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.page-hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- List Page (category browse) --- */
.list-category-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 0;
}

.category-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.category-trigger:hover {
  border-color: rgba(124, 58, 237, 0.4);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.category-trigger-icon {
  font-size: 18px;
  color: var(--accent-purple-light);
}

.category-trigger-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.category-trigger-current {
  margin-left: auto;
  color: var(--text-primary);
  font-weight: 700;
  padding: 4px 12px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.category-trigger-arrow {
  color: var(--text-muted);
  font-size: 18px;
  transition: var(--transition);
}

.category-trigger:hover .category-trigger-arrow {
  color: var(--accent-purple-light);
  transform: translateX(4px);
}

/* --- Drawer Overlay --- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1500;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --- Category Drawer --- */
.category-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1600;
  display: flex;
  flex-direction: column;
}

.category-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-card);
}

.drawer-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.drawer-close:hover {
  background: var(--accent-pink);
  color: #fff;
  transform: rotate(90deg);
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.drawer-tab:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateX(-4px);
  box-shadow: var(--shadow-md);
}

.drawer-tab.active {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}

.drawer-tab-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.drawer-tab-icon.badge-best { background: var(--gradient-primary); }
.drawer-tab-icon.badge-new { background: var(--gradient-green); }
.drawer-tab-icon.badge-hot { background: var(--gradient-orange); }
.drawer-tab-icon.badge-action { background: var(--gradient-blue); }

.drawer-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.drawer-tab-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-tab-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.drawer-tab.active .drawer-tab-name {
  color: var(--accent-purple-light);
}

.drawer-tab.active::after {
  content: '\2713';
  color: var(--accent-purple-light);
  font-size: 18px;
  font-weight: 700;
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-card);
}

.drawer-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.drawer-home-link:hover {
  color: var(--accent-purple-light);
  gap: 10px;
}

@media (max-width: 480px) {
  .category-trigger {
    padding: 12px 16px;
    font-size: 14px;
  }
  .category-trigger-label {
    display: none;
  }
  .category-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}

.list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.list-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.list-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.list-empty p {
  font-size: 18px;
  margin-bottom: 20px;
}

.static-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
}

.static-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text-primary);
}

.static-content h2:first-child {
  margin-top: 0;
}

.static-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.static-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.static-content ul {
  list-style: none;
  margin: 16px 0;
}

.static-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.static-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.contact-info-card .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-info-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* --- About Page Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  padding: 24px 20px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--accent-purple-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gradient-primary);
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    transform: translateY(-150%);
    transition: var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 22px;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }

  .detail-title {
    font-size: 26px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .footer-top {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 26px;
  }

  .game-info {
    padding: 10px;
  }

  .game-title {
    font-size: 13px;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}
