:root {
    --bg: #0d0d0d;
    --text: #00ff41;
    --border: #004411;
    --highlight: #ffd700;
    --alert: #ff4444;
    
    /* Typography Skill: Scale (Major Third 1.25) */
    --base: 1rem;
    --ratio: 1.25;
    --size-sm:   0.8rem;
    --size-base: 1rem;
    --size-md:   1.25rem;
    --size-lg:   1.563rem;
    --size-xl:   1.953rem;
    --size-2xl:  2.441rem;
    
    /* Typography Skill: Rhythm */
    --lh: 1.5;
    --rhythm: calc(var(--base) * var(--lh));
    
    --font-mono: 'Courier New', Courier, monospace;
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-mono); 
    font-size: var(--size-base);
    line-height: var(--lh);
    padding: 20px; 
    margin: 0;
    overflow: hidden; /* Changed to hidden to prevent scrollbars on full screen map */
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

h1 { 
    font-size: var(--size-xl);
    text-align: center; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    margin-bottom: calc(var(--rhythm) * 0.5);
    margin-top: var(--rhythm);
    line-height: 1.2;
}

.subtitle {
    text-align: center;
    font-size: var(--size-sm);
    opacity: 0.7;
    margin-bottom: calc(var(--rhythm) * 2);
}

.dashboard-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    height: calc(100vh - 150px);
    gap: 20px;
    align-items: stretch;
}

.sidebar {
    width: 300px;
    background: #050505;
    border: 1px solid var(--border);
    padding: var(--rhythm);
    font-size: var(--size-sm);
    flex-shrink: 0;
    overflow-y: auto;
}

.stat-box {
    margin-bottom: var(--rhythm);
    border-bottom: 1px dashed var(--border);
    padding-bottom: calc(var(--rhythm) * 0.5);
}

.stat-box:last-child { border-bottom: none; }

.stat-label { opacity: 0.7; font-size: 0.8em; text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-size: var(--size-md); font-weight: bold; margin-bottom: 5px; color: var(--highlight); }

.main-view {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.legend {
    margin-bottom: var(--rhythm);
    font-size: var(--size-sm);
    border: 1px solid var(--border);
    padding: 10px;
    display: flex;
    gap: 20px;
    background: #050505;
}

.legend-item { display: flex; align-items: center; gap: 5px; }
.dot { width: 10px; height: 10px; display: inline-block; }
.dot.current { background: var(--text); border: 2px solid #000; box-shadow: 0 0 5px var(--text); }
.dot.start { background: #002200; border: 2px solid var(--text); }
.dot.loot { border: 2px dashed var(--highlight); }
.dot.normal { border: 1px solid var(--text); }

.mermaid { 
    width: 100%;
    height: 100%;
    background: #050505;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

/* CRT Scanline Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 999;
}

a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--text); }
a:hover { background: var(--text); color: #000; }

.footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    color: var(--border);
    pointer-events: none;
}

@media (max-width: 800px) {
    .dashboard-container { flex-direction: column; height: auto; }
    .sidebar { width: 100%; box-sizing: border-box; }
    body { overflow: auto; height: auto; }
}
