@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,700;1,900&display=swap');

:root {
    --color-purple: #7928ca;
    --color-pink: #ff0080;
    --color-cyan: #00f0ff;
    --color-yellow: #ffe600;
    --color-green: #00ff66;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: #06020e;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.font-anton {
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.04em;
}

/* App Mobile Viewport Container */
#app-viewport {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 460px;
    max-height: 940px;
    position: relative;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(121, 40, 202, 0.4);
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    #app-viewport {
        border-radius: 36px;
        border: 4px solid rgba(255, 255, 255, 0.15);
        height: 94vh;
        margin: auto;
    }
}

/* Screen Stage & Slides */
#screen-stage {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.screen-view {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
    transform: translateY(100%);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.screen-view.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) translateX(0);
    z-index: 10;
}

.screen-view.prev {
    transform: translateY(-100%);
    opacity: 0;
}

.screen-view.exit-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Hotspots & Clickable Overlays */
.hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.15s ease, background-color 0.15s ease;
    border-radius: 12px;
}

.hotspot:active {
    transform: scale(0.97);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Countdown Overlay on Screen 2 (Posicionado en el hueco del medio) */
.countdown-container {
    position: absolute;
    top: 29.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 86%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 25;
}

.countdown-box {
    background: rgba(13, 6, 31, 0.9);
    border: 2px solid #ffe600;
    border-radius: 14px;
    padding: 8px 4px;
    flex: 1;
    max-width: 72px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.45), inset 0 0 10px rgba(255, 230, 0, 0.2);
    backdrop-filter: blur(10px);
}

.countdown-number {
    font-family: 'Anton', sans-serif;
    font-size: 26px;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.countdown-label {
    font-family: 'Anton', sans-serif;
    font-size: 10px;
    color: #ffe600;
    letter-spacing: 0.08em;
    margin-top: 2px;
    text-transform: uppercase;
}

/* Voting Overlay on Screen 65 */
.voting-container {
    position: absolute;
    top: 23%;
    left: 14%;
    width: 72%;
    height: 48%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 25;
    overflow-y: auto;
    padding-right: 2px;
}

.voting-container::-webkit-scrollbar {
    width: 3px;
}
.voting-container::-webkit-scrollbar-thumb {
    background: rgba(255, 230, 0, 0.5);
    border-radius: 3px;
}

.vote-option-btn {
    width: 100%;
    height: 38px;
    background: rgba(200, 255, 0, 0.7);
    border-radius: 8px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-family: 'Anton', sans-serif;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.vote-option-btn:hover, .vote-option-btn:active {
    background: rgba(230, 255, 50, 0.95);
    transform: scale(1.02);
}

.vote-option-btn.selected {
    background: #ffe600 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.8) !important;
    transform: scale(1.03);
}

.vote-submit-hotspot {
    position: absolute;
    top: 73.2%;
    left: 20%;
    width: 60%;
    height: 4.5%;
    border-radius: 20px;
    cursor: pointer;
    z-index: 26;
}

/* Lightbox Modal */
#lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

#lightbox-image {
    max-width: 95%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(121, 40, 202, 0.5);
}

/* Confetti Canvas */
#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
}

/* Admin floating trigger */
#admin-secret-trigger {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    z-index: 50;
    opacity: 0.05;
    cursor: pointer;
}
#admin-secret-trigger:hover {
    opacity: 0.8;
}

/* ==================== ANIMACIONES SUTILES DE LOGO Y LÍDERES ==================== */
/* 1. Animación sutil de respiración/escala para Logo Inicial NDT (Pantalla 1) */
@keyframes logoBreathing {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.045);
    }
}

/* Logo NDT en pantalla 1: el logo ya viene integrado en 1.png.
   Se anima el background-size de #screen-1 para un zoom sutil sobre toda la portada.
   El div .animated-screen1-zoom es solo un placeholder transparente sin efecto visual propio. */

@keyframes screen1BgZoom {
    0%, 100% { background-size: 100% 100%; }
    50%       { background-size: 104% 104%; }
}

#screen-1 {
    animation: screen1BgZoom 3.5s ease-in-out infinite;
    background-position: center center;
}

/* overlay transparente requerido por getScreenOverlays — sin efecto visual propio */
.animated-screen1-zoom {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* 2. Animación sutil de zoom/respiración para Jonathan y Wendy (Índice) */
@keyframes jonaWenBreathing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.035);
    }
}

.animated-jona-wen {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 63%;
    pointer-events: none;
    transform-origin: bottom right;
    animation: jonaWenBreathing 3.4s ease-in-out infinite;
    z-index: 5;
    will-change: transform;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.5));
}

/* ==================== BOTÓN VOLVER AL MENÚ (Galerias) ==================== */
.btn-volver-menu {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(121, 40, 202, 0.82);
    color: #ffe600;
    font-family: 'Anton', sans-serif;
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 7px 14px 7px 10px;
    border-radius: 20px;
    border: 2px solid rgba(255, 230, 0, 0.6);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    transition: transform 0.15s ease, background 0.15s ease;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}

.btn-volver-menu:active {
    transform: scale(0.94);
    background: rgba(121, 40, 202, 1);
}

/* ==================== BOTÓN LOGO YOUTUBE (Galería Stream) ==================== */
.yt-logo-btn {
    position: absolute;
    bottom: calc(8% + env(safe-area-inset-bottom, 0px));
    right: 6%;
    z-index: 25;
    cursor: pointer;
    pointer-events: auto;
    /* Área táctil mínima recomendada iOS: 44x44px */
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, background 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.yt-logo-btn svg {
    display: block;
    width: 90px;
    height: 20px;
}

.yt-logo-btn:active {
    transform: scale(0.92);
    background: rgba(0, 0, 0, 0.65);
}


/* Pantalla 58 — área táctil del mapa de la nueva pantalla de ubicación */
.location-map-hotspot {
    top: 36.5%;
    left: 22%;
    width: 56%;
    height: 34%;
    display: block;
    z-index: 25;
    background: transparent;
    text-decoration: none;
}
