/* Games Reborn - Main Stylesheet */

:root {
  --primary: #d02000;
  --secondary: #c02000;
  --accent: #8f1414;
  --primary-rgb: 208, 32, 0;
  --secondary-rgb: 192, 32, 0;
  --accent-rgb: 143, 20, 20;
  --game-font: 'Inter', sans-serif;
  --classic-font: 'Inter', sans-serif;
  --dark: #0a0404;
  --dark-light: #170b0b;
  --dark-lighter: #241212;
  --text: #ffffff;
  --text-muted: #a89a9a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

.bg-animation {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -3;
  background: radial-gradient(ellipse at top, rgba(208, 32, 0, 0.12), transparent 55%),
              radial-gradient(ellipse at bottom, rgba(143, 20, 20, 0.2), transparent 60%),
              var(--dark);
}

/* Background video */
.bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.5;
  transition: opacity 1s ease;
}

.video-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
  pointer-events: none;
}

/* Fire embers */
.fire-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.fire-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #d02000, #8f1414, transparent);
  border-radius: 50%;
  filter: blur(2px);
  animation: fireRise 3s infinite ease-out;
  opacity: 0;
}

@keyframes fireRise {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; transform: translateY(90vh) scale(1); }
  50% {
    opacity: 0.8;
    transform: translateY(50vh) scale(1.5);
    background: radial-gradient(circle, #8f1414, #3a0000, transparent);
  }
  100% { transform: translateY(-10vh) scale(0.2); opacity: 0; }
}

/* Floating particles */
.bg-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 4;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(208, 32, 0, 0.6);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Hero logo */
.hero-logo {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 180px;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 0 24px rgba(208, 32, 0, 0.45));
  animation: heroPulse 3s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 24px rgba(208, 32, 0, 0.45));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 34px rgba(208, 32, 0, 0.7));
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 15px rgba(208, 32, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(208, 32, 0, 0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(208, 32, 0, 0.1);
  transform: translateY(-2px);
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 0 20px rgba(208, 32, 0, 0.5);
  animation: glow 2s ease-in-out infinite;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(208, 32, 0, 0.8);
}

.btn-play {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  width: 100%;
  margin-top: 1rem;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.4);
}

.btn-block { width: 100%; padding: 1rem; }

.navbar {

  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;

  background: rgba(10, 4, 4, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 4, 4, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--text); }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-slogan {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--secondary);
  text-shadow: 0 0 18px rgba(var(--secondary-rgb), 0.45);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-games {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.hero-game {
  font-family: var(--game-font), 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-shadow: 0 0 18px rgba(var(--primary-rgb), 0.4);
  transition: transform 0.3s ease;
}

.hero-game:hover {
  transform: translateY(-3px);
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}

.games-section .gradient-text,
.games-history-section .gradient-text,
.followups-section .gradient-text {
  background: linear-gradient(90deg, #d02000, #8f1414, #5a0000, #3a0000, #1a0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.games-section { padding: 6rem 0; position: relative; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--dark-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.25);
}

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

.game-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }
.game-card h3 {
  font-family: var(--game-font), 'Inter', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.game-card p { color: var(--text-muted); margin-bottom: 1rem; }

.footer {
  background: var(--dark-light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer p { color: var(--text-muted); }

/* Animations */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(208, 32, 0, 0.5); }
  50% { box-shadow: 0 0 40px rgba(208, 32, 0, 0.8); }
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-10px) translateX(-10px); }
  75% { transform: translateY(-30px) translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 2rem; }
  .nav-links { gap: 1rem; }
  .container { padding: 0 1rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--dark-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(208, 32, 0, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* Glitch */
.glitch { position: relative; display: inline-block; }

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

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--secondary);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--primary);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(30px, 9999px, 10px, 0); }
  20% { clip: rect(90px, 9999px, 100px, 0); }
  40% { clip: rect(10px, 9999px, 50px, 0); }
  60% { clip: rect(60px, 9999px, 80px, 0); }
  80% { clip: rect(20px, 9999px, 70px, 0); }
  100% { clip: rect(80px, 9999px, 20px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(60px, 9999px, 80px, 0); }
  20% { clip: rect(20px, 9999px, 70px, 0); }
  40% { clip: rect(80px, 9999px, 20px, 0); }
  60% { clip: rect(30px, 9999px, 10px, 0); }
  80% { clip: rect(90px, 9999px, 100px, 0); }
  100% { clip: rect(10px, 9999px, 50px, 0); }
}

/* Game Tags */
.game-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0.25rem 0.25rem 0.5rem 0;
}

.game-card .btn-play {
  margin-top: 0.75rem;
}

/* Games History Section */
.games-history-section {
  padding: 6rem 0;
  position: relative;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.followups-section {
  padding: 6rem 0;
  position: relative;
}

.followup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.history-card,
.followup-card {
  background: var(--dark-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.history-card:hover,
.followup-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.2);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-header h3 {
  font-family: var(--game-font), 'Inter', sans-serif;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.followup-card .history-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.history-year,
.followup-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.history-content {
  color: var(--text-muted);
  line-height: 1.8;
}

.history-content p {
  margin-bottom: 1rem;
}

.history-content p:last-child {
  margin-bottom: 0;
}

.history-content strong {
  color: var(--text);
  font-weight: 600;
}

/* Benefits Section */
.benefits-section {
  padding: 6rem 0;
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: var(--dark-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(208, 32, 0, 0.2);
}

.benefit-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(208, 32, 0, 0.2), rgba(192, 32, 0, 0.2));
  border-radius: 16px;
  color: var(--primary);
}

.benefit-icon svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
  stroke: currentColor;
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Game Logo */
.game-logo {
  width: 100%;
  height: 130px;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.game-card:hover .game-logo {
  border-color: var(--primary);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3), 0 12px 30px rgba(var(--primary-rgb), 0.35);
}

.game-logo img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
}

/* Media Modal */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.media-modal.open {
  opacity: 1;
  visibility: visible;
}

.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.media-modal-card {
  position: relative;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--dark-light);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.media-modal.open .media-modal-card {
  transform: translateY(0);
}

.media-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.media-modal-close:hover {
  background: var(--secondary);
  color: #fff;
  transform: rotate(90deg);
}

.media-modal-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}

