/* =========================
   BURRET 2026 - STYLE FINAL
========================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #120b0a;
    color: #fff;
    text-align: center;
    overflow-x: hidden;
}

/* bloquea scroll cuando lightbox activo */
body.lightbox-open {
    overflow: hidden;
    touch-action: none;
}

/* =========================
   CONTENEDOR GENERAL
========================= */

#app {
    padding: 20px;
}

/* =========================
   TIPOGRAFÍA
========================= */

h1 {
    font-size: 40px;
    margin-top: 30px;
}

h2 {
    margin-top: 20px;
}

/* =========================
   BOTONES
========================= */

button {
    background: #c49a3a;
    color: black;
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    margin: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #e0b84a;
}

/* =========================
   BOTELLA
========================= */

#botella img {
    width: 140px;
    transition: transform 3s ease;
}

/* =========================
   RETO
========================= */

#reto {
    font-size: 24px;
    margin: 20px;
    color: #e0b84a;
}

/* =========================
   CÁMARA
========================= */

video {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin-top: 20px;
}

/* =========================
   GALERÍA
========================= */

#galeria {
    margin-top: 40px;
}

#fotos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 10px;
}

.foto {
    position: relative;
}

.foto img,
.foto video {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #c49a3a;
    object-fit: cover;
}

/* =========================
   INICIO
========================= */

#inicio {
    margin-top: 80px;
}

#inicio p {
    color: #aaa;
}

#btnFoto {
    display: block;
    margin: 20px auto;
    text-align: center;
}

#juego {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================
   LIGHTBOX FULLSCREEN
========================= */

#lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(0,0,0,0.98);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 999999;
}

/* contenedor interno */
#viewer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* contenido */
#viewerContent {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* media fullscreen */
#viewerContent img,
#viewerContent video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* botón cerrar */
#closeBtn {
    position: absolute;
    top: 20px;
    right: 20px;

    z-index: 1000000;

    font-size: 22px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
}

#ranking {

    margin-top: 30px;

}

#rankingList {

    max-width: 500px;

    margin: auto;

}

.ranking-item {

    display: flex;

    justify-content: space-between;

    padding: 12px;

    margin: 6px 0;

    background: #1c1412;

    border-radius: 10px;

    border: 1px solid #c49a3a;

}

.ranking-item:nth-child(1) {

    border: 2px solid gold;

}

.ranking-item:nth-child(2) {

    border: 2px solid silver;

}

.ranking-item:nth-child(3) {

    border: 2px solid #cd7f32;

}