
:root {
  --bg-darkest: #05080a;
  --bg-dark: #0a1012;
  --bg-panel: #101a1c;
  --bg-panel-alt: #14201f;
  --border-metal: #2b3a3c;
  --border-metal-light: #3f5254;

  --green-neon: #3ef2a3;
  --green-dim: #1f6b52;
  --green-glow: rgba(62, 242, 163, 0.35);

  --gray-metal: #8a9698;
  --gray-metal-light: #c3ccce;

  --text-light: #e7f0ef;
  --text-muted: #9fb0ae;

  --danger: #ff6b5e;

  --font-heading: 'Rajdhani', 'Segoe UI', Arial, sans-serif;
  --font-hud: 'Chakra Petch', 'Rajdhani', monospace;
  --font-body: 'Segoe UI', Arial, sans-serif;

  --radius: 4px;
  --transition-fast: 0.2s ease;
  --hero-fade: 1.6s;

  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  background-image:
    linear-gradient(180deg, rgba(10, 16, 18, 0.97), rgba(5, 8, 10, 1)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0px,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 3px
    );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

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

a:hover,
a:focus {
  color: var(--text-light);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading), var(--font-body);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-light);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(5, 8, 10, 0.85) 0%, rgba(5, 8, 10, 0.45) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(62, 242, 163, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.hud-tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--green-dim) 40%, transparent);
  opacity: 0.6;
}

.hud-tick--left { left: 1.25rem; }
.hud-tick--right { right: 1.25rem; }

@media (max-width: 820px) {
  .hud-tick { display: none; }
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-light);
  text-transform: uppercase;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background-color: var(--green-neon);
  box-shadow: 0 0 10px var(--green-glow);
}

.logo span {
  color: var(--green-neon);
  text-shadow: 0 0 8px var(--green-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-metal-light);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background-color: var(--green-neon);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-metal-light);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--green-neon);
  border-bottom-color: var(--green-dim);
}

.site-nav a.active {
  color: var(--green-neon);
  border-bottom-color: var(--green-neon);
}

.hero-fullscreen {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border-metal);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-darkest);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
  transition: opacity var(--hero-fade) ease, transform 7s linear;
}

.hero-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(62, 242, 163, 0.05) 0px,
    rgba(62, 242, 163, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 10, 0.35) 0%, rgba(5, 8, 10, 0.55) 45%, rgba(5, 8, 10, 0.96) 100%),
    linear-gradient(90deg, rgba(5, 8, 10, 0.75) 0%, rgba(5, 8, 10, 0.05) 60%);
}

.hero-hud {
  position: absolute;
  inset: 1.5rem;
  z-index: 1;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--green-neon);
  opacity: 0.55;
  filter: drop-shadow(0 0 6px var(--green-glow));
}

.hud-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hud-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hud-corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hud-corner--br { bottom: 0; right: 0; border-left: none; border-top: none; }

@media (max-width: 480px) {
  .hero-hud { inset: 0.9rem; }
  .hud-corner { width: 18px; height: 18px; }
}

.hero-slide-index {
  position: absolute;
  right: 2rem;
  bottom: 2.25rem;
  z-index: 1;
  display: flex;
  gap: 0.4rem;
}

.hero-slide-dot {
  width: 18px;
  height: 3px;
  background-color: rgba(159, 176, 174, 0.35);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-slide-dot.is-active {
  background-color: var(--green-neon);
  box-shadow: 0 0 8px var(--green-glow);
}

@media (max-width: 480px) {
  .hero-slide-index { display: none; }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 5.5rem;
  text-align: left;
  max-width: 640px;
}

.hero-eyebrow {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--green-neon);
  margin-bottom: 0.9rem;
  text-shadow: 0 0 10px var(--green-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--green-neon), transparent);
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px var(--green-glow), 0 4px 18px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  color: var(--gray-metal-light);
  max-width: 480px;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid var(--green-neon);
  border-radius: 12px;
  opacity: 0.7;
  z-index: 1;
}

.hero-scroll-cue::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background-color: var(--green-neon);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
  0% { opacity: 1; top: 6px; }
  60% { opacity: 0.2; top: 16px; }
  100% { opacity: 0; top: 16px; }
}

.page-header {
  padding: calc(var(--nav-height) + 3rem) 0 2rem;
  border-bottom: 1px solid var(--border-metal);
  background: var(--bg-dark);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-primary {
  background-color: var(--green-neon);
  color: var(--bg-darkest);
  box-shadow: 0 0 14px var(--green-glow);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--text-light);
  color: var(--bg-darkest);
}

