@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #111111;
  --foreground: #f5f5f5;
  --card: #1a1a1a;
  --primary: #d97706;
  --primary-foreground: #111111;
  --secondary: #262626;
  --muted-foreground: #888888;
  --border: #333333;
  --font-bebas: 'Bebas Neue', sans-serif;
  --font-inter: 'Inter', sans-serif;
}

body {
  font-family: var(--font-inter);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Global SVG sizing fix */
svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon span {
  font-family: var(--font-bebas);
  color: var(--primary-foreground);
  font-size: 1.25rem;
}

.logo-text {
  font-family: var(--font-bebas);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .logo-text {
    display: none;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 50px,
      rgba(255,255,255,0.03) 50px,
      rgba(255,255,255,0.03) 51px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(255,255,255,0.03) 50px,
      rgba(255,255,255,0.03) 51px
    );
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.hero-tag svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--primary);
}

.hero-tag span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-title {
  font-family: var(--font-bebas);
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--foreground);
  font-weight: 500;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat svg {
  width: 24px !important;
  height: 24px !important;
  color: var(--primary);
}

.stat-content {
  text-align: left;
}

.stat-value {
  font-family: var(--font-bebas);
  font-size: 1.875rem;
  color: var(--foreground);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator span {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background-color: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 16px;
  background-color: var(--primary);
  animation: scrollPulse 1.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(32px); }
}

@media (min-width: 768px) {
  .hero-stats {
    gap: 4rem;
  }
}

/* ========== FOOTER ========== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon span {
  font-family: var(--font-bebas);
  color: var(--primary-foreground);
  font-size: 0.875rem;
}

.footer-logo-text {
  font-family: var(--font-bebas);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-link {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ========== MEMBERS PAGE ========== */
.members-page {
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
}

.members-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

.members-header {
  text-align: center;
  margin-bottom: 4rem;
}

.members-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.members-tag svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--primary);
}

