:root {
    /* Colors */
    --primary: #007bff;
    --primary-hover: #0056b3;
    --success: #28a745;
    --success-hover: #218838;
    --warning: #ffc107;
    --warning-hover: #e0a800;
    --info: #17a2b8;
    --secondary: #6c757d;
    --bg-light: #f4f4f9;
    --bg-dark: #111;
    --bg-card: #fff;
    --bg-racer: #2a2a2a;
    --text-main: #333;
    --text-light: #fff;
    --border-color: #ddd;
    
    /* Shared Values */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-main: 0 10px 25px rgba(0,0,0,0.3);
}

/* --- Global Resets & Layout --- */
body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.hidden { 
    display: none !important; 
}

.container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.view {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

/* --- Typography & Base Elements --- */
h1 { 
    color: var(--primary); 
    margin-bottom: 20px; 
}

p { 
    margin-bottom: 20px; 
    font-size: 1.1em; 
}

hr { 
    border: 0; 
    height: 1px; 
    background-color: #ccc; 
    margin: 25px 0; 
}

button {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.1s, background-color 0.3s;
}

button:active { 
    transform: scale(0.95); 
}

/* --- Toast Notifications --- */
#toast-container { 
    position: fixed; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1000; 
}

.toast {
    background: #333; 
    color: white; 
    padding: 12px 24px;
    border-radius: var(--radius-md); 
    margin-bottom: 10px;
    animation: fadeOut 3s forwards;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

@keyframes fadeIn { 
    from { opacity: 0; transform: scale(0.9); } 
    to { opacity: 1; transform: scale(1); } 
}

@keyframes fadeOut { 
    0%, 70% { opacity: 1; } 
    100% { opacity: 0; } 
}