* {
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0b1320;
    font-family: 'Noto Sans KR', sans-serif;
}
#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}
.ow-font {
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
    font-style: italic;
}
/* Overwatch skewed HUD boxes */
.ow-skew {
    transform: skewX(-12deg);
}
.ow-unskew {
    transform: skewX(12deg);
}
/* Health pip bar styling */
.hp-pip {
    width: 14px;
    height: 22px;
    margin-right: 3px;
    border-radius: 2px;
    transform: skewX(-15deg);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
/* Overhealth (Shield) Pip styles */
.hp-shield-pip {
    width: 14px;
    height: 22px;
    margin-right: 3px;
    border-radius: 2px;
    transform: skewX(-15deg);
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.85);
    transition: all 0.15s ease;
}
/* Ability icon box */
.ability-box {
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.78);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    transform: skewX(-10deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(6px);
    transition: all 0.15s ease;
}
.ability-box.ready:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}
.ability-box.on-cooldown {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(239, 68, 68, 0.6);
}
/* Sniper Scope Overlay */
#scope-overlay {
    pointer-events: none;
    transition: opacity 0.12s ease;
}
.scope-vignette {
    background: radial-gradient(circle at center, transparent 34%, rgba(6, 12, 24, 0.65) 38%, rgba(4, 8, 16, 0.97) 44%);
}
/* World-space floating HP bars */
.world-label {
    position: absolute;
    pointer-events: none;
    transform: translate(-50%, -100%);
    transition: opacity 0.1s ease;
    z-index: 15;
}
/* Killfeed / Event notifications */
@keyframes popFade {
    0% { transform: scale(0.8) translateY(10px); opacity: 0; }
    15% { transform: scale(1.05) translateY(0); opacity: 1; }
    80% { transform: scale(1) translateY(0); opacity: 1; }
    100% { transform: scale(0.95) translateY(-10px); opacity: 0; }
}
.event-toast {
    animation: popFade 2.4s forwards;
}
/* Nano electric screen border when Nano is active */
.nano-glow {
    box-shadow: inset 0 0 65px rgba(37, 99, 235, 0.65), inset 0 0 20px rgba(96, 165, 250, 0.8);
}
@keyframes floatNumberUp {
    0% { transform: translate(-50%, 0) scale(0.75); opacity: 0; }
    18% { transform: translate(-50%, -14px) scale(1.15); opacity: 1; }
    80% { transform: translate(-50%, -38px) scale(1); opacity: 0.95; }
    100% { transform: translate(-50%, -52px) scale(0.9); opacity: 0; }
}
.floating-combat-text {
    position: absolute;
    pointer-events: none;
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
    font-weight: 900;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
    animation: floatNumberUp 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 25;
    white-space: nowrap;
}

/* Active Reload Bar UI */
#active-reload-container {
    width: 160px;
    height: 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.active-reload-sweetspot {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40%;
    width: 25%;
    background: rgba(251, 191, 36, 0.45);
    border-left: 1.5px solid #fbbf24;
    border-right: 1.5px solid #fbbf24;
}
.active-reload-cursor {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
    transform: translateX(-50%);
}

