.game-container {
    width: 100%;
    max-width: 100%;
}

.instruction-banner {
    font-family: sans-serif;
    font-size: 1.8em;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.race-track {
    position: relative;
    background: linear-gradient(180deg, #2d5016 0%, #4a7c28 50%, #2d5016 100%);
    border: 4px solid #333;
    border-radius: 10px;
    padding: 20px;
    min-height: 500px;
    display: flex;
    gap: 30px;
    overflow: hidden;
}

.finish-line {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 60px;
    background: repeating-linear-gradient(
        45deg,
        #000,
        #000 10px,
        #fff 10px,
        #fff 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffff00;
    font-size: 1.2em;
    letter-spacing: 4px;
    z-index: 1;
}

.lane {
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed #fff;
    border-radius: 8px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.lane-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9em;
    z-index: 2;
}

.race-car {
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    width: 50px;
    height: 80px;
    transition: bottom 0.2s ease-out;
}

.car-body {
    width: 100%;
    height: 100%;
    position: relative;
}

.player-car .car-body {
    background: linear-gradient(180deg, #ff0000 0%, #ff0000 20%, #cc0000 20%, #cc0000 80%, #ff0000 80%, #ff0000 100%);
    border-radius: 8px 8px 5px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid #aa0000;
}

.opponent-car .car-body {
    background: linear-gradient(180deg, #0066ff 0%, #0066ff 20%, #0044cc 20%, #0044cc 80%, #0066ff 80%, #0066ff 100%);
    border-radius: 8px 8px 5px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid #0044aa;
}

.car-top {
    position: absolute;
    top: 5px;
    left: 10px;
    width: 26px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.car-windshield {
    position: absolute;
    top: 28px;
    left: 10px;
    width: 26px;
    height: 24px;
    background: rgba(100, 150, 200, 0.6);
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.car-windshield::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.result-display {
    font-size: 3em;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    font-weight: bold;
    color: #333;
}

.score-container {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.score-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 140px;
    text-align: center;
}

.score-label {
    font-weight: bold;
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

.score-value {
    font-size: 1.5em;
    font-weight: bold;
}

.start-btn {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.start-btn:active {
    transform: translateY(0);
}

.start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes celebrate {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.15); }
}

.celebrate {
    animation: celebrate 0.3s ease-in-out;
}
