/* ---- CS‑like Crosshair ---- */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    width: 10px;
    height: 10px;
}
.crossLine {
    position: absolute;
    background: rgba(255,255,255,0.9);
}
.crossLine.center {
    width: 2px;
    height: 2px;
    top: 4px;
    left: 4px;
    background: transparent;
}
.crossLine.top {
    width: 1px;
    height: 8px;
    top: -4px;
    left: 4.5px;
}
.crossLine.bottom {
    width: 1px;
    height: 8px;
    bottom: -4px;
    left: 4.5px;
}
.crossLine.left {
    width: 8px;
    height: 1px;
    left: -4px;
    top: 4.5px;
}
.crossLine.right {
    width: 8px;
    height: 1px;
    right: -4px;
    top: 4.5px;
}

/* ---- Top HUD ---- */
#csTopHUD {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 20;
}
.csHudBox {
    background: rgba(0,0,0,0.7);
    border: 1px solid #666;
    color: white;
    font-family: 'Courier New', monospace;
    padding: 4px 12px;
    font-size: 20px;
    border-radius: 4px;
    text-shadow: 1px 1px black;
}
#weaponName {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: #ccc;
    font-size: 18px;
    text-shadow: 1px 1px black;
    font-family: 'Courier New', monospace;
}
#minimapCanvas {
    position: absolute;
    top: 50px;
    right: 10px;
    width: 128px;
    height: 128px;
    border: 2px solid #555;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    z-index: 20;
}
#messageDisplay {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff0;
    font-size: 18px;
    text-shadow: 1px 1px black;
    z-index: 10;
    white-space: nowrap;
}
/* ---- Mobile Controls ---- */
#mobileControls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 50;
    pointer-events: none;
}
#joystickZone {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    position: relative;
    pointer-events: auto;
}
#joystickThumb {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#actionButtons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}
#actionButtons button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 24px;
    border: 2px solid #777;
}
#btnFire { background: rgba(180,0,0,0.8); }
#btnReload { background: rgba(180,180,0,0.8); }