* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.race-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.status-racing {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    color: #4CAF50;
    margin-bottom: 15px;
}

.status-finished {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    color: #FF9800;
    margin-bottom: 15px;
}

.teams-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.team-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
}

.team-name {
    flex: 1;
    font-weight: bold;
}

.team-points {
    font-weight: bold;
    color: #FFD700;
}

.track-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.track {
    position: relative;
    height: 300px;
    background: linear-gradient(90deg, #2d3748, #4a5568);
    border: 3px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        rgba(255, 255, 255, 0.1) 50px,
        rgba(255, 255, 255, 0.1) 100px
    );
}

.finish-line {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100px;
    width: 5px;
    background: repeating-linear-gradient(
        180deg,
        #ffffff,
        #ffffff 10px,
        #000000 10px,
        #000000 20px
    );
    z-index: 1;
}

.finish-line::after {
    content: '🏁';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
}

.car {
    position: absolute;
    left: 50px;
    width: 80px;
    height: 40px;
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

#car1 { top: 40px; }
#car2 { top: 110px; }
#car3 { top: 180px; }
#car4 { top: 250px; }

#alert-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

#current-alert {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

#current-alert.show {
    opacity: 1;
    transform: scale(1);
}

.recent-donations {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.recent-donations h3 {
    margin-bottom: 10px;
    color: #FFD700;
}

.donation-item {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: between;
}

.donation-username {
    font-weight: bold;
    color: #4FC3F7;
}

.donation-gift {
    color: #FFD700;
    margin-left: auto;
}

/* Animación de victoria */
@keyframes winAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.win-effect {
    animation: winAnimation 0.5s ease infinite;
    filter: drop-shadow(0 0 10px gold);
}

/* Efecto de turbo */
.turbo-effect {
    filter: drop-shadow(0 0 15px #FF4444) hue-rotate(90deg);
    transition: filter 0.3s ease;
}