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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    overflow: hidden;
}

.game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.ui-panel {
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-bottom: 3px solid #ff6b35;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ui-panel h1 {
    text-align: center;
    color: #ff6b35;
    font-size: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.score-board {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #ff6b35;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.player-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    font-size: 11px;
    min-width: 80px;
}

.status {
    color: #4caf50;
    font-size: 10px;
    font-weight: bold;
}

.player-name {
    font-weight: bold;
    color: #ff6b35;
}

.damage {
    color: #ffeb3b;
}

.controls {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #4caf50;
    display: flex;
    gap: 15px;
}

.control-group {
    text-align: center;
}

.control-group h3 {
    color: #4caf50;
    margin-bottom: 5px;
    font-size: 12px;
}

.control-group p {
    font-size: 10px;
    color: #ccc;
}

.restart-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.restart-btn:hover {
    background: linear-gradient(45deg, #f7931e, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

#gameCanvas {
    background: #2c3e50;
    border: 3px solid #ff6b35;
    display: block;
    margin: 0;
    max-height: calc(100vh - 120px);
    max-width: 100vw;
}

/* Damage indicator styles */
.damage-critical {
    color: #f44336 !important;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Game over overlay */
.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #ff6b35;
    z-index: 1000;
}

.game-over h2 {
    font-size: 36px;
    color: #ff6b35;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-over p {
    font-size: 18px;
    margin-bottom: 20px;
}
