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

body {
    overflow: hidden;
    background: #000;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    cursor: default;
    user-select: none;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== UI Overlay ===== */
#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    font-weight: 100;
    pointer-events: none;
}

/* ===== Stamina Bar ===== */
#stamina-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

#stamina-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

#stamina-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

#stamina-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff4444, #ffaa44, #44ff44);
    border-radius: 3px;
    transition: width 0.1s ease;
}

/* ===== Minimap ===== */
#minimap-container {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 160px;
    height: 160px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

#minimap-canvas {
    width: 100%;
    height: 100%;
}

/* ===== Proximity Warning ===== */
#proximity-warning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: 8px solid transparent;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

#proximity-warning.active {
    border-color: rgba(255, 0, 0, 0.3);
}

/* ===== Controls Hint ===== */
#controls-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    letter-spacing: 1px;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* ===== Overlays ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    pointer-events: all;
    transition: opacity 0.5s ease;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    text-align: center;
    color: #fff;
}

.overlay-content p {
    margin: 12px 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.title-red {
    font-size: 64px;
    color: #ff3333;
    text-shadow: 0 0 40px rgba(255, 0, 0, 0.5);
    margin-bottom: 20px;
    letter-spacing: 8px;
}

.title-green {
    font-size: 56px;
    color: #33ff66;
    text-shadow: 0 0 40px rgba(51, 255, 102, 0.5);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.title-glow {
    font-size: 72px;
    color: #fff;
    text-shadow: 0 0 60px rgba(100, 150, 255, 0.4);
    margin-bottom: 20px;
    letter-spacing: 12px;
}

.hint {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 30px !important;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.btn {
    margin-top: 20px;
    padding: 14px 48px;
    font-size: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    pointer-events: all;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}
