:root {
  --main-blue: #4a6fa5;
  --platinum: #d1ccc2;
  --gold: #FFD700;
  --hover-scale: 1.05;
}

body {
  background: linear-gradient(160deg, #1a3147 0%, #343f4b 100%);
  font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
  color: white;
  padding: 0 20px 40px;
  margin: 0;
}

.header-container {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 20px 20px;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--platinum);
}

h1 span {
  color: var(--gold);
  font-size: 1.8rem;
  display: block;
  margin-top: 0.5rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* fuerza las 4 columnas */
  gap: 2rem;
  align-items: start;
  justify-items: center;
  margin: 0 auto;
  width: 1200px; /* ancho fijo como en PC */
  transform: scale(0.9); /* puedes ajustar 0.8, 0.7, etc si quieres que quepa mejor */
  transform-origin: top center;
}


.player-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.3rem;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  transition: transform 0.3s;
  text-align: center;
}

.player-column:hover {
  transform: translateY(-5px);
}

.player-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00ff32;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1.5rem;
  margin-top: -16px;
  width: 83%;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
}

/* Estilos para cajas normales (platinos) */
.game-box {
  width: 240px;
  height: 130px;
  border: 3px solid var(--platinum);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative; /* necesario para pseudo‐elementos */
}

.game-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  position: relative;
  z-index: 0;
}

/* Estilos para 100% (sin platino) */
.game-box-100 {
  width: 240px;
  height: 130px;
  border: 3px solid var(--gold);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.game-box-100::after {
  content: "*";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--gold);
  text-shadow: 1px 1px 2px black;
  padding: 2px 5px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 3px;
  z-index: 2;
}

.game-box-100 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s;
}

/* Zoom on hover */
.game-box:hover {
  transform: scale(var(--hover-scale));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.game-box:hover img {
  transform: scale(1.3);
}
.game-box-100:hover img {
  transform: scale(1.3);
}

/* Sombreado gradual */
.game-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(15, 10, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}
.game-box:hover::before {
  opacity: 1;
}

/* ——— NUEVO: banda negra + texto al hacer hover ——— */
.game-box::after, .game-box-100::after {
  content: attr(data-rarity) " – " attr(data-date);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  padding: 5px 0;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.game-box:hover::after {
  opacity: 1;
}

/* Badge fijo “100%” */
.game-box-100::before {
  content: "*";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--gold);
  text-shadow: 1px 1px 2px black;
  padding: 2px 5px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 3px;
  z-index: 2;
}

/* Banda negra con rarity + date */
.game-box-100::after {
  /* ↓ altura fija ↓ */
  height: 24px;
  line-height: 24px;
}
/* Mostrar banda al hacer hover */
.game-box-100:hover::after {
  opacity: 1;
}

.button-container {
  text-align: center;
  margin-top: 3rem;
}

.stats-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #FFD700;
  color: #1a3147;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.2s, background-color 0.3s;
}

.stats-button:hover {
  transform: scale(1.07);
  background-color: #f7c600;
  color: #000;
}

