:root {
    /* "Blueprint" Palette - Matte and Professional */
    --bg-color: #1e1e24;       /* Soft dark charcoal */
    --panel-bg: #2b2b36;
    --text-primary: #e0e0e0;
    --text-secondary: #9aa0a6;
    
    --accent-blue: #4a90e2;    /* Solid Blue for Hull */
    --accent-green: #50c878;   /* Emerald Green for Good/Left */
    --accent-red: #e74c3c;     /* Matte Red for Bad/Right */
    --accent-yellow: #f1c40f;  /* Matte Yellow for Pivot */
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* UI Container sits above canvas */
.ui-container {
    width: 60%; /* Matches canvas width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: var(--panel-bg);
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-badge {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

button {
    background: #3a3a45;
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

button:hover {
    background: #4a4a55;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-group {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.slider-group label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

input[type=range] {
    width: 100px;
    height: 4px;
    accent-color: var(--accent-blue);
    background: #444;
    border-radius: 2px;
}

/* Canvas Sizing: ~60% of the visual weight */
canvas {
    background-color: #25252b;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    /* Explicitly handled in JS for pixel density, but CSS controls layout size */
}