.members-tag span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.members-title {
  font-family: var(--font-bebas);
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.members-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Role Sections */
.role-section {
  margin-bottom: 4rem;
  width: 100%;
  display: block;
}

.role-title {
  margin-bottom: 1.5rem;
}

.role-badge {
  display: inline-block;
  font-family: var(--font-bebas);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
}

.badge-leader {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.badge-admin {
  background-color: #dc2626;
  color: #fff;
}

.badge-moderator {
  background-color: #2563eb;
  color: #fff;
}

.badge-streamer {
  background-color: #9333ea;
  color: #fff;
}

.badge-default {
  background-color: var(--secondary);
  color: var(--foreground);
}

/* Members Grid */
.members-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
  width: 100%;
}

.member-card {
  background-color: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  transition: border-color 0.3s ease, transform 0.3s ease;
  width: 100%;
}

/* Default hover */
.member-card:hover {
  transform: translateY(-4px);
  background-color: #222222 !important;
}

.member-card:hover .member-avatar,
.member-card:hover .member-avatar-placeholder {
  transform: scale(1.05);
}

/* Clanleitung - Orange */
.role-section:has(.badge-leader) .member-card:hover {
  border-color: #d97706 !important;
  box-shadow: 0 12px 40px rgba(217, 119, 6, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.role-section:has(.badge-leader) .member-card:hover .member-avatar,
.role-section:has(.badge-leader) .member-card:hover .member-avatar-placeholder {
  border-color: #d97706;
}

.role-section:has(.badge-leader) .member-card:hover .member-name {
  color: #d97706;
}

/* Admin - Rot */
.role-section:has(.badge-admin) .member-card:hover {
  border-color: #dc2626 !important;
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.role-section:has(.badge-admin) .member-card:hover .member-avatar,
.role-section:has(.badge-admin) .member-card:hover .member-avatar-placeholder {
  border-color: #dc2626;
}

.role-section:has(.badge-admin) .member-card:hover .member-name {
  color: #dc2626;
}

/* Moderator - Blau */
.role-section:has(.badge-moderator) .member-card:hover {
  border-color: #2563eb !important;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.role-section:has(.badge-moderator) .member-card:hover .member-avatar,
.role-section:has(.badge-moderator) .member-card:hover .member-avatar-placeholder {
  border-color: #2563eb;
}

.role-section:has(.badge-moderator) .member-card:hover .member-name {
  color: #2563eb;
}

/* Streamer - Lila */
.role-section:has(.badge-streamer) .member-card:hover {
  border-color: #9333ea !important;
  box-shadow: 0 12px 40px rgba(147, 51, 234, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.role-section:has(.badge-streamer) .member-card:hover .member-avatar,
.role-section:has(.badge-streamer) .member-card:hover .member-avatar-placeholder {
  border-color: #9333ea;
}

.role-section:has(.badge-streamer) .member-card:hover .member-name {
  color: #9333ea;
}

.member-avatar-wrapper {
  flex-shrink: 0;
}

.member-avatar {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px;
  min-height: 64px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.member-avatar-placeholder {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px;
  min-height: 64px;
  border-radius: 50% !important;
  background-color: var(--secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.member-avatar-placeholder span {
  font-family: var(--font-bebas);
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-family: var(--font-bebas);
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.member-role {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* No Members State */
.no-members {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
}

.no-members svg {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

.no-members p {
  font-size: 1.125rem;
}

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
  
  .member-card {
    padding: 1rem;
  }
  
  .member-avatar,
  .member-avatar-placeholder {
    width: 48px;
    height: 48px;
  }
}

/* ========== ABOUT PAGE ========== */
.about-page {
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.about-tag svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--primary);
}

.about-tag span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.about-title {
  font-family: var(--font-bebas);
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.about-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Terminal Styling */
.terminal {
  background-color: #0a0a0a;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background-color: #1a1a1a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #2a2a2a;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-btn.red {
  background-color: #ff5f56;
}

.terminal-btn.yellow {
  background-color: #ffbd2e;
}

.terminal-btn.green {
  background-color: #27ca40;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: #666;
}

.terminal-spacer {
  width: 52px;
}

.terminal-body {
  padding: 1.5rem;
  height: 500px;
  overflow-y: auto;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  background-color: #0a0a0a;
}

.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: #444;
}

#terminalText {
  color: #00ff9c;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.cursor {
  color: #00ff9c;
  font-weight: bold;
  animation: cursorBlink 0.7s step-end infinite;
}

.cursor.blink {
  animation: cursorBlink 0.7s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 768px) {
  .terminal-body {
    height: 400px;
    padding: 1rem;
    font-size: 0.8rem;
  }
  
  .about-page {
    padding: 6rem 1rem 3rem;
  }
}

/* ========== GAMES PAGE ========== */
.games-page {
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
}

.games-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.games-header {
  text-align: center;
  margin-bottom: 4rem;
}

.games-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.games-tag svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--primary);
}

.games-tag span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.games-title {
  font-family: var(--font-bebas);
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.games-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Main Game Card */
.main-game {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.main-game::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.main-game-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-bebas);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
}

.main-game-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.main-game-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background-color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-game-icon svg {
  width: 40px !important;
  height: 40px !important;
  color: var(--primary-foreground);
}

.main-game-info {
  flex: 1;
}

.main-game-title {
  font-family: var(--font-bebas);
  font-size: 2.5rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.main-game-desc {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.main-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-tag {
  background-color: var(--secondary);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Title */
.games-section-title {
  font-family: var(--font-bebas);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--muted-foreground);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.game-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.game-card-icon svg {
  width: 24px !important;
  height: 24px !important;
  color: #fff;
}

.game-card-icon.blue {
  background-color: #2563eb;
}

.game-card-icon.red {
  background-color: #dc2626;
}

.game-card-icon.green {
  background-color: #16a34a;
}

.game-card-icon.purple {
  background-color: #9333ea;
}

.game-card-icon.yellow {
  background-color: #d97706;
}

.game-card-icon.cyan {
  background-color: #0891b2;
}

.game-card-title {
  font-family: var(--font-bebas);
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.game-card-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Hover effects for game cards by color */
.game-card:has(.game-card-icon.blue):hover {
  border-color: #2563eb;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card:has(.game-card-icon.red):hover {
  border-color: #dc2626;
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card:has(.game-card-icon.green):hover {
  border-color: #16a34a;
  box-shadow: 0 12px 40px rgba(22, 163, 74, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card:has(.game-card-icon.purple):hover {
  border-color: #9333ea;
  box-shadow: 0 12px 40px rgba(147, 51, 234, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card:has(.game-card-icon.yellow):hover {
  border-color: #d97706;
  box-shadow: 0 12px 40px rgba(217, 119, 6, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card:has(.game-card-icon.cyan):hover {
  border-color: #0891b2;
  box-shadow: 0 12px 40px rgba(8, 145, 178, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .main-game-content {
    flex-direction: column;
    text-align: center;
  }
  
  .main-game-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .games-page {
    padding: 6rem 1rem 3rem;
  }
}

/* ========== GAMES PAGE - IMAGE CARDS ========== */
.games-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  width: 100%;
}

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

@media (max-width: 640px) {
  .games-grid {
    grid-template-columns: 1fr !important;
  }
}

.game-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0 !important;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.2), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.game-image-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #0a0a0a;
  transition: transform 0.4s ease;
}

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

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.game-view-btn {
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-bebas);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.game-card:hover .game-view-btn {
  transform: translateY(0);
}

.game-info {
  padding: 1rem 1.25rem;
}

.game-name {
  font-family: var(--font-bebas);
  font-size: 1.5rem;
  color: var(--foreground);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.game-card:hover .game-name {
  color: var(--primary);
}

/* No Games State */
.no-games {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
}

.no-games svg {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

.no-games p {
  font-size: 1.125rem;
}

/* ========== GAME MODAL ========== */
.game-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-modal.active {
  opacity: 1;
  visibility: visible;
}

.game-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.game-modal-content {
  position: relative;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.game-modal.active .game-modal-content {
  transform: scale(1) translateY(0);
}

.game-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.game-modal-close:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.game-modal-close svg {
  width: 20px !important;
  height: 20px !important;
}

.game-modal-image-wrapper {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.game-modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #0a0a0a;
}

.game-modal-body {
  padding: 1.5rem 2rem 2rem;
}

.game-modal-title {
  font-family: var(--font-bebas);
  font-size: 2.5rem;
  color: var(--foreground);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.game-modal-description {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.game-modal-players {
  background-color: var(--secondary);
  border-radius: 10px;
  padding: 1.25rem;
}

.players-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-bebas);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.players-title svg {
  width: 20px !important;
  height: 20px !important;
}

.players-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.players-list li {
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.players-list li:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.players-list li.no-players {
  color: var(--muted-foreground);
  font-style: italic;
}

@media (max-width: 640px) {
  .game-modal-content {
    max-height: 85vh;
  }
  
  .game-modal-image-wrapper {
    height: 180px;
  }
  
  .game-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  
  .game-modal-title {
    font-size: 2rem;
  }
}
