body {
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #141e30);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    user-select: none;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
}

#menu-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px);
}

.menu-glass-panel {
    background: rgba(20, 25, 40, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    width: 90%;
    animation: menuEntrance 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes menuEntrance {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-header h1 {
    font-size: 5rem;
    margin: 0;
    font-weight: 900;
    background: linear-gradient(135deg, #00ff88 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.4));
    letter-spacing: -2px;
    text-transform: uppercase;
    animation: titleFloat 3s ease-in-out infinite alternate;
}

@keyframes titleFloat {
    from { transform: translateY(0); filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.4)); }
    to { transform: translateY(-10px); filter: drop-shadow(0 0 40px rgba(0, 255, 136, 0.8)); }
}

.menu-header p {
    color: #b0bec5;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 10px;
    font-weight: 500;
}

.btn-play-large {
    background: linear-gradient(90deg, #00ff88, #00b8ff);
    border: none;
    padding: 20px 80px;
    font-size: 2rem;
    font-weight: 800;
    color: #050a15;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-play-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-play-large:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.6);
}

.btn-play-large:hover::after {
    left: 100%;
    transition: 0.7s ease-in-out;
}

.menu-footer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.btn-menu-item {
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.btn-shop { background: linear-gradient(45deg, #ffb300, #ffcc00); }
.btn-slayer { background: linear-gradient(45deg, #b71c1c, #ff5252); }
.btn-rebirth-menu { background: linear-gradient(45deg, #d500f9, #aa00ff); }
.btn-guide { background: linear-gradient(45deg, #9c27b0, #e040fb); }
.btn-settings { background: linear-gradient(45deg, #607d8b, #78909c); }

.btn-menu-item:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 2;
}

.btn-menu-item:active {
    transform: translateY(1px);
    filter: brightness(0.9);
}

@media (max-width: 768px) {
    .menu-glass-panel {
        padding: 30px 20px;
        width: 95%;
        gap: 20px;
    }

    .menu-header h1 {
        font-size: 3rem;
    }

    .btn-play-large {
        padding: 15px 50px;
        font-size: 1.5rem;
    }

    .btn-menu-item {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}