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

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
}

.stat {
    text-align: center;
}

.game-area {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(180deg, #87CEEB 0%, #87CEEB 60%, #8FBC8F 60%, #8FBC8F 100%);
    border: 4px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, #8FBC8F 0%, #654321 20%, #4a3018 100%);
    border-top: 3px solid #3e2723;
}

.motorcycle {
    position: absolute;
    left: 20%;
    bottom: 100px;
    width: 120px;
    height: 80px;
    z-index: 10;
    transition: bottom 0.5s ease-out;
}

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

/* Main motorcycle fuel tank and body */
.bike-body::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 15px;
    width: 80px;
    height: 35px;
    background: linear-gradient(90deg, #1e90ff 0%, #0066cc 40%, #1e90ff 100%);
    border-radius: 40% 60% 20% 10%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 2px solid #004499;
}

/* Motorcycle engine */
.bike-body::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 30px;
    width: 50px;
    height: 30px;
    background: linear-gradient(180deg, #444 0%, #222 50%, #666 100%);
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Handle bars */
.bike-seat {
    position: absolute;
    top: 10px;
    left: 40%;
    width: 30px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.bike-seat::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 8px;
    height: 12px;
    background: #666;
    border-radius: 50%;
}

.bike-seat::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 8px;
    height: 12px;
    background: #666;
    border-radius: 50%;
}

.bike-rider {
    position: absolute;
    top: -30px;
    left: 40%;
    width: 35px;
    height: 45px;
    background: #4169E1;
    border-radius: 50% 50% 20% 20%;
    border: 2px solid #1e3a8a;
}

.bike-rider::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 5px;
    width: 25px;
    height: 25px;
    background: #FFD700;
    border-radius: 50%;
    border: 2px solid #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bike-wheel {
    position: absolute;
    bottom: -5px;
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, #222 0%, #555 40%, #222 60%, #000 100%);
    border-radius: 50%;
    border: 3px solid #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.bike-wheel-front {
    right: 8px;
}

.bike-wheel-back {
    left: 8px;
}

.bike-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
}

/* Wheel spin animation */
@keyframes wheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.game-running .bike-wheel {
    animation: wheelSpin 0.3s linear infinite;
}

.obstacles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.obstacle {
    position: absolute;
    bottom: 100px;
}

/* Small rock */
.rock-small {
    width: 30px;
    height: 20px;
    background: radial-gradient(ellipse, #a0a0a0 0%, #808080 50%, #606060 100%);
    border-radius: 45% 55% 60% 40% / 60% 55% 45% 40%;
    border: 2px solid #555;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
}

/* Medium rock */
.rock-medium {
    width: 45px;
    height: 30px;
    background: radial-gradient(ellipse, #909090 0%, #707070 50%, #505050 100%);
    border-radius: 40% 60% 55% 45% / 55% 60% 40% 45%;
    border: 2px solid #444;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

/* Large rock */
.rock-large {
    width: 60px;
    height: 40px;
    background: radial-gradient(ellipse, #808080 0%, #606060 50%, #404040 100%);
    border-radius: 35% 65% 60% 40% / 60% 65% 35% 40%;
    border: 3px solid #333;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.5);
}

@keyframes slideLeft {
    from { right: -100px; }
    to { right: 100%; }
}

.obstacle {
    animation: slideLeft 3s linear;
}

/* Jump animation - bigger and slower for toddlers */
.jumping {
    animation: jump 1.2s ease-out;
}

@keyframes jump {
    0% { bottom: 100px; }
    25% { bottom: 220px; }
    50% { bottom: 250px; }
    75% { bottom: 220px; }
    100% { bottom: 100px; }
}

/* Bounce animation when hitting rock */
.bouncing {
    animation: bounce 0.8s ease-out;
}

@keyframes bounce {
    0% { bottom: 100px; }
    50% { bottom: 180px; }
    100% { bottom: 100px; }
}

/* Crash animation */
.crashed {
    animation: crash 0.8s ease-out forwards;
}

@keyframes crash {
    0% { transform: rotate(0deg); bottom: 100px; }
    50% { transform: rotate(45deg); bottom: 120px; }
    100% { transform: rotate(90deg); bottom: 80px; opacity: 0.7; }
}

.controls-info {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #3b82f6;
    margin: 20px 0;
}

.start-btn, .restart-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;
}

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

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

.game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 100;
}

.game-over-screen h2 {
    font-size: 2em;
    color: #dc2626;
    margin-bottom: 20px;
}

.game-over-screen p {
    font-size: 1.2em;
    margin: 10px 0;
    color: #333;
}