body {
    margin: 0;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

canvas {
    display: block;
}

#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#top-bar {
    pointer-events: auto;
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#score-board {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-top: -10px; /* Pull up slightly */
    color: #fff;
    text-shadow: 0 0 10px #ff00de, 0 0 20px #ff00de;
    letter-spacing: 2px;
}

#message {
    text-align: center;
    font-size: 24px;
    color: #ffd700;
    text-shadow: 0 0 5px #000;
    height: 30px;
}

#level-select {
    position: absolute;
    bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    pointer-events: auto;
}

button {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ff00de;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px rgba(255, 0, 222, 0.2);
    backdrop-filter: blur(4px);
}

button:hover {
    background: #ff00de;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 0, 222, 0.8);
}

button.active {
    background: #ff00de;
    color: #000;
    box-shadow: 0 0 10px #ff00de;
}

/* Modal Styles */
.modal {
    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;
    pointer-events: auto;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #111;
    border: 2px solid #ff00de;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 0 30px rgba(255, 0, 222, 0.3);
}

.modal-content h2 {
    color: #ff00de;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.option-row {
    margin: 20px 0;
    text-align: left;
}

.option-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ccc;
}

.toggle-group {
    display: flex;
    gap: 10px;
}

.toggle-group button {
    flex: 1;
    font-size: 12px;
}

.close-btn {
    margin-top: 20px;
    width: 100%;
    background: #333;
    border-color: #555;
}
.close-btn:hover {
    background: #fff;
    color: #000;
}
