/* Modern Design System - Dream Team 2026 */

:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    --surface-color: #ffffff;
    --background-color: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Prompt', 'Roboto', sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Navbar Modernization */
/* Navbar Modernization - Dark Glass Future */
.navbar {
    background: rgba(15, 23, 42, 0.9) !important;
    /* Deep Slate */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    margin-right: 2rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.navbar-brand i {
    color: #38bdf8;
    /* Cyan accent */
}

.nav-link {
    font-weight: 500;
    color: #94a3b8 !important;
    /* Slate-400 */
    transition: all 0.3s ease;
    padding: 0.5rem 0 !important;
    margin: 0 0.5rem;
    position: relative;
    border-radius: 0;
}

/* Animated Neon Underline */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    /* Cyan to Indigo */
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    background: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-link i {
    margin-right: 0.5rem;
    color: #64748b;
    /* Slate-500 */
    transition: color 0.3s ease;
}

.nav-link:hover i,
.nav-link.active i {
    color: #38bdf8;
    /* Cyan */
}

/* Card Styling */
.card,
.shadow {
    background: var(--surface-color);
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.shadow:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft) !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    filter: brightness(110%);
}

/* Login Page Specifics */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/bg-pattern.svg'), var(--background-color);
    background-size: cover;
}

/* Table Styling */
.table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead th {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Input Fields */
.form-control {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.form-control:focus {
    background-color: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Progress Bars */
.progress {
    height: 0.75rem;
    border-radius: 1rem;
    background-color: #e5e7eb;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    border-radius: 1rem;
}

/* Nav Pills */
.nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
}

.nav-pills .nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Helper Classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Dashboard Specifics */
.icon-shape {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bg-primary-subtle {
    background-color: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
}

.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.bg-info-subtle {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {

    /* Adjust Container Padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Reduce Navbar Padding */
    .navbar {
        padding: 0.75rem 0.5rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    /* Card Adjustments */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Typography Adjustments */
    h3 {
        font-size: 1.5rem;
    }

    /* Button and Control Spacing */
    .btn-group {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .btn-group .btn {
        flex: 1 1 auto;
        margin: 2px !important;
        border-radius: var(--radius-md) !important;
    }

    /* Year Selector Full Width on Mobile */
    form[action="/dashboard"] {
        width: 100%;
    }

    #yearSelect {
        flex-grow: 1;
    }

    /* Table horizontal scroll */
    .table-responsive {
        border-radius: var(--radius-md);
    }
}

/* Modern Login & Register Redesign */

/* Split Screen Login */
.login-split-wrapper {
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    background-color: var(--surface-color);
}

.login-left {
    flex: 1;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: -25%;
    left: -25%;
    animation: pulse-slow 10s infinite;
}

@keyframes pulse-slow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.login-logo-large {
    max-width: 200px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    z-index: 10;
}

.login-welcome-text {
    text-align: center;
    z-index: 10;
}

.login-welcome-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-welcome-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 400px;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background-color: white;
    position: relative;
}

.login-form-container {
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Buttons Modern */
.social-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: #f9fafb;
}

.btn-social.google {
    color: #DB4437;
}

.btn-social.facebook {
    color: #1877F2;
}

.btn-social.line {
    color: #06C755;
}

.btn-social.microsoft {
    color: #00a4ef;
}

.btn-social img {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    object-fit: contain;
}

.btn-social i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* Divider */
.divider-text {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    margin: 2rem 0;
    font-size: 0.9rem;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider-text span {
    padding: 0 1rem;
}

/* Register Page - Centered Modern */
.register-bg {
    min-height: 100vh;
    background: var(--background-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(118, 75, 162, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(102, 126, 234, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(118, 75, 162, 0.1) 0px, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-floating>.form-control {
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.form-floating>.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-floating>label {
    color: #64748b;
}

/* Mobile Responsive Override */
@media (max-width: 992px) {
    .login-split-wrapper {
        flex-direction: column;
    }

    .login-left {
        padding: 3rem 1rem;
        flex: 0 0 auto;
        min-height: 300px;
    }

    .login-logo-large {
        max-width: 120px;
    }

    .login-welcome-text h1 {
        font-size: 2rem;
    }

    .login-right {
        padding: 2rem 1rem;
    }
}

/* Landing Page Specifics */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 6rem 0 4rem 0;
    margin-bottom: 4rem;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Glass Stat Cards */
.glass-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.glass-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Timeline Feed */
.timeline-feed {
    position: relative;
    padding-left: 2rem;
}

.timeline-feed::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Leaderboard Avatar */
.avatar-glow {
    position: relative;
    display: inline-block;
}

.avatar-glow img {
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatar-crown {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem 0;
        border-radius: 0 0 30px 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .timeline-feed {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -1.85rem;
    }
}

/* =========================================
   COMPETITION DASHBOARD STYLES
   ========================================= */

/* 1. Champion Podium */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    height: 380px;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    perspective: 1000px;
}

.podium-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.podium-column:hover {
    transform: translateY(-10px);
}

/* Rank Specifics */
.rank-1 {
    order: 2;
    z-index: 10;
    margin-bottom: 30px;
    /* Lift up slightly */
}

.rank-2 {
    order: 1;
    z-index: 5;
}

.rank-3 {
    order: 3;
    z-index: 5;
}

/* Avatar Styling */
.podium-avatar-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
    animation: float 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
}

.rank-2 .podium-avatar-wrapper {
    animation-delay: 1s;
}

.rank-3 .podium-avatar-wrapper {
    animation-delay: 2s;
}

.podium-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background: white;
}

.rank-1 .podium-avatar {
    width: 140px;
    height: 140px;
    border-color: #fbbf24;
    /* Amber-400 */
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.5);
    z-index: 2;
}

.rank-2 .podium-avatar {
    border-color: #94a3b8;
    /* Slate-400 */
}

.rank-3 .podium-avatar {
    border-color: #d97706;
    /* Amber-600 */
}

/* Crown & Badge */
.rank-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    z-index: 3;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.rank-1 .rank-badge {
    color: #d97706;
    background: #fffbeb;
    border-color: #fcd34d;
}

.rank-2 .rank-badge {
    color: #64748b;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.rank-3 .rank-badge {
    color: #92400e;
    background: #fff7ed;
    border-color: #fdba74;
}

.winner-crown {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: crown-bounce 2s infinite ease-in-out;
    z-index: 3;
}

/* Podium Base (The Box) */
.podium-base {
    width: 130px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), inset 0 2px 10px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.podium-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.5;
}

.rank-1 .podium-base {
    height: 200px;
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border-top: 4px solid #fbbf24;
}

.rank-2 .podium-base {
    height: 150px;
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    border-top: 4px solid #94a3b8;
}

.rank-3 .podium-base {
    height: 100px;
    background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 100%);
    border-top: 4px solid #d97706;
}

.podium-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    text-align: center;
    padding: 0 0.5rem;
}

.podium-score {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 2. Race Track Styles */
.race-track-container {
    position: relative;
    padding: 2rem 1rem 4rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

.race-track-line {
    position: relative;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin: 3rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.race-finish-line {
    position: absolute;
    right: 0;
    top: -10px;
    bottom: -10px;
    width: 4px;
    background-image: repeating-linear-gradient(45deg, #000 0, #000 10px, transparent 10px, transparent 20px);
    z-index: 1;
}

.race-start-line {
    position: absolute;
    left: 0;
    top: -5px;
    bottom: -5px;
    width: 4px;
    background: #cbd5e1;
    z-index: 1;
}

/* Racer Avatar on Track */
.racer-wrapper {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.racer-wrapper:hover {
    z-index: 20 !important;
}

.racer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    background: #fff;
    object-fit: cover;
}

.racer-wrapper:hover .racer-avatar {
    transform: scale(1.5) translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.racer-tooltip {
    position: absolute;
    top: -45px;
    background: #1e293b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
}

.racer-wrapper:hover .racer-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.racer-wrapper:hover .racer-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: #1e293b transparent transparent;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes crown-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateX(-50%) translateY(-5px) rotate(5deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .podium-container {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        padding-top: 2rem;
    }

    .podium-column {
        width: 100%;
        flex-direction: row;
        align-items: center;
        margin: 0 !important;
        order: unset !important;
        /* Reset order for list view */
    }

    .podium-base {
        width: 100%;
        height: auto !important;
        border-radius: 12px;
        flex-direction: row;
        padding: 1rem;
        margin-left: -30px;
        /* Pull into avatar */
        padding-left: 40px;
        z-index: 1;
    }

    .podium-avatar-wrapper {
        margin-bottom: 0;
        z-index: 2;
    }

    .podium-avatar {
        width: 80px;
        height: 80px;
    }

    .rank-1 .podium-avatar {
        width: 100px;
        height: 100px;
    }

    .rank-badge {
        bottom: 0;
        right: -10px;
        left: auto;
        transform: none;
    }

    .winner-crown {
        top: -25px;
        font-size: 2rem;
    }

    .podium-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    /* Race track horizontal scroll on mobile */
    .race-track-container {
        overflow-x: auto;
        padding: 1rem 0 3rem 0;
    }

    .race-track-inner {
        min-width: 600px;
        /* Force scroll */
        padding: 0 2rem;
    }
}/ *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
       R u n n e r s   U p   S e c t i o n   ( R a n k   4   &   5 )  
       - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   * /  
 . r u n n e r s - u p - s e c t i o n   {  
         m a r g i n - t o p :   - 3 0 p x ;  
         / *   O v e r l a p   s l i g h t l y   w i t h   p o d i u m   b a s e   i f   n e e d e d ,   o r   j u s t   r e g u l a r   s p a c i n g   * /  
         p a d d i n g - t o p :   1 r e m ;  
         p o s i t i o n :   r e l a t i v e ;  
         z - i n d e x :   2 0 ;  
 }  
  
 . r u n n e r - c a r d   {  
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 8 ) ;  
         b a c k d r o p - f i l t e r :   b l u r ( 1 2 p x ) ;  
         - w e b k i t - b a c k d r o p - f i l t e r :   b l u r ( 1 2 p x ) ;  
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 4 ) ;  
         b o r d e r - r a d i u s :   1 6 p x ;  
         p a d d i n g :   1 r e m   1 . 5 r e m ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;  
         b o x - s h a d o w :   0   4 p x   6 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 5 ) ;  
         t r a n s i t i o n :   a l l   0 . 3 s   c u b i c - b e z i e r ( 0 . 4 ,   0 ,   0 . 2 ,   1 ) ;  
         m a r g i n - b o t t o m :   1 r e m ;  
 }  
  
 . r u n n e r - c a r d : h o v e r   {  
         t r a n s f o r m :   t r a n s l a t e X ( 5 p x )   s c a l e ( 1 . 0 2 ) ;  
         b o x - s h a d o w :   0   1 0 p x   1 5 p x   - 3 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 ) ;  
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 9 5 ) ;  
         b o r d e r - c o l o r :   r g b a ( 9 9 ,   1 0 2 ,   2 4 1 ,   0 . 3 ) ;  
         / *   I n d i g o   h i n t   * /  
 }  
  
 / *   R a n k   B a d g e   S m a l l   * /  
 . r a n k - b a d g e - s m a l l   {  
         w i d t h :   2 8 p x ;  
         h e i g h t :   2 8 p x ;  
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 6 4 7 4 8 b   0 % ,   # 4 7 5 5 6 9   1 0 0 % ) ;  
         c o l o r :   w h i t e ;  
         f o n t - w e i g h t :   7 0 0 ;  
         f o n t - s i z e :   0 . 8 5 r e m ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         b o r d e r - r a d i u s :   5 0 % ;  
         m a r g i n - r i g h t :   1 r e m ;  
         b o x - s h a d o w :   0   2 p x   4 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 5 ) ;  
         f l e x - s h r i n k :   0 ;  
 }  
  
 . r a n k - 4   . r a n k - b a d g e - s m a l l   {  
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 3 b 8 2 f 6   0 % ,   # 2 5 6 3 e b   1 0 0 % ) ;  
         / *   B l u e   * /  
 }  
  
 . r a n k - 5   . r a n k - b a d g e - s m a l l   {  
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 0 6 b 6 d 4   0 % ,   # 0 8 9 1 b 2   1 0 0 % ) ;  
         / *   C y a n   * /  
 }  
  
 / *   R u n n e r   P r o f i l e   I n f o   * /  
 . r u n n e r - i n f o   {  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         f l e x - g r o w :   1 ;  
 }  
  
 . r u n n e r - a v a t a r   {  
         w i d t h :   4 0 p x ;  
         h e i g h t :   4 0 p x ;  
         b o r d e r - r a d i u s :   5 0 % ;  
         o b j e c t - f i t :   c o v e r ;  
         m a r g i n - r i g h t :   1 r e m ;  
         b o r d e r :   2 p x   s o l i d   w h i t e ;  
         b o x - s h a d o w :   0   2 p x   4 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 ) ;  
 }  
  
 . r u n n e r - n a m e   {  
         f o n t - w e i g h t :   6 0 0 ;  
         c o l o r :   # 1 f 2 9 3 7 ;  
         f o n t - s i z e :   0 . 9 5 r e m ;  
 }  
  
 . r u n n e r - s t a t s   {  
         t e x t - a l i g n :   r i g h t ;  
 }  
  
 . r u n n e r - s c o r e   {  
         f o n t - w e i g h t :   7 0 0 ;  
         c o l o r :   # 4 f 4 6 e 5 ;  
         / *   I n d i g o - 6 0 0   * /  
         f o n t - s i z e :   1 . 1 r e m ;  
 }  
  
 . r u n n e r - l a b e l   {  
         f o n t - s i z e :   0 . 7 r e m ;  
         c o l o r :   # 6 b 7 2 8 0 ;  
         t e x t - t r a n s f o r m :   u p p e r c a s e ;  
         f o n t - w e i g h t :   6 0 0 ;  
 }  
  
 / *   A n i m a t i o n s   * /  
 @ k e y f r a m e s   f a d e U p   {  
         f r o m   {  
                 o p a c i t y :   0 ;  
                 t r a n s f o r m :   t r a n s l a t e Y ( 2 0 p x ) ;  
         }  
  
         t o   {  
                 o p a c i t y :   1 ;  
                 t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ;  
         }  
 }  
  
 . a n i m a t e - f a d e - u p   {  
         a n i m a t i o n :   f a d e U p   0 . 6 s   e a s e - o u t   f o r w a r d s ;  
         o p a c i t y :   0 ;  
         / *   S t a r   h i d d e n   * /  
 }  
  
 . d e l a y - 1 0 0   {  
         a n i m a t i o n - d e l a y :   0 . 1 s ;  
 }  
  
 . d e l a y - 2 0 0   {  
         a n i m a t i o n - d e l a y :   0 . 2 s ;  
 }  
  
 . d e l a y - 3 0 0   {  
         a n i m a t i o n - d e l a y :   0 . 3 s ;  
 }  
 