@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --bg-main: #050505;       
    --bg-card: #0d1117;       
    --bg-inner: #161b22;      
    --feedback-color: transparent; 
    --feedback-opacity: 0;
}

body {
    background-color: var(--bg-main) !important;
    color: #f0f6fc;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    opacity: 0;
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.page-exit { opacity: 0 !important; transform: scale(1.1) !important; filter: blur(20px) brightness(1.5) !important; }

.game-container { position: relative; z-index: 1; padding: 10px; width: 100%; max-width: 600px; display: flex; justify-content: center; }

.game-container::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ef4444, #10b981);
    background-size: 400% 400%; z-index: -2; border-radius: 40px;
    filter: blur(25px); animation: glowMove 8s ease infinite; opacity: 0.7;
}

.game-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--feedback-color);
    z-index: -1;
    border-radius: inherit;
    filter: blur(30px);
    opacity: var(--feedback-opacity);
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

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

.game-card {
    background-color: var(--bg-card); border-radius: 35px; padding: 45px;
    width: 100%; border: 1px solid #21262d;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8); text-align: center;
    display: flex; flex-direction: column; align-items: center;
}

.title { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 48px; font-weight: 800; margin-bottom: 10px; margin-top: 0px; letter-spacing: -2px; text-shadow: 0 0 10px rgba(255,255,255,0.1); }
#subtitle-text { font-family: 'M PLUS Rounded 1c', sans-serif; color: #3b82f6; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 30px; font-weight: 800; text-shadow: 0 0 10px rgba(59, 130, 246, 0.4); }

#back-btn { margin-top: 30px; padding: 12px 25px; background: transparent; color: #64748b; border: 1px solid #334155; border-radius: 50px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; }
#back-btn:hover { color: white; border-color: #3b82f6; background: rgba(59,130,246,0.05); }

.choice-btn, .level-btn, .menu-btn {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background-color: #111827; 
    color: white; 
    border: 2px solid var(--theme-color, #3b82f6); 
    border-radius: 16px; 
    padding: 20px 10px;
    font-size: 18px; 
    font-weight: 800; 
    cursor: pointer; 
    width: 100%; 
    margin-bottom: 15px; 
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--theme-glow, rgba(59,130,246,0.2)), inset 0 0 10px var(--theme-glow, rgba(59,130,246,0.2));
}

.choice-btn:hover, .level-btn:hover, .menu-btn:hover { 
    background-color: var(--theme-color, #3b82f6); 
    color: #050505; 
    box-shadow: 0 0 25px var(--theme-color, #3b82f6);
    transform: translateY(-3px);
}

.choice-btn:active, .level-btn:active, .menu-btn:active { 
    transform: translateY(2px); 
    filter: brightness(0.8);
}

.btn-green  { --theme-color: #10b981; --theme-glow: rgba(16, 185, 129, 0.2); }
.btn-blue   { --theme-color: #3b82f6; --theme-glow: rgba(59, 130, 246, 0.2); }
.btn-cyan   { --theme-color: #06b6d4; --theme-glow: rgba(6, 182, 212, 0.2); }
.btn-yellow { --theme-color: #eab308; --theme-glow: rgba(234, 179, 8, 0.2); }
.btn-orange { --theme-color: #f97316; --theme-glow: rgba(249, 115, 22, 0.2); }
.btn-pink   { --theme-color: #ec4899; --theme-glow: rgba(236, 72, 153, 0.2); }
.btn-purple { --theme-color: #a855f7; --theme-glow: rgba(168, 85, 247, 0.2); }
.btn-red    { --theme-color: #ef4444; --theme-glow: rgba(239, 68, 68, 0.2); }
.btn-elite  { --theme-color: #ffffff; --theme-glow: rgba(255, 255, 255, 0.2); }


.index-btn-group {
    display: flex;
    gap: 15px;
    width: 100%;
}

.index-btn-group .menu-btn {
    flex: 1;
    margin-bottom: 0;
}

.solid-btn {
    background-color: var(--theme-color) !important;
    color: #050505 !important;
    box-shadow: 0 0 20px var(--theme-glow) !important;
}

.solid-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 30px var(--theme-color) !important;
}

body.fade-in {
    opacity: 1;
}