:root {
    --bg-day: linear-gradient(135deg, #74ebd5 0%, #acb6e5 100%);
    --bg-night: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --bg-rain: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-green: #39ff14;
    --neon-yellow: #ffff00;
    
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    --glow-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
}

body.day {
    background: var(--bg-day);
    --neon-glow: var(--neon-blue);
    --accent: #ff9a9e;
}

body.night {
    background: var(--bg-night);
    --neon-glow: var(--neon-pink);
    --accent: #a18cd1;
    color: #fff;
}

body.rain {
    background: var(--bg-rain);
    --neon-glow: var(--neon-green);
    --accent: #84fab0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', 'Quicksand', sans-serif;
    transition: all 0.5s ease-in-out;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Weather Elements */
#weather-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    filter: blur(20px);
    opacity: 0.4;
    animation: drift 30s infinite linear;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite alternate;
}

.drop {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    width: 2px;
    height: 15px;
    animation: fall var(--duration) infinite linear;
}

/* Header & Controls */
header {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.weather-switcher {
    display: flex;
    gap: 1rem;
    background: var(--glass-bg);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.weather-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.weather-btn:hover {
    transform: scale(1.2);
    box-shadow: var(--glow-shadow);
}

.weather-btn.active {
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    text-align: center;
    padding-bottom: 3rem;
}

.mascot-container {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px var(--neon-glow));
    animation: float 4s infinite ease-in-out;
}

.mascot-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 0 20px var(--neon-glow);
    margin-bottom: 2rem;
}

/* Game Menu */
.game-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.game-card {
    width: 280px;
    height: 380px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(15px);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
}

.game-card:hover {
    transform: translateY(-15px) rotate(2deg);
    border-color: var(--neon-glow);
    box-shadow: 0 0 40px var(--neon-glow);
}

.game-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.game-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.game-tag {
    background: var(--neon-glow);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Animations */
@keyframes drift {
    from { transform: translateX(-100vw); }
    to { transform: translateX(100vw); }
}

@keyframes twinkle {
    from { opacity: 0.2; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.1); }
}

@keyframes fall {
    to { transform: translateY(100vh); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-glow);
    border-radius: 10px;
}
