:root {
    --bg: #000000;
    --accent: #d40000;
}

/* Reset & Base */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--bg);
    color: #fff;
    font-family: Arial, sans-serif;
}

/* Canvas */
#gameCanvas {
    position: absolute;
    left: 0;
    width: 100%;
    background: var(--bg);
    z-index: 1;
}

/* HUD */
#score, #combo, #timer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-size: 1.2em;
    pointer-events: none;
    z-index: 11;
}

#score {
    top: 7em;
}

#combo {
    top: 9.5em;
}

#timer {
    top: 12em;
}

/* Menu overlay */
#menuOverlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2;
}

#menuOverlay h2 {
    font-size: 2em;
    margin-bottom: .5em;
}

#menuOverlay p {
    margin-bottom: 1em;
}

#menuOverlay button {
    padding: 0.75em 1.5em;
    margin: 0.25em;
    font-size: 1em;
    background: darkred;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .3s;
}

#menuOverlay button:hover {
    background: red;
}

/* High Scores list */
#highScores {
    margin-top: 1.5em;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    width: 200px;
    display: none;
}

#highScores h3 {
    margin-bottom: 0.5em;
    text-align: center;
}

#highScores ol {
    padding-left: 1.2em;
    line-height: 1.4em;
}

/* Legend */
#legend {
    margin-top: 1.5em;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    width: 260px;
    padding: 0 12px;
    display: none;
}

#legend h3 {
    margin-bottom: 0.5em;
    text-align: center;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
}

.legend-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 0.5em;
    border-radius: 50%;
    box-shadow: 0 0 8px;
}

.legend-icon.orb {
    background: cyan;
    box-shadow: 0 0 10px magenta;
}

.legend-icon.mine {
    background: rgba(212, 0, 0, 0.8);
}

.legend-icon.shield {
    background: yellow;
}

.legend-icon.slow {
    background: lightblue;
}

.legend-icon.magnet {
    background: magenta;
}

/* Footer */
#footer-placeholder footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: darkred;
    color: #fff;
    text-align: center;
    padding: 0.5em 0;
    font-size: 0.9em;
    z-index: 3;
}[data-theme="light"] body{background-color:#f0f5fa!important;color:#1f2937!important}[data-theme="light"] canvas{border-color:#2563eb!important}[data-theme="light"] .game-container,[data-theme="light"] .controls,[data-theme="light"] .score{background-color:#ffffff!important;color:#1f2937!important;border-color:#d1d5db!important}[data-theme="light"] button{background-color:#2563eb!important;color:#fff!important}[data-theme="light"] button:hover{background-color:#1d4ed8!important}
