@charset "UTF-8";

/* ==========================================================
   PARADICE - ESTILOS OFICIALES MINAS GLACIALES
   ========================================================== */

body {
  background-color: #040814;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 0, 127, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(147, 51, 234, 0.15) 0%, transparent 50%);
  background-attachment: fixed;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Baldosa de Hielo Paradice 3D */
.ice-tile {
  aspect-ratio: 1 / 1;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ice-tile:active {
  transform: scale(0.94);
}

.ice-tile-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ice-tile.revealed .ice-tile-inner {
  transform: rotateY(180deg);
}

.ice-tile-front, .ice-tile-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cara Frontal: Cubo de Hielo Frío Translúcido */
.ice-tile-front {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(2, 132, 199, 0.12) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(56, 189, 248, 0.25);
}

.ice-tile-front:hover {
  border-color: rgba(0, 240, 255, 0.85);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.35);
  transform: translateY(-2px);
}

/* Cara Trasera */
.ice-tile-back {
  transform: rotateY(180deg);
}

/* Destapado Seguro (Granizado) */
.ice-tile-safe {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.85) 0%, rgba(4, 120, 87, 0.9) 100%);
  border: 2px solid #34d399;
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.6), inset 0 0 15px rgba(52, 211, 153, 0.4);
}

/* Destapado Mina (Hielo Roto / Derretido) */
.ice-tile-mine {
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.9) 0%, rgba(225, 29, 72, 0.95) 100%);
  border: 2px solid #f43f5e;
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.8), inset 0 0 15px rgba(244, 63, 94, 0.5);
}

/* Peldaños de la Escalera de Promociones */
.promo-ladder-item {
  transition: all 0.25s ease;
}
.promo-ladder-item.active-tier {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.25) 0%, rgba(245, 158, 11, 0.35) 100%);
  border-color: #facc15;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
  transform: scale(1.02);
}
.promo-ladder-item.passed-tier {
  opacity: 0.6;
  border-color: rgba(52, 211, 153, 0.5);
}

/* Animación del Letrero de Cambio de Premio */
@keyframes prizePulseGlow {
  0% {
    transform: scale(0.98);
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
  }
  50% {
    transform: scale(1.02);
    border-color: #facc15;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.8), inset 0 0 15px rgba(250, 204, 21, 0.25);
  }
  100% {
    transform: scale(1);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  }
}

.prize-updated-animation {
  animation: prizePulseGlow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
