:root {
    --pink-hot: #ff4d94;
    --pink-soft: #ffb7ce;
    --card-size: 160px;
    --gap-x: 60px; /* Espacio horizontal */
    --gap-y: 70px; /* Espacio vertical */
    --font-main: 'Unkempt', cursive;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Unkempt', cursive;
    overflow: hidden;
}

/* --- NAVEGACIÓN --- */
.nav-container {
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    pointer-events: none; /* No estorba al clickear cosas abajo */
    box-sizing: border-box;
}

.arrow-btn {
    pointer-events: auto; /* Activamos clicks solo en las flechas */
    transition: transform 0.3s ease;
}

.arrow-btn:hover {
    transform: scale(1.2);
}

.arrow-btn img {
    width: 110px; /* Ajusta según tu imagen */
    height: auto;
}

/* Contenedor principal que ocupa toda la pantalla */
.game-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('https://i.pinimg.com/736x/1c/d0/18/1cd018c71ae59f92d61118cb53ced85b.jpg');
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;
}

/* Título fijo arriba */
.group-title {
    position: absolute;
    top: 40px;
    font-size: 4rem;
    color: white;
    -webkit-text-stroke: 2px var(--pink-hot);
    margin: 0;
    z-index: 20;
}

/* EL TRUCO PARA EL CENTRADO: */
.stage-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Evita que las flechas se vayan muy lejos en pantallas gigantes */
}

/* Cuadrícula de Idols */
.selection-grid {
    display: flex;
    flex-direction: column;
    gap: var(--gap-y);
    z-index: 10;
    margin-top: 100px;
}

.idol-row {
    display: flex;
    justify-content: center; /* Esto centra los 2 respecto a los 3 */
    gap: var(--gap-x);
    flex-wrap: nowrap;
}

/* Tarjeta individual */
.idol-card {
    position: relative;
    width: var(--card-size);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-box {
    width: var(--card-size);
    height: var(--card-size);
    border-radius: 25px;
    border: 6px solid white;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s ease;
}

/* Info y Nombre */
.info {
    position: absolute;
    width: 100%;
    bottom: -40px;
    text-align: center;
    opacity: 0;
    color: var(--pink-hot);
    font-weight: bold;
    transition: 0.3s;
}

/* EFECTOS HOVER */
.idol-card:hover {
    transform: scale(1.2);
}

.idol-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.idol-card:hover .info {
    opacity: 1;
    bottom: -35px;
}

/* FLECHAS POSICIONADAS A LOS LADOS */
.nav-arrow {
    position: absolute;
    background: none;
    border: none;
    font-size: 5rem;
    color: var(--pink-soft);
    cursor: pointer;
    -webkit-text-stroke: 2px white;
    transition: 0.3s;
    z-index: 30;
    top: 50%;
    transform: translateY(-50%);
}

.arrow-left { left: 0; }
.arrow-right { right: 0; }

.nav-arrow:hover {
    color: var(--pink-hot);
    transform: translateY(-50%) scale(1.2);
}

.heart { color: red; margin-left: 5px; }

html, body {
    /* Reemplaza el link por el de tu imagen en Catbox */
    cursor: url('https://cdn.cursors-4u.net/css-previews/cute-red-cloud-aa5d6654-css.webp'), auto;
}

/* Para que también cambie cuando pasas sobre links o botones */
a, nav, nav-arrow, arrow, stage-container, game-wrapper {
    cursor: url('https://cdn.cursors-4u.net/css-previews/cute-red-spinning-flower-195c4662-css.webp'), pointer;
}

/* --- AJUSTE PARA CELULAR --- */
@media (max-width: 600px) {
    :root {
        --card-size: 85px;  /* Reduce el tamaño de las fotos a casi la mitad */
        --gap-x: 15px;      /* Menos espacio entre fotos */
        --gap-y: 45px;      /* Menos espacio entre filas */
    }

    .group-title {
        font-size: 1.8rem;  /* Título más pequeño */
        top: 250px;
    }

    .selection-grid {
        margin-top: 20px;   /* Sube un poco la cuadrícula */
    }

    .photo-box {
        border-width: 3px;  /* Borde más fino para que no se vea tosco */
        border-radius: 15px;
    }
    
    .info {
      font-size:10px;
      top: 92px;
    }

    .nav-arrow {
        font-size: 2.5rem;  /* Flechas laterales más pequeñas */
    }

    .arrow-btn img {
        width: 50px;       /* Flechas de las esquinas superiores más pequeñas */
    }
}