.btn-secondary {
  background-color: transparent;
  color: var(--green-neon);
  border-color: var(--green-dim);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--green-dim);
  color: var(--text-light);
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}

main {
  flex: 1;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.section-alt {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-metal);
  border-bottom: 1px solid var(--border-metal);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  border-color: var(--green-neon);
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 22px rgba(62, 242, 163, 0.22);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-panel-alt);
  border-bottom: 1px solid var(--border-metal);
  overflow: hidden;
}

.card-image::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--green-neon);
  border-left: 2px solid var(--green-neon);
  opacity: 0.35;
  transition: opacity var(--transition-fast);
}

.card:hover .card-image::after {
  opacity: 0.9;
}

.card-index {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--font-hud);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--green-neon);
  background-color: rgba(5, 8, 10, 0.65);
  border: 1px solid var(--green-dim);
  padding: 0.1rem 0.45rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.card:hover .card-image img {
  transform: scale(1.08);
  filter: brightness(1.08) contrast(1.08);
}

.card-body {
  padding: 1.1rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.05rem;
  color: var(--green-neon);
}

.card-meta {
  font-size: 0.78rem;
  color: var(--gray-metal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-neon);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  padding: 0.15rem 0.5rem;
  margin-right: 0.35rem;
}

.spoiler-box {
  border-top: 1px dashed var(--border-metal-light);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.spoiler-content {
  filter: blur(5px);
  user-select: none;
  transition: filter var(--transition-fast);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.spoiler-content.is-revealed {
  filter: none;
  user-select: text;
}

.spoiler-toggle {
  margin-top: 0.6rem;
}

.stat-list {
  list-style: none;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-metal);
  padding: 0.3rem 0;
}

.stat-list li span:first-child {
  color: var(--gray-metal-light);
}

.notice {
  background-color: var(--bg-panel);
  border-left: 3px solid var(--green-neon);
  padding: 1rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.site-footer {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-metal);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  color: var(--gray-metal);
  font-size: 0.82rem;
  max-width: 560px;
}

.menu-strip {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0;
  background-color: var(--bg-darkest);
  border-top: 1px solid var(--border-metal);
  border-bottom: 1px solid var(--border-metal);
}

.menu-starfield {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 15%, rgba(62, 242, 163, 0.16), transparent 45%),
    radial-gradient(1px 1px at 12% 30%, var(--gray-metal-light), transparent 60%),
    radial-gradient(1px 1px at 24% 70%, var(--gray-metal-light), transparent 60%),
    radial-gradient(1px 1px at 40% 20%, var(--text-muted), transparent 60%),
    radial-gradient(1px 1px at 55% 55%, var(--gray-metal-light), transparent 60%),
    radial-gradient(1px 1px at 68% 12%, var(--text-muted), transparent 60%),
    radial-gradient(1px 1px at 78% 65%, var(--gray-metal-light), transparent 60%),
    radial-gradient(1px 1px at 92% 40%, var(--text-muted), transparent 60%),
    radial-gradient(1px 1px at 6% 80%, var(--gray-metal-light), transparent 60%);
  opacity: 0.7;
}

.menu-strip .container {
  position: relative;
  z-index: 1;
}

.menu-strip-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-neon);
  border: 1px solid var(--green-dim);
  background: linear-gradient(180deg, rgba(62, 242, 163, 0.14), rgba(62, 242, 163, 0.03));
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  box-shadow: 0 0 16px rgba(62, 242, 163, 0.18);
}

.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bg-darkest);
  background-color: var(--green-neon);
  border-radius: 50%;
}

.menu-strip-title {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  text-align: left;
}

.menu-strip-subtitle {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.game-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  counter-reset: none;
}

.game-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-entry:hover {
  border-color: var(--green-dim);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.game-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-metal);
  background-color: var(--bg-panel-alt);
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.game-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.game-heading h3 {
  font-size: 1.25rem;
  color: var(--green-neon);
}

.game-date {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  color: var(--text-light);
  border: 1px solid var(--border-metal-light);
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius);
}

.game-platform {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gray-metal);
  text-transform: uppercase;
}

.game-summary {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 68ch;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(8, 12, 14, 0.98);
    border-bottom: 1px solid var(--border-metal);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast);
  }

  .site-nav.is-open {
    max-height: 400px;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-metal);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .game-entry {
    grid-template-columns: 140px 1fr;
  }
}

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

  .game-cover {
    aspect-ratio: 16 / 9;
    max-width: 220px;
  }

  .menu-strip-title {
    text-align: center;
  }

  .menu-strip {
    text-align: center;
  }

  .hero-fullscreen {
    align-items: center;
  }

  .hero-content {
    text-align: center;
    padding-bottom: 3rem;
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 2.25rem 0;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }
}


