/* ============================================
   REVIVE SCREEN - Pantalla de Continuar
   ============================================ */

.revive-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002; /* Más alto que reward screen */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.revive-screen-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.revive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(220, 20, 60, 0.95));
    backdrop-filter: blur(10px);
    animation: overlayPulse 2s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(220, 20, 60, 0.95));
    }
    50% {
        background: linear-gradient(135deg, rgba(139, 0, 0, 0.98), rgba(220, 20, 60, 0.98));
    }
}

.revive-content {
    position: relative;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d0a0a 100%);
    border: 3px solid #ff4444;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(255, 68, 68, 0.5),
                inset 0 0 30px rgba(255, 68, 68, 0.1);
    animation: contentShake 0.5s ease-in-out;
}

@keyframes contentShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Countdown Circle */
.revive-countdown-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.countdown-progress {
    fill: none;
    stroke: #ff4444;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
    filter: drop-shadow(0 0 10px #ff4444);
}

.countdown-progress.countdown-critical {
    stroke: #ff0000;
    filter: drop-shadow(0 0 20px #ff0000);
    animation: criticalPulse 0.5s ease-in-out infinite;
}

@keyframes criticalPulse {
    0%, 100% {
        stroke-width: 4;
    }
    50% {
        stroke-width: 6;
    }
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
    transition: all 0.3s ease;
}

.countdown-number.countdown-critical {
    color: #ff0000;
    font-size: 56px;
    animation: numberBounce 0.5s ease-in-out infinite;
}

@keyframes numberBounce {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Header */
.revive-header {
    text-align: center;
    margin-bottom: 25px;
}

.revive-title {
    font-size: 36px;
    font-weight: bold;
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.8),
                 0 0 40px rgba(255, 68, 68, 0.4);
    margin: 0 0 10px 0;
    animation: titleFlash 1.5s ease-in-out infinite;
}

@keyframes titleFlash {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 68, 68, 0.8), 0 0 40px rgba(255, 68, 68, 0.4);
    }
    50% {
        opacity: 0.8;
        text-shadow: 0 0 30px rgba(255, 68, 68, 1), 0 0 60px rgba(255, 68, 68, 0.6);
    }
}

.revive-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* Benefits */
.revive-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 15px;
}

.revive-benefit {
    text-align: center;
    animation: benefitFloat 2s ease-in-out infinite;
}

.revive-benefit:nth-child(2) {
    animation-delay: 0.2s;
}

.revive-benefit:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes benefitFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(255, 68, 68, 0.3));
}

.benefit-text {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
}

/* Buttons */
.revive-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.revive-btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.revive-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.revive-btn-primary {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
    animation: primaryPulse 1.5s ease-in-out infinite;
}

@keyframes primaryPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 68, 68, 0.6);
        transform: translateY(-2px);
    }
}

.revive-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff5555, #dd0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.6);
}

.revive-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.revive-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
}

.revive-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.revive-btn-secondary:active {
    transform: scale(0.98);
}

/* Note */
.revive-note {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Responsive */
@media (max-width: 480px) {
    .revive-content {
        padding: 20px;
        max-width: 95%;
    }

    .revive-countdown-circle {
        width: 100px;
        height: 100px;
    }

    .countdown-number {
        font-size: 40px;
    }

    .countdown-number.countdown-critical {
        font-size: 48px;
    }

    .revive-title {
        font-size: 28px;
    }

    .revive-subtitle {
        font-size: 16px;
    }

    .revive-benefits {
        gap: 10px;
        padding: 15px;
    }

    .benefit-icon {
        font-size: 32px;
    }

    .benefit-text {
        font-size: 11px;
    }

    .revive-btn {
        padding: 14px 20px;
        font-size: 16px;
    }

    .revive-btn-secondary {
        font-size: 14px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .revive-content {
        max-height: 90vh;
        overflow-y: auto;
        padding: 15px;
    }

    .revive-countdown-circle {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .revive-title {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .revive-subtitle {
        font-size: 14px;
    }

    .revive-benefits {
        padding: 10px;
        margin-bottom: 15px;
    }

    .benefit-icon {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .benefit-text {
        font-size: 10px;
    }

    .revive-btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .revive-note {
        font-size: 10px;
    }
}

/* Animations for entrance/exit */
@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideOutScale {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
}