/* Threat Indicator Ring (360° Arc) */
.threat-ring {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

/* Veteran's Poise (베테랑의 여유) Level-Up Modal/Toast */
@keyframes veteranGlow {
    0% { transform: scale(0.85); opacity: 0; }
    20% { transform: scale(1.06); opacity: 1; }
    80% { transform: scale(1.0); opacity: 1; }
    100% { transform: scale(0.96); opacity: 0; }
}
.veteran-toast {
    animation: veteranGlow 3.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Smart Aim Magnetic Reticle Indicator */
.smart-aim-locked {
    filter: drop-shadow(0 0 10px #fde047) drop-shadow(0 0 20px #22d3ee);
    transform: scale(1.18);
    transition: all 0.12s ease;
}

/* ============================================================================
 * MOBILE LANDSCAPE & PROPORTIONAL RESPONSIVE UI SYSTEM
 * Scales HUD elements seamlessly across phones with diverse aspect ratios & heights
 * ============================================================================ */

/* Desktop-only action elements vs Mobile-only action elements */
.mobile-only-action {
    display: none !important;
}

body.mobile-mode-active .desktop-only-action,
@media (max-height: 560px), (pointer: coarse) and (orientation: landscape), (max-width: 860px) {
    .desktop-only-action {
        display: none !important;
    }
    .mobile-only-action {
        display: flex !important;
    }

    /* Proportional Top Signature Growth HUD */
    #top-core-growth-hud {
        top: clamp(2px, 0.8vh, 5px) !important;
    }
    #top-core-growth-hud .growth-hud-card {
        padding: clamp(2px, 0.5vh, 4px) clamp(8px, 1.8vw, 14px) !important;
        gap: clamp(6px, 1.6vw, 12px) !important;
        border-width: 1.5px !important;
        border-radius: 10px !important;
        transform: skewX(-6deg) !important;
    }
    #top-core-growth-hud .ow-unskew {
        transform: skewX(6deg) !important;
    }
    #top-core-growth-hud span {
        line-height: 1.15;
    }
    #hud-wave-title {
        font-size: clamp(11px, 2.8vw, 14px) !important;
    }
    #hud-atk-current, #hud-hp-current {
        font-size: clamp(12px, 3.2vw, 15px) !important;
    }
    #hud-hp-max {
        font-size: clamp(10px, 2.4vw, 12px) !important;
    }
    #hud-atk-bonus, #hud-shield-bonus {
        font-size: clamp(9px, 2.2vw, 11px) !important;
    }

    /* Top Left Hero Title & Switcher Panel */
    #top-left-panel {
        gap: 2px !important;
    }
    #hero-title-card {
        padding: 2px 8px !important;
        border-radius: 6px !important;
        border-left-width: 3px !important;
    }
    #hero-title-card h1 {
        font-size: clamp(10px, 2.2vw, 12px) !important;
    }
    #mouse-status-text {
        display: none !important;
    }
    #view-controls-bar {
        gap: 3px !important;
    }
    #view-controls-bar button {
        padding: 1.5px 5px !important;
        font-size: clamp(8.5px, 1.8vw, 10px) !important;
        border-radius: 4px !important;
    }
    #live-combat-scoreboard {
        padding: 1.5px 6px !important;
        font-size: clamp(8.5px, 1.8vw, 10px) !important;
        gap: clamp(4px, 1vw, 8px) !important;
        border-radius: 6px !important;
    }

    /* Bottom Left Portrait, HP & Ammo */
    #bottom-left-hud {
        gap: clamp(4px, 1vw, 8px) !important;
    }
    #bottom-portrait-frame {
        width: clamp(34px, 9vh, 44px) !important;
        height: clamp(34px, 9vh, 44px) !important;
        border-radius: 8px !important;
    }
    #bottom-portrait-frame svg {
        width: clamp(30px, 8vh, 40px) !important;
        height: clamp(30px, 8vh, 40px) !important;
    }
    #player-hp-num {
        font-size: clamp(18px, 4.5vh, 24px) !important;
    }
    #player-shield-num {
        font-size: clamp(12px, 3vh, 15px) !important;
    }
    #player-hp-max-label {
        font-size: clamp(10px, 2.4vh, 12px) !important;
    }
    #player-hp-pips {
        padding: 1.5px 4px !important;
        max-width: clamp(150px, 34vw, 210px) !important;
    }
    .hp-pip, .hp-shield-pip {
        width: clamp(6px, 1.2vw, 9px) !important;
        height: clamp(10px, 2.5vh, 14px) !important;
        margin-right: 2px !important;
        border-radius: 1px !important;
    }

    /* Arc Skill Cluster Scaling */
    #arc-skill-cluster {
        width: clamp(190px, 40vw, 230px) !important;
        height: clamp(155px, 47vh, 195px) !important;
        bottom: clamp(4px, 1.5vh, 10px) !important;
        right: clamp(4px, 1.5vw, 10px) !important;
    }

    /* Combat feed / Toast messages */
    #combat-feed {
        margin-top: clamp(36px, 10vh, 46px) !important;
    }
    .event-toast {
        padding: 2px 8px !important;
        font-size: 11px !important;
    }
}

