﻿/* ... Keep existing body/health styles ... */
body {
    margin: 0;
    overflow: hidden;
    background: #222;
    font-family: 'Arial Black', sans-serif;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.health-container {
    position: absolute;
    top: 20px;
    width: 40%;
    height: 30px;
    background: #550000;
    border: 3px solid #fff;
    transform: skewX(-20deg);
}

#p1-health-box {
    left: 5%;
}

#p2-health-box {
    right: 5%;
}

.health-fill {
    width: 100%;
    height: 100%;
    transition: width 0.1s;
}

#p1-health {
    background: linear-gradient(90deg, #00f2ff, #0051ff);
    float: right;
}

#p2-health {
    background: linear-gradient(90deg, #ff5e00, #ff0000);
    float: left;
}

#timer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;
    color: #ffeb3b;
    text-shadow: 2px 2px 0 #000;
}

#message {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: white;
    text-shadow: 4px 4px 0 #000;
    display: none;
    text-align: center;
    z-index: 10;
}

/* NEW UTILITY STYLES */
#utility-panel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    pointer-events: auto; /* Allow clicking */
}

button {
    background: #333;
    color: white;
    border: 2px solid #fff;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    font-family: monospace;
    text-transform: uppercase;
}

    button:hover {
        background: #555;
    }

    button:active {
        background: #777;
    }

#controls-hint {
    position: absolute;
    bottom: 80px;
    width: 100%;
    text-align: center;
    color: #aaa;
    font-size: 12px;
    font-family: monospace;
}
