* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
    color: #fff;
    overflow: hidden;
    height: 100vh;
    touch-action: manipulation;
}

.container {
    max-width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.header {
    text-align: center;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #00ff88;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.header h1 {
    font-size: 28px;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    letter-spacing: 3px;
}

.subtitle {
    font-size: 12px;
    color: #00ffff;
    margin-top: 5px;
    letter-spacing: 2px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    gap: 10px;
}

.stat-box {
    flex: 1;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid #00ff88;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.stat-label {
    font-size: 10px;
    color: #00ffff;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #00ff88;
}

#gameCanvas {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #00ff88;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
}

.move-left, .move-right {
    flex: 1;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
    user-select: none;
    transition: all 0.1s;
}

.move-left:active, .move-right:active {
    background: rgba(0, 255, 255, 0.3);
    transform: scale(0.95);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.arrow {
    font-size: 30px;
    color: #00ffff;
    margin-bottom: 5px;
}

.shoot-btn {
    flex: 1;
    background: rgba(255, 0, 68, 0.2);
    border: 3px solid #ff0044;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.1s;
}

.shoot-btn:active {
    background: rgba(255, 0, 68, 0.4);
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.8);
}

.shoot-icon {
    font-size: 30px;
    margin-bottom: 5px;
}

.control-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #00ffff;
}

.shoot-btn .control-label {
    color: #ff0044;
}

.game-over, .start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.game-over {
    display: none;
}

.game-over h2, .start-screen h2 {
    font-size: 36px;
    color: #ff0044;
    text-shadow: 0 0 20px rgba(255, 0, 68, 0.8);
    margin-bottom: 20px;
}

.start-screen h2 {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.final-score {
    font-size: 24px;
    color: #00ffff;
    margin-bottom: 30px;
}

.final-score span {
    color: #00ff88;
    font-size: 36px;
}

.mission-brief {
    font-size: 16px;
    color: #00ffff;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
}

.btn-restart, .btn-start {
    background: #00ff88;
    color: #0a0e27;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transition: all 0.2s;
}

.btn-restart:active, .btn-start:active {
    transform: scale(0.95);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
}

@media (max-width: 400px) {
    .header h1 {
        font-size: 24px;
    }
    
    .control-label {
        font-size: 10px;
    }
    
    .arrow, .shoot-icon {
        font-size: 25px;
    }
}