.media-modal-logo-wrap {
  flex-shrink: 0;
  width: 180px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem;
}

.media-modal-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-modal-heading h3 {
  font-family: var(--game-font), 'Inter', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.media-modal-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.media-modal-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.media-modal-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.media-modal-detail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  background: rgba(15, 15, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.media-modal-detail .detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 600;
}

.media-modal-detail .detail-value {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.media-modal-private {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.14), rgba(var(--secondary-rgb), 0.08));
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  border-radius: 14px;
}

.media-modal-private h4 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.media-modal-private ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.4rem 1rem;
}

.media-modal-private li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.media-modal-private li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.media-modal-video {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
  background: #000;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.media-modal-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.media-modal-gallery img:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

@media (max-width: 768px) {
  .media-modal-card { padding: 1.5rem; }
  .media-modal-gallery img { height: 130px; }
}

/* ===================== Game-specific color & font themes ===================== */

/* Lineage 2 - crimson red & gold (classic siege/dragon branding) */
.game-card[data-game="lineage2"],
.media-modal[data-game="lineage2"],
.history-card[data-game="lineage2"],
.followup-card[data-game="lineage2"],
.hero-game[data-game="lineage2"] {
  --primary: #e0412e;
  --secondary: #a01010;
  --accent: #8a0808;
  --primary-rgb: 224, 65, 46;
  --secondary-rgb: 160, 16, 16;
  --accent-rgb: 138, 8, 8;
  --game-font: 'Cinzel', serif;
}

/* Aion - icy sky blue & silver (wings of Atreia) */
.game-card[data-game="aion"],
.media-modal[data-game="aion"],
.history-card[data-game="aion"],
.followup-card[data-game="aion"],
.hero-game[data-game="aion"] {
  --primary: #5aa9e0;
  --secondary: #5a1010;
  --accent: #3a0808;
  --primary-rgb: 90, 169, 224;
  --secondary-rgb: 90, 16, 16;
  --accent-rgb: 58, 8, 8;
  --game-font: 'Marcellus', serif;
  --classic-font: 'Cinzel', serif;
}

/* Blade & Soul - azure & cyan (NEO martial-arts branding) */
.game-card[data-game="blade-soul"],
.media-modal[data-game="blade-soul"],
.history-card[data-game="blade-soul"],
.followup-card[data-game="blade-soul"],
.hero-game[data-game="blade-soul"] {
  --primary: #1090f0;
  --secondary: #3a1010;
  --accent: #0a3050;
  --primary-rgb: 16, 144, 240;
  --secondary-rgb: 58, 16, 16;
  --accent-rgb: 10, 48, 80;
  --game-font: 'Russo One', sans-serif;
  --classic-font: 'Black Han Sans', sans-serif;
}

/* MU Origin 3 - royal gold & crimson (legendary MU wings) */
.game-card[data-game="mu-origin"],
.media-modal[data-game="mu-origin"],
.history-card[data-game="mu-origin"],
.followup-card[data-game="mu-origin"],
.hero-game[data-game="mu-origin"] {
  --primary: #f0b40c;
  --secondary: #b02020;
  --accent: #801010;
  --primary-rgb: 240, 180, 12;
  --secondary-rgb: 176, 32, 32;
  --accent-rgb: 128, 16, 16;
  --game-font: 'Cinzel Decorative', serif;
}

/* --- Game card visual theming --- */
.game-card[data-game] {
  background: linear-gradient(165deg, rgba(var(--primary-rgb), 0.08), var(--dark-light) 45%);
  box-shadow: 0 12px 45px rgba(var(--primary-rgb), 0.1);
}

.game-card[data-game] .game-logo {
  background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.22), rgba(15, 15, 25, 0.78) 72%);
  border-color: rgba(var(--primary-rgb), 0.32);
}

.game-card[data-game]:hover .game-logo {
  border-color: var(--primary);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3), 0 12px 30px rgba(var(--primary-rgb), 0.35);
}

/* Classic-era font highlight (Aion Classic, Blade & Soul Classic) */
.classic {
  font-family: var(--classic-font), var(--game-font), 'Inter', sans-serif;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* --- History card visual theming --- */
.history-card[data-game],
.followup-card[data-game] {
  border-left: 3px solid rgba(var(--primary-rgb), 0.55);
}

.history-card[data-game]:hover,
.followup-card[data-game]:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
}

/* --- Media modal visual theming --- */
.media-modal[data-game] .media-modal-card {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 30px 80px rgba(var(--primary-rgb), 0.28);
}

.media-modal[data-game] .media-modal-backdrop {
  background:
    radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.18), transparent 60%),
    rgba(0, 0, 0, 0.8);
}

.media-modal[data-game] .media-modal-logo-wrap {
  background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.16), rgba(15, 15, 25, 0.6) 70%);
  border-color: rgba(var(--primary-rgb), 0.3);
}
