* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    background: #000;
    color: #fff;
    position: fixed;
    width: 100%;
    height: 100%;
}

html {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    visibility: hidden;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.section.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.container {
    text-align: center;
    z-index: 10;
    position: relative;
    width: 100%;
    max-width: 90vw;
    padding: 0 1rem;
}

/* Landing Page Styles */
#landing {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ffb3b3, #ffc4c4);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hearts-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hearts-bg::before {
    content: '💖 💕 💗 ❤️ 💓 💘 💝 💖';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 120%;
    font-size: 2rem;
    opacity: 0.1;
    animation: floatingHearts 20s linear infinite;
    white-space: nowrap;
    word-spacing: 100px;
    line-height: 150px;
}

@keyframes floatingHearts {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: countdownReveal 1s ease forwards;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes countdownReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.countdown-text {
    margin-bottom: 3rem;
}

.countdown-line {
    font-size: clamp(1rem, 4vw, 1.6rem);
    font-weight: 300;
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease forwards;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.enter-btn {
    position: relative;
    background: linear-gradient(45deg, #ff4757, #ff3838);
    border: none;
    padding: 15px 35px;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 600;
    color: white;
    border-radius: 50px;
    cursor: default;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.4);
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    animation: buttonReveal 1s ease forwards 4.3s, pulse 2s infinite 5.3s;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    pointer-events: none;
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.6);
}

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

@keyframes buttonReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        cursor: pointer;
    }
}

.sparkle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="20">✨</text></svg>') repeat;
    opacity: 0;
    animation: sparkleEffect 3s ease infinite;
}

@keyframes sparkleEffect {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 0.7; transform: scale(1); }
}

/* Slot Machine Styles */
#slotMachine {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: casinoGradient 6s ease infinite;
}

@keyframes casinoGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.casino-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255, 215, 0, 0.1) 2px,
        rgba(255, 215, 0, 0.1) 4px
    );
}

@keyframes casinoStripes {
    0% { transform: translateX(0); }
    100% { transform: translateX(4px); }
}

.casino-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    from { text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700; }
    to { text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700, 0 0 40px #ffd700; }
}

.casino-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #ccc;
    margin-bottom: 2rem;
}

.slot-machine {
    background: linear-gradient(145deg, #2c2c54, #1a1a2e);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 3px solid #ffd700;
    position: relative;
    overflow: hidden;
    max-width: min(500px, 90vw);
    margin: 0 auto;
}

.slot-machine::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.slot-display {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    background: #000;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #333;
}

.reel {
    width: clamp(50px, 15vw, 80px);
    height: clamp(75px, 20vw, 120px);
    background: linear-gradient(180deg, #333, #111);
    border: 2px solid #555;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.symbol {
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 6vw, 3rem);
    position: absolute;
    top: 10%;
    transition: all 0.1s ease;
}

.reel.spinning .symbol {
    animation: reelSpin 0.1s linear infinite;
}

@keyframes reelSpin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-80px); }
}

.spin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border: none;
    padding: 12px 25px;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: bold;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
}

.spin-btn:disabled {
    background: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.credits {
    color: #ffd700;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 600;
}

.gift-reveal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(145deg, #fff, #f0f0f0);
    color: #333;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    text-align: center;
    max-width: min(400px, 90vw);
    width: 90vw;
    max-height: 80vh;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid #ffd700;
    z-index: 1000;
    overflow-y: auto;
}

.gift-reveal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gift-reveal h3 {
    color: #ff6b6b;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin-bottom: 1rem;
    font-family: 'Dancing Script', cursive;
}

.gift-content {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

.spin-again-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: 600;
    transition: all 0.3s ease;
}

.spin-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.3);
}

.back-btn {
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 50;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mobile-Specific Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .main-title {
        margin-bottom: 1.5rem;
    }
    
    .countdown-text {
        margin-bottom: 2rem;
    }
    
    .enter-btn {
        padding: 12px 25px;
        margin-bottom: 1rem;
    }
    
    .slot-machine {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .slot-display {
        gap: 5px;
        padding: 10px;
    }
    
    .casino-subtitle {
        margin-bottom: 1.5rem;
    }
}

/* Animation delays */
.word[data-delay="0"] { animation-delay: 0s; }
.word[data-delay="500"] { animation-delay: 0.5s; }
.word[data-delay="1000"] { animation-delay: 1s; }
.word[data-delay="1500"] { animation-delay: 1.5s; }

.countdown-line[data-delay="2500"] { animation-delay: 2.5s; }
.countdown-line[data-delay="3500"] { animation-delay: 3.5s; }
.countdown-line[data-delay="4500"] { animation-delay: 4.5s; } 