/* ============================================
   RACE RUSH — Game Styles
   ============================================ */

body.race-rush-page {
    background: linear-gradient(135deg, #0d2818 0%, #1a3a2a 50%, #0a1a10 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

#rr-hud {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    margin-top: 8px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.rr-hud-left { display: flex; align-items: center; gap: 8px; }
.rr-hud-center { text-align: center; }
.rr-hud-right { display: flex; align-items: center; gap: 6px; }

.rr-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f39c12;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.2);
}

.rr-speed-display {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    background: rgba(243, 156, 18, 0.12);
    padding: 4px 16px;
    border-radius: 20px;
}

.rr-score-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255,215,0,0.12);
    padding: 4px 16px;
    border-radius: 20px;
}

.rr-reset-btn { margin-left: 8px !important; }
.rr-reset-btn:hover { transform: rotate(-30deg) !important; }

#rr-game-area {
    width: 100%;
    max-width: 900px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rr-canvas-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

#rr-canvas {
    display: block;
    width: 450px;
    height: 600px;
}



/* Overlays */
.rr-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10; animation: fadeIn 0.3s ease;
    border-radius: 16px;
}
.rr-overlay.hidden { display: none; }
.rr-overlay-content {
    text-align: center;
    background: rgba(243, 156, 18, 0.06);
    border: 1px solid rgba(243, 156, 18, 0.15);
    padding: 36px 48px; border-radius: 24px;
    backdrop-filter: blur(4px); animation: modalPop 0.4s ease;
}
.rr-overlay-icon { font-size: 4rem; margin-bottom: 8px; animation: float 2s ease-in-out infinite; }
.rr-overlay-title { font-size: 1.8rem; font-weight: 800; color: #f39c12; text-shadow: 0 2px 30px rgba(243, 156, 18, 0.3); margin-bottom: 6px; }
.rr-overlay-sub { font-size: 0.95rem; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.rr-controls-hint {
    display: flex; flex-direction: column; gap: 4px;
    margin-bottom: 20px;
}
.rr-controls-hint span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.rr-btn {
    padding: 12px 36px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, #d35400, #f39c12);
    color: white; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; font-family: inherit;
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.3);
}
.rr-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(243, 156, 18, 0.5); }

/* Bottom HUD */
#rr-bottom-hud {
    width: 100%; max-width: 500px;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; margin-top: 10px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.rr-stat { flex: 1; text-align: center; }
.rr-stat-label { font-size: 0.65rem; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; display: block; }
.rr-stat-value { font-size: 0.95rem; font-weight: 700; color: white; }
.rr-powerup-display {
    font-size: 0.85rem; font-weight: 700;
    min-width: 70px; text-align: right;
}

/* Responsive */
@media (max-width: 500px) {
    #rr-canvas {
        width: 100%;
        height: auto;
        aspect-ratio: 450 / 600;
    }
    #rr-hud { padding: 10px 16px; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .rr-title { font-size: 1rem; }
    #rr-bottom-hud { flex-wrap: wrap; justify-content: center; gap: 6px; }
    .rr-overlay-content { padding: 24px 20px; }
}
