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

body {
    font-family: 'Fredoka', cursive;
    background: linear-gradient(135deg, #87CEEB 0%, #E0F6FF 50%, #FFE4E1 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

/* Clouds Animation */
.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.cloud:before {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud:after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud1 {
    width: 80px;
    height: 30px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cloud1:before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud1:after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

.cloud2 {
    width: 100px;
    height: 40px;
    top: 15%;
    right: 15%;
    animation-delay: 2s;
}

.cloud2:before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud2:after {
    width: 70px;
    height: 50px;
    top: -20px;
    right: 15px;
}

.cloud3 {
    width: 60px;
    height: 25px;
    top: 25%;
    left: 60%;
    animation-delay: 4s;
}

.cloud3:before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 8px;
}

.cloud3:after {
    width: 45px;
    height: 35px;
    top: -12px;
    right: 8px;
}

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

/* Main Content */
.main-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 600px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
}

.main-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.title {
    font-size: 2.5rem;
    color: #4A90E2;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.3rem;
    color: #7B68EE;
    margin-bottom: 30px;
    font-weight: 400;
}

.construction-icon {
    font-size: 3rem;
    margin: 20px 0;
    animation: rotate 3s linear infinite;
}

.message {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-item {
    position: absolute;
    font-size: 2rem;
    animation: floatAround 8s ease-in-out infinite;
    opacity: 0.7;
}

.floating-item:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-item:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-item:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.floating-item:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 4.5s;
}

.floating-item:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 6s;
}

@keyframes floatAround {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-30px) rotate(90deg); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-15px) rotate(180deg); 
        opacity: 0.8;
    }
    75% { 
        transform: translateY(-25px) rotate(270deg); 
        opacity: 0.9;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ground */
.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 0;
}

.grass {
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #90EE90, #98FB98);
    position: relative;
}

.grass:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        #90EE90 0px,
        #90EE90 2px,
        #98FB98 2px,
        #98FB98 4px
    );
    border-radius: 50% 50% 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .message {
        font-size: 1rem;
    }
    
    .main-content {
        margin: 20px;
        padding: 30px 15px;
    }
    
    .main-icon {
        font-size: 3rem;
    }
    
    .construction-icon {
        font-size: 2.5rem;
    }
    
    .floating-item {
        font-size: 1.5rem;
    }
}

/* Fun Buttons */
.fun-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.fun-btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FFEAA7);
    background-size: 300% 300%;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    font-family: 'Fredoka', cursive;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: gradientShift 3s ease infinite;
    position: relative;
    overflow: hidden;
}

.fun-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.fun-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.fun-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.fun-btn:hover::before {
    left: 100%;
}

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

/* Click Counter */
.click-counter {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 2px dashed #4A90E2;
}

.click-counter p {
    margin-bottom: 10px;
    color: #4A90E2;
    font-weight: 500;
}

.counter-display {
    font-size: 1.2rem;
    color: #7B68EE;
    font-weight: 600;
}

/* Rainbow Mode */
.rainbow-mode {
    animation: rainbow 2s linear infinite !important;
}

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

/* Dance Party Mode */
.dance-party .floating-item {
    animation: dance 0.5s ease-in-out infinite alternate !important;
}

.dance-party .main-icon {
    animation: dance 0.3s ease-in-out infinite alternate !important;
}

.dance-party .construction-icon {
    animation: dance 0.4s ease-in-out infinite alternate !important;
}

@keyframes dance {
    0% { transform: rotate(-5deg) scale(1); }
    100% { transform: rotate(5deg) scale(1.1); }
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    animation: confetti-fall 3s linear forwards;
    z-index: 1000;
}

.confetti:nth-child(odd) {
    background: #4ecdc4;
    animation-delay: 0.1s;
}

.confetti:nth-child(3n) {
    background: #45b7d1;
    animation-delay: 0.2s;
}

.confetti:nth-child(4n) {
    background: #96ceb4;
    animation-delay: 0.3s;
}

