* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Background overlay */
.background-overlay {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 30% 20%, rgba(139, 0, 0, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(220, 20, 60, 0.2) 0%, transparent 60%),
        linear-gradient(135deg, #000 0%, #1a0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.background-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.background-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    letter-spacing: 2px;
}

.background-features {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    opacity: 0.4;
}

.feature-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    color: #fff;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Top app bar */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(1rem, 3vw, 1.5rem);
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.top-bar-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.bitcoin-logo-small {
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    background: linear-gradient(45deg, #f7931a, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
}

.app-title {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Main modal popup */
.modal-popup {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: 
        linear-gradient(135deg, #8b0000 0%, #660000 40%, #330000 80%, #000 100%);
    border-radius: 2rem;
    padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 2.5rem);
    box-shadow: 
        0 30px 60px rgba(255, 0, 0, 0.4),
        0 0 0 1px rgba(255, 69, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    z-index: 100;
    position: relative;
    margin-top: clamp(3rem, 8vw, 5rem);
    animation: modalGlow 3s ease-in-out infinite;
}

/* Close button */
.close-button {
    position: absolute;
    top: clamp(1rem, 3vw, 1.5rem);
    right: clamp(1rem, 3vw, 1.5rem);
    width: clamp(28px, 7vw, 35px);
    height: clamp(28px, 7vw, 35px);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.close-button:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.close-icon {
    color: #fff;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    font-weight: 300;
}

/* Trophy icon */
.trophy-icon {
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    background: 
        linear-gradient(45deg, #ffd700, #ff8c00, #ff4500);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 35px rgba(255, 215, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: trophyPulse 2s ease-in-out infinite;
}

.trophy-inner {
    font-size: clamp(2.5rem, 8vw, 4rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Congratulations section */
.congratulations-section {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.congratulations-title, .won-text {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.won-text {
    font-size: clamp(1.2rem, 4.5vw, 2rem);
    animation: wonGlow 2.5s ease-in-out infinite;
}

/* Money display large */
.money-display-large {
    margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
}

.amount-large {
    font-size: clamp(3.5rem, 12vw, 6rem);
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    animation: amountShine 2s ease-in-out infinite;
    line-height: 0.8;
    letter-spacing: -0.02em;
}

.bitcoin-text-large {
    font-size: clamp(1.2rem, 5vw, 2rem);
    font-weight: 700;
    color: #f7931a;
    text-shadow: 0 0 15px rgba(247, 147, 26, 0.5);
    margin-top: -0.3rem;
}

/* Gratis large */
.gratis-large {
    font-size: clamp(1.4rem, 5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    margin-bottom: clamp(1.2rem, 3vw, 2rem);
    animation: gratisFlash 1.5s ease-in-out infinite;
    letter-spacing: 2px;
}

/* Description text */
.description-text {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: #fff;
    line-height: 1.4;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* CTA Container */
.cta-container {
    margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.cta-button {
    width: 100%;
    background: #dc143c;
    background: linear-gradient(45deg, #dc143c, #b22222, #8b0000);
    color: #fff;
    border: none;
    padding: clamp(1rem, 4vw, 1.5rem) clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 1.5rem;
    font-size: clamp(1rem, 4vw, 1.3rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 
        0 10px 30px rgba(220, 20, 60, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    animation: ctaPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(220, 20, 60, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.button-text {
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.button-arrow {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Disclaimer */
.disclaimer-text {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 500;
}

/* Lucky counter */
.lucky-counter {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.lucky-number {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    animation: numberChange 3s ease-in-out infinite;
}

/* Animation keyframes */
@keyframes modalGlow {
    0%, 100% { 
        box-shadow: 
            0 30px 60px rgba(255, 0, 0, 0.4),
            0 0 0 1px rgba(255, 69, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 35px 70px rgba(255, 0, 0, 0.5),
            0 0 0 2px rgba(255, 69, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

@keyframes trophyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wonGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes amountShine {
    0%, 100% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
    50% { text-shadow: 0 0 40px rgba(255, 215, 0, 0.9); }
}

@keyframes gratisFlash {
    0%, 100% { 
        color: #fff;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    50% { 
        color: #ffd700;
        text-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
    }
}

@keyframes ctaPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 10px 30px rgba(220, 20, 60, 0.4),
            0 0 0 2px rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 
            0 12px 35px rgba(220, 20, 60, 0.5),
            0 0 0 3px rgba(255, 255, 255, 0.15);
    }
}

@keyframes numberChange {
    0%, 85% { transform: scale(1) rotate(0deg); }
    5% { transform: scale(1.15) rotate(2deg); }
    15% { transform: scale(0.95) rotate(-2deg); }
    25% { transform: scale(1.05) rotate(1deg); }
    35% { transform: scale(1.02) rotate(-1deg); }
    45% { transform: scale(1.1) rotate(2deg); }
    55% { transform: scale(0.92) rotate(-2deg); }
    65% { transform: scale(1.03) rotate(1deg); }
    75% { transform: scale(0.98) rotate(-1deg); }
}

/* Responsive adjustments */
@media (max-width: 320px) {
    .modal-popup {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .trophy-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .trophy-inner {
        font-size: 2rem;
    }
}

@media (max-height: 600px) {
    .modal-popup {
        margin-top: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .background-text {
        display: none;
    }
    
    .trophy-icon {
        margin-bottom: 1rem;
    }
    
    .description-text {
        margin-bottom: 1.5rem;
    }
}