
:root {
    --bg-dark: #0f111a;
    --panel-bg: rgba(20, 24, 39, 0.95);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --border: #334155;
    
    /* Badges */
    --badge-verified: #22c55e;
    --badge-contested: #f59e0b;
    --badge-lore: #a855f7;
    --badge-sliding: #ef4444;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    overflow: hidden;
}

#network-canvas {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    pointer-events: none;
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.controls {
    pointer-events: auto;
    display: flex;
    gap: 10px;
}

input, select {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--accent);
}

#info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 350px;
    max-height: calc(100vh - 40px);
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    overflow-y: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

#info-panel.hidden {
    transform: translateX(120%);
    opacity: 0;
}

#close-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

#close-panel:hover {
    color: white;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge.verified { background: rgba(34, 197, 94, 0.2); color: var(--badge-verified); border: 1px solid var(--badge-verified); }
.badge.contested { background: rgba(245, 158, 11, 0.2); color: var(--badge-contested); border: 1px solid var(--badge-contested); }
.badge.lore { background: rgba(168, 85, 247, 0.2); color: var(--badge-lore); border: 1px solid var(--badge-lore); }
.badge.sliding { background: rgba(239, 68, 68, 0.2); color: var(--badge-sliding); border: 1px solid var(--badge-sliding); }

.story-content h2 { margin-top: 0; color: #fff; font-size: 20px;}
.story-content h3 { font-size: 16px; color: var(--accent); margin-bottom: 5px; }
.story-content p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.story-content strong { color: var(--text-main); }
