body {
    margin: 0;
    background-color: #202028;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    border: 4px solid #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    width: 800px;
    height: 600px;
    background: #000;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #87CEEB; /* Sky color fallback */
}
/* HUD Styles */
.game-info {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 16px; /* Scaled for pixel look */
    text-shadow: 2px 2px 0 #000;
    pointer-events: none;
    z-index: 10;
}

.hud-item span {
    color: #ffcc00;
}

/* Overlay Styles */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 20;
}

.hidden {
    display: none !important;
}

#main-message {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff3333;
    text-shadow: 4px 4px 0 #fff;
    letter-spacing: 2px;
}

#sub-message {
    font-size: 20px;
    margin-top: 10px;
    color: #ffff00;
    animation: blink 1s step-end infinite;
}

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

/* Track Selection Styles */
#track-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

#track-selection h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

.tracks {
    display: flex;
    gap: 20px;
}

.track-option {
    padding: 15px 20px;
    border: 2px solid #555;
    background: #333;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.track-option.selected {
    border-color: #ffff00;
    background: #ff3333;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 10px #ff3333;
}

.back-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    color: #aaa;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 10px;    
    border: 1px solid #444;
    z-index: 30;
    transition: color 0.3s;
}

.back-button:hover {
    color: #fff;
    background: #000;
}
