/* Tokens y utilidades visuales que comparten todas las vistas. */

:root {
  --gr-radius-md: 14px;
  --gr-radius-lg: 22px;
  --gr-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  --gr-shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.45);
  --gr-surface: rgba(255, 255, 255, 0.04);
  --gr-surface-border: rgba(255, 255, 255, 0.12);
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a,
button {
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

a:hover,
button:hover {
  opacity: 0.95;
}

a:hover {
  transform: translateY(-1px);
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.navbar-gr {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-text {
  letter-spacing: 0.5px;
}

.btn,
.btn-view-more {
  border-radius: 999px;
}

.dropdown-menu {
  border-radius: var(--gr-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121212;
}

.top-game-card,
.game-card,
.game-card-visual,
.company-card-item,
.launch-card,
.calendar-card,
.news-card,
.glass-card {
  box-shadow: var(--gr-shadow-soft);
  border-radius: var(--gr-radius-md);
  border: 1px solid var(--gr-surface-border);
  background: var(--gr-surface);
  overflow: hidden;
}

.top-game-card:hover,
.game-card:hover,
.game-card-visual:hover,
.company-card-item:hover,
.launch-card:hover,
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gr-shadow-strong);
}

.section-title,
h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

.footer-link {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  opacity: 1;
}

.hero-video-container {
  position: relative;
  isolation: isolate;
}

.video-bg {
  overflow: hidden;
}

.video-bg iframe {
  pointer-events: none;
  filter: saturate(1.12) contrast(1.05);
}

.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.2) 40%, rgba(5, 5, 5, 0.65)),
    radial-gradient(circle at 50% 120%, rgba(5, 5, 5, 0.88), transparent 42%);
  z-index: 2;
  pointer-events: none;
}

.hero-video-overlay {
  z-index: 3;
}

.hero-video-content {
  z-index: 4;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .hero-video-container {
    min-height: 50vh;
  }

  .top-game-card:hover,
  .game-card:hover,
  .game-card-visual:hover,
  .company-card-item:hover,
  .launch-card:hover,
  .news-card:hover {
    transform: none;
  }
}

