/* --- MAIN STYLES --- */
body { 
    margin: 0; 
    overflow: hidden; 
    background: #222; 
    font-family: 'Segoe UI', monospace; 
    color: white; 
}

/* --- HUD --- */
#hud { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    pointer-events: none; 
    z-index: 10; 
}

.hud-stats {
    margin-top: 10px; 
    background: rgba(0,0,0,0.5); 
    padding: 10px; 
    border-radius: 4px;
}

.btn { 
    pointer-events: auto; 
    padding: 8px 15px; 
    background: #444; 
    border: 1px solid #666; 
    color: white; 
    cursor: pointer; 
    border-radius: 4px; 
    font-weight: bold; 
}

.btn:hover { 
    background: #666; 
}

.debug-val { 
    color: #0f0; 
    font-weight: bold; 
}

/* --- SETTINGS MODAL --- */
#settings-modal {
    display: none; /* Hidden by default */
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.85); 
    z-index: 20;
    justify-content: center; 
    align-items: center;
}

.panel { 
    background: #2d2d2d; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #555; 
    width: 800px; 
    max-width: 90%; 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
}

.column { 
    flex: 1; 
    min-width: 250px; 
}

/* Visualizer Box */
.stick-box {
    width: 150px; 
    height: 150px; 
    background: #111; 
    border: 2px solid #555; 
    border-radius: 50%;
    position: relative; 
    margin: 0 auto;
}

.stick-dot {
    width: 12px; 
    height: 12px; 
    background: #0f0; 
    border-radius: 50%; 
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    box-shadow: 0 0 8px #0f0;
}

.visualizer-row {
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    margin-top: 15px;
}

/* Tables & Inputs */
table { 
    width: 100%; 
    font-size: 0.8em; 
    color: #aaa; 
    border-collapse: collapse; 
}

td { 
    padding: 4px; 
    border-bottom: 1px solid #444; 
}

select { 
    background: #444; 
    color: white; 
    border: 1px solid #666; 
    padding: 2px; 
}

h3 { 
    margin-top: 0; 
    border-bottom: 1px solid #555; 
    padding-bottom: 5px; 
}

#cal-status {
    text-align: center; 
    font-size: 0.8em; 
    margin: 5px 0; 
    color: #888;
}

.cal-active { 
    color: red !important; 
    animation: blink 1s infinite; 
}

@keyframes blink { 
    50% { opacity: 0.5; } 
}