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

body {
    font-family: 'Segoe UI', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
}

/* HUD */
#hud-top-left {
    position: fixed;
    top: 25px;
    left: 25px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border-left: 4px solid #00d4aa;
    padding: 20px;
    border-radius: 0 15px 15px 0;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
    pointer-events: none;
    max-width: 320px;
    transition: opacity 0.3s;
}

#hud-top-left h1 {
    font-size: 20px;
    color: #00d4aa;
    text-transform: uppercase;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border: 1px solid rgba(0, 212, 170, 0.1);
}

.metric-label {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
}

.metric-value {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

#activity-log {
    margin-top: 15px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #00d4aa;
    border-top: 1px solid rgba(0, 212, 170, 0.2);
    padding-top: 10px;
}

.log-entry {
    margin-bottom: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(0, 212, 170, 0.05);
    border-radius: 4px;
    border-left: 2px solid transparent;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(-10px);
    position: relative;
}

.log-entry.show {
    opacity: 1;
    transform: translateX(0);
}

.log-entry.dying {
    opacity: 0;
    transform: translateX(20px);
}

.log-entry:hover {
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    transform: translateX(5px) scale(1.02);
    z-index: 1002;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-left-color: #00d4aa;
    width: max-content;
    max-width: 400px;
}

.log-content {
    color: #888;
    font-size: 10px;
    margin-top: 3px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

.log-entry:hover .log-content {
    white-space: normal;
    overflow: visible;
    color: #ccc;
}

#detail-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background: rgba(0, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 170, 0.4);
    padding: 30px;
    border-radius: 24px;
    transform: translateX(450px);
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

#detail-panel.active {
    transform: translateX(0);
}

.controls {
    position: fixed;
    top: 25px;
    right: 25px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 170, 0.5);
    color: #00d4aa;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 12px;
}

.btn:hover {
    background: #00d4aa;
    color: #000;
}

#loading {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0, 212, 170, 0.1);
    border-top-color: #00d4aa;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
