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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #ffffff;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    background: #000000;
    border: 3px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10;
}

.screen.hidden {
    display: none;
}

h1 {
    font-size: 4rem;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 255, 255, 1);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #aaaaaa;
    margin-bottom: 2rem;
}

.btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    background: linear-gradient(135deg, #00ffff 0%, #00aaff 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.6);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #666666 0%, #444444 100%);
    box-shadow: 0 5px 15px rgba(100, 100, 100, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(100, 100, 100, 0.6);
}

.controls {
    margin-top: 2rem;
    text-align: center;
    background: rgba(0, 100, 150, 0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.controls h3 {
    color: #00ffff;
    margin-bottom: 1rem;
}

.controls p {
    margin: 0.5rem 0;
    color: #cccccc;
}

#game-ui {
    background: transparent;
    pointer-events: none;
}

.hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
}

.hud-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #00ffff;
}

.label {
    color: #00ffff;
    margin-right: 10px;
}

.result-info {
    font-size: 2rem;
    margin: 2rem 0;
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
}

@media (max-width: 800px) {
    #game-container {
        max-width: 100%;
        height: 100vh;
        border: none;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .btn {
        font-size: 1.2rem;
        padding: 12px 30px;
    }
    
    .hud {
        font-size: 1rem;
    }
    
    .hud-item {
        padding: 8px 15px;
    }
}
