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

body {
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
}

#gameCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    background-color: #1a1a1a;
}

#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
}

.coming-soon-title {
    position: absolute;
    top: 3vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-align: center;
    background: linear-gradient(135deg, #00ff88 0%, #00cc88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6));
    }
}

.score-container {
    position: absolute;
    top: 3vh;
    right: 3vw;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.score {
    display: flex;
    gap: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
}

.score .label {
    color: #888;
}

.score span:last-child {
    color: #00ff88;
    font-weight: 700;
    min-width: 3ch;
    text-align: right;
}

.instructions {
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-in;
}

.instructions p {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: #ccc;
    margin: 0.3rem 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 3rem 4rem;
    border-radius: 20px;
    border: 2px solid #ff0066;
    box-shadow: 0 0 50px rgba(255, 0, 102, 0.5);
    animation: slideIn 0.3s ease-out;
    pointer-events: auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.game-over h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #ff0066;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.game-over .final-score {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #00ff88;
    margin: 1rem 0;
    font-weight: 700;
}

.game-over .restart-text {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #ccc;
    margin-top: 1.5rem;
}

.hidden {
    display: none !important;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .coming-soon-title {
        top: 2vh;
        font-size: clamp(1.5rem, 8vw, 3rem);
    }

    .score-container {
        top: 2vh;
        right: 2vw;
        padding: 0.8rem 1rem;
    }

    .instructions {
        bottom: 2vh;
        padding: 0.8rem 1.5rem;
    }

    .game-over {
        padding: 2rem 2.5rem;
        width: 90vw;
        max-width: 400px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .coming-soon-title {
        font-size: clamp(1.2rem, 4vh, 2rem);
        top: 1vh;
    }

    .score-container {
        top: 1vh;
        right: 1vw;
        padding: 0.5rem 1rem;
        font-size: clamp(0.7rem, 1.5vh, 1rem);
    }

    .instructions {
        display: none;
    }

    .game-over {
        padding: 1.5rem 2rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .instructions {
        animation: fadeIn 1s ease-in, pulse 3s ease-in-out 2s infinite;
    }

    @keyframes pulse {
        0%, 100% {
            opacity: 1;
        }
        50% {
            opacity: 0.6;
        }
    }
}
