body {
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 20px;
  color: white;
  background: linear-gradient(to bottom, black, #9b0d56);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

#softwareName {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 0.9rem;
  color: #fff;
  opacity: 0.7;
  font-weight: bold;
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

h1 img {
  height: 100px;
  margin-right: 15px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  padding: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
}

.legend-item span {
  color: #fff;
  font-size: 0.9rem;
}

.circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
}

.circle.grey   { background-color: #666; }
.circle.white  { background-color: #fff; }
.circle.green  { background-color: #00cc66; }
.circle.red    { background-color: #cc3333; }
.circle.purple { background-color: #9933cc; }

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-bottom: 20px;
}

.card {
  width: 250px;
  height: 450px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-in-out;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card:hover {
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.8);
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
}

.fullscreen.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-card {
  position: relative;
  width: 540px;
  height: 960px;
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.fullscreen-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  z-index: 1;
  display: block;
  margin: auto;
}

.fullscreen-card.holo-active {
  filter: brightness(1.1) contrast(1.05) saturate(1.1);
  box-shadow: 0 0 20px rgba(255,255,255,0.15), 0 0 40px rgba(255,255,255,0.05);
}

.fullscreen-card.holo-active[data-iniziato="1"] {
  /* Tag for metallic effect */
}

.fullscreen-card.holo-active::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 0, 150, 0.05) 0%,
    rgba(255, 255, 0, 0.1) 25%,
    rgba(0, 255, 255, 0.05) 50%,
    rgba(0, 128, 255, 0.1) 75%,
    rgba(255, 0, 255, 0.05) 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  background-position: calc(var(--mouse-x, 50%) * 1%) calc(var(--mouse-y, 50%) * 1%);
  background-size: 200% 200%;
  transition: background-position 0.2s ease;
  z-index: 2;
}

/* Estilo especial para INIZIATO 1 - efecto metálico */
.fullscreen-card[data-iniziato="1"].holo-active::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.3) 10%,
    rgba(255, 255, 255, 0.5) 15%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.15) 100%
  );
  background-size: 800% 800%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  filter: brightness(1.5) contrast(1.2);
  animation: metallicSweep 10s linear infinite;
  will-change: background-position;
}

/* Holograma completamente rojo */
.fullscreen-card.holo-blue::after {
   content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at center,
      rgba(0, 120, 255, 0.15) 0%,
      rgba(0, 100, 200, 0.1) 25%,
      rgba(0, 80, 160, 0.08) 50%,
      rgba(0, 60, 120, 0.05) 75%,
      rgba(0, 40, 80, 0.03) 100%
    );
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 
    calc(var(--mouse-x, 50%) * 1%) 
    calc(var(--mouse-y, 50%) * 1%);
  transition: background-position 0.2s ease;
  z-index: 2;
}

/* Contenedor de estrellas encima */
.fullscreen-card.holo-blue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  background-image:
    /* Estrellas grandes y brillantes */
    radial-gradient(circle at 10% 20%, rgba(0,120,255,0.6) 3px, transparent 4px),
    radial-gradient(circle at 80% 30%, rgba(0,150,255,0.5) 2.5px, transparent 4px),
    radial-gradient(circle at 40% 75%, rgba(0,100,255,0.6) 3px, transparent 4px),

    /* Estrellas medianas */
    radial-gradient(circle at 25% 10%, rgba(0,120,255,0.4) 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(0,120,255,0.3) 2px, transparent 3px),
    radial-gradient(circle at 50% 90%, rgba(0,100,255,0.4) 2px, transparent 3px),

    /* Estrellas pequeñas */
    radial-gradient(circle at 15% 85%, rgba(0,120,255,0.2) 1.5px, transparent 2px),
    radial-gradient(circle at 90% 20%, rgba(0,120,255,0.2) 1.2px, transparent 2px),
    radial-gradient(circle at 60% 10%, rgba(0,120,255,0.15) 1px, transparent 2px);
    
  background-repeat: repeat;
  background-size: 120px 120px;
  animation: sparkle-move 30s linear infinite;
}


/* Holograma completamente amarillo */
.fullscreen-card.holo-yellow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 240, 0, 0.15) 0%,
      rgba(230, 210, 0, 0.1) 25%,
      rgba(200, 180, 0, 0.08) 50%,
      rgba(170, 150, 0, 0.05) 75%,
      rgba(140, 120, 0, 0.03) 100%
    );
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 
    calc(var(--mouse-x, 50%) * 1%) 
    calc(var(--mouse-y, 50%) * 1%);
  transition: background-position 0.2s ease;
  z-index: 2;
}

/* Contenedor de estrellas encima en amarillo */
.fullscreen-card.holo-yellow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  background-image:
    /* Estrellas grandes y brillantes */
    radial-gradient(circle at 10% 20%, rgba(255,240,0,0.6) 3px, transparent 4px),
    radial-gradient(circle at 80% 30%, rgba(255,230,0,0.5) 2.5px, transparent 4px),
    radial-gradient(circle at 40% 75%, rgba(255,220,0,0.6) 3px, transparent 4px),

    /* Estrellas medianas */
    radial-gradient(circle at 25% 10%, rgba(255,240,0,0.4) 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,240,0,0.3) 2px, transparent 3px),
    radial-gradient(circle at 50% 90%, rgba(255,220,0,0.4) 2px, transparent 3px),

    /* Estrellas pequeñas */
    radial-gradient(circle at 15% 85%, rgba(255,240,0,0.2) 1.5px, transparent 2px),
    radial-gradient(circle at 90% 20%, rgba(255,240,0,0.2) 1.2px, transparent 2px),
    radial-gradient(circle at 60% 10%, rgba(255,240,0,0.15) 1px, transparent 2px);
    
  background-repeat: repeat;
  background-size: 120px 120px;
  animation: sparkle-move 30s linear infinite;
}

@keyframes sparkle-move {
  0%   { background-position: 0 0; }
  100% { background-position: 120px 120px; }
}

@keyframes metallicSweep {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}
/* --- Estilo base para cartas del Torneo Nacional --- */
.national-holo {
  border: 3px solid gold;
  box-shadow: 0 0 10px 4px rgba(255, 223, 0, 0.6); /* Menos expansión */
  animation: pulseGlow 2s infinite;
}

/* --- Estilo al abrir en pantalla completa --- */
.holo-national {
  position: relative;
  border: 4px solid gold;
  box-shadow: 0 0 10px 4px rgba(255, 223, 0, 0.6); /* Menos expansión */
  animation: pulseGlow 2s infinite, holoShimmer 4s ease-in-out infinite;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.08) 0%,
    rgba(255, 215, 0, 0.12) 50%,
    rgba(255, 215, 0, 0.08) 100%
  );
  background-size: 150% 150%;
  background-repeat: no-repeat;
  background-position: center;
  transition: box-shadow 0.3s ease;
}

/* --- Animación de resplandor pulsante --- */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px 3px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 25px 7px rgba(255, 215, 0, 1);
  }
  100% {
    box-shadow: 0 0 15px 3px rgba(255, 215, 0, 0.5);
  }
}

/* --- Efecto de luz dorada sutil que se mantiene cerca --- */
@keyframes holoShimmer {
  0%, 100% {
    background-position: 45% 45%;
  }
  50% {
    background-position: 55% 55%;
  }
}