/* Mobile warning — phone-frame on desktop, full-screen on mobile */

/* Mobile warning — hidden on desktop, phone-frame styled on small screens */
#mobile-warning {
    display: none;
}

@media (max-width: 768px) {
    #mobile-warning {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.92);
        z-index: 200;
        align-items: center;
        justify-content: center;
        font-family: 'Courier New', monospace;
    }

    /* Phone-frame card */
    #mobile-warning .phone-frame {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1rem;
        padding: 2.5rem 1.8rem;
        width: calc(100% - 40px);
        max-width: 340px;
        background: #000;
        border: 2px solid #00ff46;
        border-radius: 36px;
        box-shadow: 0 0 40px rgba(0, 255, 70, 0.2);
        position: relative;
    }

    /* Decorative notch */
    #mobile-warning .phone-frame::before {
        content: '';
        position: absolute;
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 6px;
        background: #00ff46;
        border-radius: 3px;
        opacity: 0.4;
    }

    #mobile-warning h2 {
        font-size: 1.6rem;
        color: #00ff46;
        letter-spacing: 4px;
        text-shadow: 0 0 16px #00ff46;
        margin-bottom: 0.5rem;
    }

    #mobile-warning p {
        color: #aaa;
        font-size: 0.9rem;
        letter-spacing: 1px;
        line-height: 1.6;
    }

    #mobile-warning a {
        margin-top: 1rem;
        color: #00ff46;
        text-decoration: none;
        letter-spacing: 2px;
        font-size: 0.85rem;
        border: 1px solid #00ff46;
        padding: 0.5rem 1.2rem;
        transition: background 0.2s;
    }

    #mobile-warning a:hover {
        background: rgba(0, 255, 70, 0.1);
    }
}

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

body {
    background: #000;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

canvas {
    display: block;
}

#blocker {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
}

#blocker.hidden {
    display: none;
}

#instructions {
    text-align: center;
    color: #00ff46;
    user-select: none;
}

#instructions h1 {
    font-size: 3rem;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px #00ff46;
}

#instructions p {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

#instructions p:first-of-type {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
}

#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    line-height: 1;
    pointer-events: none;
    z-index: 10;
    display: none;
    text-shadow: 0 0 4px #000;
}

#crosshair.visible {
    display: block;
}

#hud {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    display: none;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 10;
    pointer-events: none;
}

#hud.visible {
    display: flex;
}

#vertex-tooltip {
    position: fixed;
    top: 24px;
    right: 28px;
    min-width: 120px;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(125, 231, 255, 0.22);
    background: rgba(4, 12, 18, 0.28);
    color: rgba(125, 231, 255, 0.88);
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(125, 231, 255, 0.35);
    box-shadow: 0 0 24px rgba(125, 231, 255, 0.05);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.12s ease;
}

#vertex-tooltip.visible {
    opacity: 1;
}

#hud span {
    color: #00ff46;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 8px #00ff46;
}

#health {
    color: #ff4444 !important;
    text-shadow: 0 0 8px #ff4444 !important;
}

#hit-marker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.1s;
}

#hit-marker.active {
    opacity: 1;
    transition: none;
}

#hit-marker::before,
#hit-marker::after {
    content: '';
    position: absolute;
    background: #ff4444;
}

#hit-marker::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

#hit-marker::after {
    height: 2px;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

#death-msg {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s;
}

#death-msg.visible {
    opacity: 1;
}

#death-msg span {
    font-family: 'Courier New', monospace;
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 10px;
    color: #ff2200;
    text-shadow: 0 0 30px #ff2200, 0 0 60px #ff0000;
}