.confetti:nth-child(5n) {
    background: #ffeaa7;
    animation-delay: 0.4s;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Bounce Effect for Main Content */
.bounce-effect {
    animation: bigBounce 0.6s ease-out;
}

@keyframes bigBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Floating Hearts */
.heart {
    position: fixed;
    font-size: 1.5rem;
    color: #ff6b6b;
    pointer-events: none;
    z-index: 1000;
    animation: heartFloat 2s ease-out forwards;
}

@keyframes heartFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* Enhanced Floating Items */
.floating-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-item:hover {
    transform: scale(1.3) rotate(360deg);
    filter: brightness(1.3);
}

/* Mini Games */
.mini-games {
    margin: 30px 0;
    text-align: center;
}

.mini-games h3 {
    color: #4A90E2;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.game-btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    font-family: 'Fredoka', cursive;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.game-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Achievements */
.achievements {
    margin: 30px 0;
    text-align: center;
}

.achievements h3 {
    color: #4A90E2;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.achievement-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.achievement {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement.unlocked {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
    border-color: #FFD700;
    animation: achievementUnlock 0.6s ease-out;
}

.achievement.locked {
    filter: grayscale(50%);
    opacity: 0.6;
}

@keyframes achievementUnlock {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Particle Canvas */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Game Area */
.game-area {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-score, .game-timer {
    font-size: 1.2rem;
    color: #4A90E2;
    margin: 10px 0;
    font-weight: 600;
}

/* Fireworks */
.firework {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: firework-explode 1.5s ease-out forwards;
    z-index: 2000;
    pointer-events: none;
    box-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
}

/* Fireworks Dark Overlay */
.fireworks-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    pointer-events: none;
    animation: fireworks-fade 0.5s ease-in-out;
}

@keyframes fireworks-fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes firework-explode {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 1;
    }
    25% {
        transform: scale(1.5) translate(var(--end-x, 0), var(--end-y, -20px));
        opacity: 1;
    }
    50% {
        transform: scale(2) translate(var(--end-x, 0), var(--end-y, -40px));
        opacity: 0.8;
    }
    75% {
        transform: scale(1.5) translate(var(--end-x, 0), var(--end-y, -60px));
        opacity: 0.4;
    }
    100% {
        transform: scale(0) translate(var(--end-x, 0), var(--end-y, -80px));
        opacity: 0;
    }
}

/* Bubbles */
.bubble {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: bubble-float 4s ease-out forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes bubble-float {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Matrix Rain */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.9);
}

.matrix-column {
    position: absolute;
    top: -100%;
    color: #00ff00;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
    animation: matrix-fall 3s linear infinite;
}

@keyframes matrix-fall {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Disco Mode */
.disco-mode {
    animation: disco-lights 0.5s ease-in-out infinite alternate;
}

@keyframes disco-lights {
    0% { filter: hue-rotate(0deg) brightness(1.2); }
    100% { filter: hue-rotate(180deg) brightness(1.5); }
}

/* Snow */
.snowflake {
    position: fixed;
    color: white;
    font-size: 1rem;
    animation: snow-fall 5s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes snow-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Catching Game Elements */
.catch-target {
    position: fixed;
    font-size: 2rem;
    cursor: pointer;
    animation: target-bounce 2s ease-in-out infinite;
    z-index: 1000;
}

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

/* Memory Game */
.memory-card {
    width: 60px;
    height: 60px;
    background: #4A90E2;
    border-radius: 10px;
    margin: 5px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 60px;
    font-size: 1.5rem;
    color: white;
}

.memory-card.flipped {
    background: #FF6B6B;
    transform: rotateY(180deg);
}

.memory-card.matched {
    background: #4ECDC4;
    transform: scale(0.9);
}

/* Speed Clicker */
.speed-target {
    position: fixed;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FF6B6B, #FF8E8E);
    border-radius: 50%;
    cursor: pointer;
    animation: speed-pulse 1s ease-in-out infinite;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

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

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 25px 10px;
    }
    
    .fun-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .fun-btn {
        width: 200px;
        margin: 5px 0;
    }
    
    .achievement-list {
        flex-direction: column;
        align-items: center;
    }
    
    .achievement {
        width: 200px;
    }
}
