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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-header h1 {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 255, 135, 0.3);
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 135, 0.3);
}

.score-item .label {
    font-size: 0.9rem;
    color: #60efff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-item .value {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff87;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(0, 255, 135, 0.2);
    border: 2px solid rgba(0, 255, 135, 0.3);
}

#gameCanvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: #1a1a2e;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.game-overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 40px;
}

.overlay-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #60efff;
}

.start-button {
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    color: #0f0c29;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(0, 255, 135, 0.4);
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 135, 0.6);
}

.start-button:active {
    transform: translateY(-1px);
}

.controls {
    margin-top: 30px;
    text-align: center;
}

.control-info {
    margin-bottom: 20px;
}

.control-info p {
    font-size: 1rem;
    color: #60efff;
    margin: 5px 0;
}

.mobile-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.control-row {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 135, 0.2);
    border: 2px solid #00ff87;
    border-radius: 10px;
    color: #00ff87;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(0, 255, 135, 0.4);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
    background: rgba(0, 255, 135, 0.6);
}

@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2rem;
    }

    .score-item {
        padding: 10px 20px;
    }

    .score-item .value {
        font-size: 1.5rem;
    }

    .overlay-content h2 {
        font-size: 2rem;
    }

    .overlay-content p {
        font-size: 1rem;
    }

    .mobile-controls {
        display: flex;
    }

    .control-info p:first-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.5rem;
    }

    .score-board {
        gap: 20px;
    }

    .game-container {
        padding: 15px;
    }
}