* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Screen Management */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* Intro Screen */
#intro-screen {
    background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 50%, #fdbb2d 100%);
    position: relative;
    overflow: hidden;
}

.intro-content {
    text-align: center;
    z-index: 10;
    color: white;
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    max-width: 700px;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 0 40px rgba(255,255,255,0.3);
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 0 40px rgba(255,255,255,0.3); }
    50% { text-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 60px rgba(255,255,255,0.5); }
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.feature {
    background: rgba(255,255,255,0.1);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.2);
}

.main-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.5);
    transition: all 0.3s ease;
}

.main-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.7);
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced Particles Background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, transparent 70%);
    animation: float 25s ease-in-out infinite;
    filter: blur(40px);
}

.particles::before {
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.particles::after {
    bottom: -10%;
    right: -10%;
    animation-delay: 12.5s;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: translate(80px, -60px) scale(1.1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50px, 50px) scale(0.9);
        opacity: 0.7;
    }
    75% { 
        transform: translate(60px, 80px) scale(1.05);
        opacity: 0.9;
    }
}

/* Menu Screen */
#menu-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.menu-content {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    max-width: 450px;
    width: 90%;
}

.menu-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.menu-btn:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.menu-btn:hover:not(:disabled) {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.menu-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(0.98);
}

.menu-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.menu-btn.secondary {
    background: linear-gradient(135deg, #a8a8a8 0%, #7a7a7a 100%);
}

.btn-icon {
    font-size: 1.5rem;
    margin-bottom: 3px;
}

.btn-text {
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Confirmation Dialog */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog.active {
    display: flex;
}

.dialog-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.dialog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.dialog-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #333;
}

.dialog-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.dialog-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dialog-btn.confirm {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.dialog-btn.cancel {
    background: linear-gradient(135deg, #a8a8a8 0%, #7a7a7a 100%);
    color: white;
}

.dialog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .feature {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .intro-content {
        padding: 25px 30px;
        max-width: 90%;
    }
    
    .menu-content {
        max-width: 90%;
        padding: 25px 20px;
    }
    
    .menu-title {
        font-size: 1.5rem;
    }
    
    .main-btn {
        font-size: 1.1rem;
        padding: 12px 30px;
    }
    
    .btn-icon {
        font-size: 1.3rem;
    }
    
    .btn-text {
        font-size: 1rem;
    }
}
