@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    height: 100vh;
}

#game-container {
    width: 100%;
    height: 100%;
    position: relative;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(180deg, #0a0a20 0%, #1a1a40 50%, #2a2a60 100%);
}

#dashboard {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.9) 100%);
    padding: 20px 40px;
    border-radius: 15px;
    border: 2px solid #ff0055;
    box-shadow: 0 0 30px rgba(255,0,85,0.3);
}

.dash-item {
    text-align: center;
    min-width: 120px;
}

.dash-item .label {
    font-size: 10px;
    letter-spacing: 3px;
    color: #ff0055;
    margin-bottom: 5px;
    text-shadow: 0 0 10px #ff0055;
}

.dash-item .value {
    font-size: 36px;
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(180deg, #fff 0%, #ff0055 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255,0,85,0.5);
    font-family: 'Orbitron', monospace;
}

.dash-item .unit {
    font-size: 10px;
    color: #666;
    margin-top: 5px;
}

#race-info {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

#position-display {
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    font-size: 20px;
    font-weight: bold;
    border-left: 4px solid #ff0055;
    margin-bottom: 10px;
}

#best-lap {
    font-size: 16px;
    color: #aa0;
    text-shadow: 0 0 10px #aa0;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.title-box {
    text-align: center;
    margin-bottom: 40px;
}

.game-title {
    font-size: 80px;
    font-style: italic;
    background: linear-gradient(90deg, #ff0055 0%, #ffcc00 50%, #ff0055 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    text-shadow: none;
    margin-bottom: 10px;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.game-subtitle {
    font-size: 30px;
    letter-spacing: 10px;
    color: #aaa;
    margin-bottom: 40px;
}

.controls-info {
    background: rgba(255,255,255,0.1);
    padding: 30px 50px;
    margin-bottom: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.controls-info p {
    font-size: 14px;
    margin: 8px 0;
    color: #ccc;
}

.action-btn {
    padding: 20px 80px;
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    background: linear-gradient(90deg, #ff0055, #ffcc00);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255,0,85,0.5);
}

.action-btn:active {
    transform: scale(0.95);
}

.nitro-bar {
    width: 150px;
    margin-left: 20px;
}

.nitro-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: #0ff;
    text-align: center;
    margin-bottom: 5px;
}

.nitro-fill {
    height: 10px;
    background: linear-gradient(90deg, #0055aa, #00ccff);
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px #00ccff;
}

.nitro-fill.full {
    background: linear-gradient(90deg, #ffcc00, #ff0000);
    box-shadow: 0 0 20px #ff0000;
}
