/* Aplicamos la fuente Inter a toda la página */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent; /* Quita el flash azul al tocar botones en Android */
}

/* --- UTILIDADES MÓVILES (Safe Areas para iPhone) --- */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}
.mb-safe {
    margin-bottom: env(safe-area-inset-bottom);
}

/* Estilo Glassmorphism */
.glassmorphism-nav {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

/* --- ANIMACIONES --- */
@keyframes fadeQuestion {
    0%, 25% { opacity: 1; transform: translateY(0); }
    33.33%, 58.33% { opacity: 0; transform: translateY(-10px); }
    66.66%, 91.66% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeQuestion2 {
    0%, 25% { opacity: 0; transform: translateY(10px); }
    33.33%, 58.33% { opacity: 1; transform: translateY(0); }
    66.66%, 91.66% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; transform: translateY(10px); }
}

@keyframes fadeQuestion3 {
    0%, 58.33% { opacity: 0; transform: translateY(10px); }
    66.66%, 91.66% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.question-container {
    position: relative;
    height: 160px; 
    overflow: hidden;
}

.answer-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.question-item {
    position: absolute;
    width: 100%;
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    opacity: 0;
}

.question-item-1 { animation-name: fadeQuestion; }
.question-item-2 { animation-name: fadeQuestion2; }
.question-item-3 { animation-name: fadeQuestion3; }

/* --- SUPERVIVENCIA & GAMEPLAY --- */
.timer-bar-container {
    width: 100%;
    height: 6px;
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 1rem;
}

.timer-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
    width: 100%;
    transform-origin: left;
    transition: width 1s linear;
}

.heart-pulse { animation: heartBeat 1.5s infinite; }
@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.shake-anim { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.success-pop { animation: popGreen 0.4s ease-out; }
@keyframes popGreen {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Scrollbar personalizado delgado para móviles */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }