body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background: #e0f7fa;
    text-align: center;
    margin: 0;
    padding: 0;
}
h1 {
    color: #ff9800;
    margin-top: 20px;
}
#game-area {
    position: relative;
    width: 80vw;
    max-width: 800px;
    margin: 40px auto 20px auto;
    height: 260px;
    background: #fffde7;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
}
.track {
    position: relative;
    width: 100%;
    height: 100px;
    margin: 10px 0;
    border-bottom: 4px dashed #bdbdbd;
    background: linear-gradient(90deg, #fce4ec 0%, #f3e5f5 100%);
    border-radius: 10px;
}
.runner {
    position: absolute;
    left: 0;
    top: 10px;
    width: 80px;
    height: 80px;
    transition: left 0.1s;
}
.finish-line {
    position: absolute;
    right: 40px;
    top: 0;
    width: 10px;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #fff,
        #fff 5px,
        #ff5252 5px,
        #ff5252 10px
    );
    border-radius: 5px;
    z-index: 2;
}
#controls {
    margin: 20px auto;
}
#controls button {
    font-size: 1.2em;
    margin: 0 20px;
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    background: #ffecb3;
    color: #ff9800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
#controls button:hover {
    background: #ffe082;
}
#resetBtn {
    background: #ffcdd2 !important;
    color: #d32f2f !important;
}
#resetBtn:hover {
    background: #ef9a9a !important;
}
#winner {
    margin-top: 30px;
    font-size: 2em;
    color: #43a047;
    min-height: 60px;
}
#winner img {
    width: 80px;
    vertical-align: middle;
    animation: bounce 1s infinite alternate;
}
@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}
#leaderboard {
    margin: 30px auto;
    max-width: 400px;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
#leaderboard h2 {
    color: #ff9800;
    margin: 0 0 20px 0;
    font-size: 1.5em;
}
.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin: 5px 0;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 1.1em;
}
.rank {
    font-weight: bold;
    color: #ff9800;
    min-width: 30px;
}
.player {
    flex: 1;
    text-align: left;
    margin-left: 15px;
}
.wins {
    font-weight: bold;
    color: #43a047;
    min-width: 40px;
} 