/* Mobile WASD Controls */
#mobile-wasd-controls {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wasd-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: 12px;
    background: linear-gradient(90deg, #FFD700 0%, #fff700 100%);
    color: #222;
    border: 2px solid #FFD700;
    box-shadow: 0 0 8px #FFD700;
    font-family: 'Consolas', 'Courier New', monospace;
    margin: 0 4px;
    pointer-events: auto;
    z-index: 100000;
}
#mobile-wasd-controls {
    pointer-events: auto;
}
#cannon-controls {
    pointer-events: auto !important;
    z-index: 99999 !important;
}
button:hover {
    background: #FFD700 !important;
    color: #FFD700 !important;
    box-shadow: 0 0 16px 8px #FFD700, 0 0 32px 16px #FFD700;
    border-color: #FFD700;
    text-shadow: 0 0 16px #FFD700, 0 0 32px #FFD700, 0 0 8px #fff700;
}
body {
    margin: 0;
    background: #000;
    color: #FFD700;
    font-family: 'Consolas', 'Courier New', monospace;
    overflow: hidden;
}


/* Clean, non-duplicated button styles */
#startButton {
    position: fixed;
    left: 50%;
    bottom: 50%;
    transform: translateX(-50%);
    z-index: 10010;
    background: linear-gradient(90deg, #FFD700 0%, #fff700 100%);
    color: #222;
    border: 3px solid #FFD700;
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 20px 40px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 12px;
    text-shadow: none;
    box-shadow: none;
    outline: none;
    transition: all 0.3s;
}

#startButton:hover {
    background: #FFD700;
    color: #FFD700;
    box-shadow: 0 0 80px 40px #FFD700, 0 0 160px 80px #fff700;
    text-shadow: 0 0 64px #FFD700, 0 0 128px #fff700;
}

#startButton:active {
    background: #fff700;
    color: #FFD700;
    box-shadow: 0 0 160px 80px #FFD700, 0 0 320px 160px #fff700;
    text-shadow: 0 0 128px #FFD700, 0 0 256px #fff700;
}

#pauseMenu button, .input-row button {
    position: static;
    left: auto;
    transform: none;
    background: linear-gradient(90deg, #FFD700 0%, #fff700 100%);
    color: #222;
    border: 3px solid #FFD700;
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 12px 24px;
    font-size: 18px;
    min-width: 100px;
    cursor: pointer;
    border-radius: 12px;
    text-shadow: none;
    box-shadow: none;
    outline: none;
    transition: all 0.3s;
    margin: 12px 0;
    display: block;
}

#pauseMenu button:hover, .input-row button:hover {
    background: #FFD700;
    color: #FFD700;
    box-shadow: 0 0 80px 40px #FFD700, 0 0 160px 80px #fff700;
    text-shadow: 0 0 64px #FFD700, 0 0 128px #fff700;
}

#pauseMenu button:active, .input-row button:active {
    background: #fff700;
    color: #FFD700;
    box-shadow: 0 0 160px 80px #FFD700, 0 0 320px 160px #fff700;
    text-shadow: 0 0 128px #FFD700, 0 0 256px #fff700;
}

#gameCanvas {
    display: none;
    width: 100%;
    height: 100vh;
}

#instructions {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 26, 0, 0.8);
    color: #FFD700;
    padding: 15px;
    border: 1px solid #FFD700;
    border-radius: 6px;
    font-size: 14px;
    z-index: 5;
    max-width: 300px;
    font-family: 'Consolas', 'Courier New', monospace;
}

#instructions.hidden {
    display: none;
}

#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#spectatorIndicator {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 165, 0, 0.8);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1000;
}

/* WaterWorld6 Pause Menu Styles */
#pauseMenu {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10002;
}

.container {
    padding: 24px;
    display: flex;
    flex-direction: row;
    gap: 24px;
    border: 2px solid #FFD700;
    border-radius: 12px;
    background: rgba(0, 26, 0, 0.95);
    box-shadow: 0 0 20px #FFD700;
}

.main-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.side-panel {
    flex: 1;
    background: linear-gradient(135deg, #FFD700 0%, #8e44ad 33%, #3498db 66%, #00ff99 100%);
    border-left: 2px solid #FFD700;
    padding: 16px;
    min-width: 260px;
    max-width: 340px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 0 24px #FFD700 inset, 0 0 24px #8e44ad inset, 0 0 24px #3498db inset, 0 0 24px #00ff99 inset;
}

.status-bar {
    margin-bottom: 12px;
    font-size: 1.1em;
    background: linear-gradient(90deg, #FFD700 0%, #8e44ad 33%, #3498db 66%, #00ff99 100%);
    border: 1px solid #FFD700;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 0 16px #FFD700 inset, 0 0 16px #8e44ad inset, 0 0 16px #3498db inset, 0 0 16px #00ff99 inset;
}

#peerListDisplay {
    margin-bottom: 8px;
    font-size: 1em;
}

#chatMessages {
    background: #000;
    border: 1px solid #FFD700;
    height: 40vh;
    overflow-y: auto;
    padding: 10px;
    margin: 10px 0 0 0;
    font-size: 1em;
    white-space: pre-wrap;
    color: #FFD700;
    border-radius: 6px;
    box-shadow: 0 0 16px #FFD700 inset;
}

.input-row {
    display: flex;
    gap: 16px;
    margin: 24px 0 0 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.output-panel {
    background: #000;
    border: 1px solid #FFD700;
    color: #FFD700;
    font-size: 0.95em;
    padding: 10px;
    margin-top: 12px;
    border-radius: 6px;
    height: 22vh;
    overflow-y: auto;
    box-shadow: 0 0 16px #FFD700 inset;
}

.output-panel strong {
    color: #8e44ad;
}

.side-panel h3 {
    margin-top: 0;
    color: #8e44ad;
    font-size: 1.1em;
    letter-spacing: 1px;
    text-shadow: 0 0 8px #FFD700, 0 0 8px #8e44ad;
}

.side-panel ul {
    padding-left: 18px;
    margin: 0 0 10px 0;
}

.side-panel li {
    color: #00ff99;
    margin-bottom: 2px;
    font-size: 0.98em;
    text-shadow: 0 0 8px #FFD700, 0 0 8px #00ff99;
}

.side-panel .info-label {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 0 0 8px #8e44ad, 0 0 8px #3498db, 0 0 8px #00ff99;
}
