/* ============================================
   REWARD SCREEN - Pantalla de Recompensas
   ============================================ */

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

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

.reward-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.95), rgba(30, 10, 40, 0.95));
    backdrop-filter: blur(10px);
}

.reward-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3),
                inset 0 0 30px rgba(255, 215, 0, 0.1);
    animation: rewardPulse 2s ease-in-out infinite;
}

@keyframes rewardPulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3),
                    inset 0 0 30px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 0 20px 80px rgba(255, 215, 0, 0.5),
                    inset 0 0 40px rgba(255, 215, 0, 0.2);
    }
}

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

.reward-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                 0 0 40px rgba(255, 215, 0, 0.4);
    margin: 0 0 10px 0;
    animation: titleShine 2s ease-in-out infinite;
}

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

.reward-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Breakdown */
.reward-breakdown {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
}

.reward-label {
    opacity: 0.8;
}

.reward-value {
    font-weight: bold;
    color: #4ade80;
    font-size: 18px;
}

.reward-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 15px 0;
}

.reward-total {
    font-size: 20px;
    padding: 15px 0 10px 0;
}

.reward-total .reward-label {
    font-weight: bold;
    color: #ffd700;
    opacity: 1;
}

.reward-total .reward-value {
    font-size: 28px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.5s ease;
}

/* Multiplier Badge */
.reward-multiplier {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(79, 70, 229, 0.2));
    border: 2px solid rgba(147, 51, 234, 0.5);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.multiplier-badge {
    background: linear-gradient(135deg, #9333ea, #4f46e5);
    color: white;
    font-size: 28px;
    font-weight: bold;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
    animation: rotatePulse 3s ease-in-out infinite;
}

@keyframes rotatePulse {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.05); }
    75% { transform: rotate(5deg) scale(1.05); }
}

.multiplier-text {
    flex: 1;
}

.multiplier-text strong {
    font-size: 18px;
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.multiplier-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Buttons */
.reward-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reward-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;
    position: relative;
    overflow: hidden;
}

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

.reward-btn-ad {
    background: linear-gradient(135deg, #9333ea, #4f46e5);
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.reward-btn-ad:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.6);
}

.reward-btn-ad:active:not(:disabled) {
    transform: translateY(0);
}

.reward-btn-ad .btn-multiplier {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffd700;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.6);
    animation: bounce 1s ease-in-out infinite;
}

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

.reward-btn-continue {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.reward-btn-continue:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.reward-btn-continue:active {
    transform: scale(0.98);
}

/* Ad Watched Badge */
.reward-ad-watched {
    display: none;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-watched-icon {
    font-size: 40px;
    animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.ad-watched-text {
    flex: 1;
    color: white;
    font-size: 14px;
}

.ad-watched-text strong {
    font-size: 18px;
    color: #4ade80;
    display: block;
    margin-top: 5px;
}

/* Confetti Animation */
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

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

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

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

    .reward-item {
        font-size: 14px;
    }

    .reward-value {
        font-size: 16px;
    }

    .reward-total {
        font-size: 18px;
    }

    .reward-total .reward-value {
        font-size: 24px;
    }

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

    .multiplier-text strong {
        font-size: 16px;
    }

    .multiplier-text p {
        font-size: 13px;
    }
}

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

    .reward-title {
        font-size: 24px;
    }

    .reward-breakdown {
        padding: 15px;
    }

    .reward-item {
        padding: 6px 0;
    }

    .reward-multiplier {
        padding: 10px;
    }

    .reward-btn {
        padding: 12px 18px;
    }
}

