body {
    background: #2b2b2b;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.container { max-width: 600px; width: 100%; text-align: center; }
.logo-container { margin-bottom: 10px; }
.logo { max-width: 160px; height: auto; }

h1 { margin: 10px 0 5px; color: #fff; }
.description { font-size: 0.9em; color: #bbb; margin-bottom: 25px; }

/* Bipartite Field */
.bipartite-container {
    width: 280px; height: 280px; margin: 0 auto 30px;
    border-radius: 50%; overflow: hidden; display: flex;
    border: 6px solid #1a1a1a; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.field { flex: 1; height: 100%; }
.divider { width: 10px; background: #444; }

/* Control Sliders */
.controls { 
    background: #383838; padding: 25px; border-radius: 12px; 
    border: 1px solid #4a4a4a; margin-bottom: 20px; 
}
.control-group label { display: block; margin: 15px 0 5px; font-weight: 600; text-align: left; }
input[type="range"] { width: 100%; height: 8px; border-radius: 5px; background: #222; outline: none; cursor: pointer; }

#r-slider { accent-color: #ff4444; }
#g-slider { accent-color: #44ff44; }
#b-slider { accent-color: #4444ff; }

/* Buttons */
.button-group { display: flex; gap: 12px; justify-content: center; }
button { padding: 12px 24px; border-radius: 6px; border: none; font-weight: bold; cursor: pointer; transition: 0.2s; }
.primary-btn { background: #007bff; color: white; }
.secondary-btn { background: #555; color: white; }
.danger-btn { background: #dc3545; color: white; }
button:hover { filter: brightness(1.2); }

/* Modal */
#modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; justify-content: center; align-items: center; z-index: 100; }
.modal-hidden { display: none !important; }
.modal { background: #333; padding: 30px; border-radius: 12px; width: 300px; border: 1px solid #555; box-shadow: 0 0 30px #000; }
.modal input { width: 90%; padding: 10px; margin: 15px 0; border-radius: 4px; border: 1px solid #555; background: #222; color: white; outline: none; }

/* Leaderboard Table */
.hidden { display: none; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #333; border-radius: 8px; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid #444; vertical-align: middle; }
th { background: #1a1a1a; color: #5cb3ff; font-size: 0.85em; text-transform: uppercase; }

/* Side-by-side Squares */
.compare-box { display: flex; justify-content: center; align-items: center; }
.swatch { width: 35px; height: 35px; border: 1px solid rgba(255,255,255,0.1); }
.swatch-target { border-right: none; }