:root {
    --primary: #ef4444;
    --primary-glow: rgba(239, 68, 68, 0.55);
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.45);
    --bg-dark: #070b14;
    --bg-glass: rgba(10, 15, 29, 0.82);
    --border-glass: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    touch-action: none;
}

canvas#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* Touch controls for mobile */
#touchControls {
    position: absolute;
    bottom: 25px;
    width: 100%;
    display: none;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 28px;
    box-sizing: border-box;
    z-index: 25;
    pointer-events: none;
}

.touch-joystick {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    position: relative;
    pointer-events: auto;
    touch-action: none;
    backdrop-filter: blur(8px);
}

.touch-thumb {
    width: 48px;
    height: 48px;
    background: rgba(6, 182, 212, 0.6);
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 12px var(--accent-glow);
}

#shootBtnTouch {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #ef4444, #991b1b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1.5px;
    pointer-events: auto;
    box-shadow: 0 0 24px var(--primary-glow);
    border: 2px solid rgba(255, 255, 255, 0.4);
    touch-action: none;
}

#viewBtnTouch {
    position: absolute;
    top: 20px;
    right: 175px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 25;
    display: none;
    pointer-events: auto;
    backdrop-filter: blur(8px);
}