/* =========================================
   PANTALLA DE CARGA UNSC / JOHN-117
   ========================================= */
#halo-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #132018 0%, #070b09 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#halo-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.halo-loader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 2rem;
  text-align: center;
}

.halo-loader-ring {
  position: absolute;
  top: 0.5rem;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  border: 2px solid rgba(125, 217, 87, 0.2);
  border-top-color: #7dd957;
  animation: haloSpin 1.1s linear infinite;
}

.halo-loader-helmet {
  width: 96px;
  height: 96px;
  margin-top: 0.95rem;
  filter: drop-shadow(0 0 14px rgba(125, 217, 87, 0.45));
  animation: haloPulse 1.6s ease-in-out infinite;
}

.halo-loader-title {
  font-family: var(--font-hud, 'Chakra Petch', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #7dd957;
  margin-top: 0.5rem;
}

.halo-loader-bar {
  width: 210px;
  height: 4px;
  background: rgba(125, 217, 87, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.halo-loader-bar span {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, #7dd957, #f5c95d);
  animation: haloLoadBar 1s ease-in-out infinite alternate;
}

.halo-loader-status {
  font-family: var(--font-hud, 'Chakra Petch', sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #9cb2a2;
}

@keyframes haloSpin {
  to { transform: rotate(360deg); }
}

@keyframes haloPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes haloLoadBar {
  from { transform: translateX(-20%); }
  to { transform: translateX(145%); }
}

/* =========================================
   RESPALDO PARA IMÁGENES FALTANTES
   ========================================= */
.img-fallback-box {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: linear-gradient(145deg, #101914 0%, #17261d 100%);
  border: 1px dashed rgba(125, 217, 87, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem;
  text-align: center;
}

.img-fallback-tag {
  font-family: var(--font-hud, 'Chakra Petch', sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #7dd957;
  opacity: 0.85;
}

.img-fallback-title {
  font-family: var(--font-hud, 'Chakra Petch', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #e6efe8;
}

/* =========================================
   ACTIVIDADES INTERACTIVAS
   ========================================= */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.activity-panel {
  background: var(--bg-panel, #111915);
  border: 1px solid var(--border-metal, #25362c);
  border-radius: var(--radius, 8px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-panel h3 {
  font-family: var(--font-hud, 'Chakra Petch', sans-serif);
  color: #7dd957;
  font-size: 1.2rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quiz-btn {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background: #17231c;
  color: #e6efe8;
  border: 1px solid #2b3f33;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
}

.quiz-btn:hover,
.quiz-btn:focus-visible {
  background: #1f3026;
  border-color: #7dd957;
}

.quiz-btn.is-correct {
  background: rgba(125, 217, 87, 0.2);
  border-color: #7dd957;
}

.quiz-btn.is-wrong {
  background: rgba(220, 76, 76, 0.2);
  border-color: #dc4c4c;
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.memory-card {
  aspect-ratio: 1;
  background: #17231c;
  border: 1px solid #2b3f33;
  border-radius: 6px;
  color: #7dd957;
  font-family: var(--font-hud, 'Chakra Petch', sans-serif);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  text-align: center;
  user-select: none;
  touch-action: manipulation;
}

.memory-card.is-flipped,
.memory-card.is-matched {
  background: rgba(125, 217, 87, 0.18);
  border-color: #7dd957;
  color: #ffffff;
}

.memory-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.target-arena {
  position: relative;
  height: 220px;
  background: radial-gradient(circle at center, #14221a 0%, #0a100d 100%);
  border: 1px solid #2b3f33;
  border-radius: 8px;
  overflow: hidden;
  touch-action: manipulation;
}

/* ==========================================================================
   KIRBY SHIMEJI MASCOT
   ========================================================================== */
.kirby-pet {
  position: fixed;
  bottom: 0;
  left: 40px;
  width: 72px;
  height: 72px;
  z-index: 9999;
  cursor: grab;
  user-select: none;
  touch-action: none;
  image-rendering: pixelated;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.kirby-pet.is-dragging {
  cursor: grabbing;
}

.target-dot {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #f5c95d 0%, #d49b27 65%, #7dd957 100%);
  border: 2px solid #ffffff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(245, 201, 93, 0.7);
  touch-action: manipulation;
}

.activity-status {
  font-family: var(--font-hud, 'Chakra Petch', sans-serif);
  font-size: 0.9rem;
  color: #b7c9bc;
}

.activities-section {
  padding-top: 6.5rem;
}
