body, html {
    margin: 0;
    padding: 0;
    background-color: #000022;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
}

header.game-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 20px;
}

.back-link {
    color: #00aaff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.back-link:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.game-title {
    font-size: 24px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #0088ff;
    margin: 0;
}

#scoreBoard {
    text-align: center;
    font-size: 18px;
    padding: 5px;
    color: #00ffff;
}

#gameContainer {
    position: relative;
    margin: 0 auto;
    border: 2px solid #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

#gameCanvas {
    display: block;
}

#message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    display: none;
    text-align: center;
}

footer {
    text-align: center;
    padding: 10px;
    color: #335;
    font-size: 12px;
}

#mobileControls {
    display: none;
    flex-direction: column;
    padding: 10px;
    background-color: rgba(0, 0, 51, 0.8);
    width: 100%;
    box-sizing: border-box;
}

.controlBtn {
    background-color: rgba(0, 170, 255, 0.6);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
    transition: background-color 0.3s;
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0;
    height: 60px;
}

#shootBtn {
    background-color: rgba(255, 0, 0, 0.6);
}

#upBtn, #downBtn, #shootBtn {
    width: 100%;
}

#horizontalSlider {
    width: 100%;
    margin: 10px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 25px;
    background: rgba(0, 170, 255, 0.3);
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    border-radius: 12px;
}

#horizontalSlider:hover {
    opacity: 1;
}

#horizontalSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 35px;
    height: 35px;
    background: rgba(0, 170, 255, 0.8);
    cursor: pointer;
    border-radius: 50%;
}

#horizontalSlider::-moz-range-thumb {
    width: 35px;
    height: 35px;
    background: rgba(0, 170, 255, 0.8);
    cursor: pointer;
    border-radius: 50%;
}
