* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.game-header {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.game-header h1 {
    color: #8b4513;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-header p {
    color: #a0522d;
    margin-top: 5px;
    font-size: 1rem;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #d4a574, #c9956e);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.score-display {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #8b4513;
    font-weight: bold;
    z-index: 10;
}

.high-score-display {
    position: absolute;
    top: 50px;
    right: 20px;
    font-size: 1rem;
    color: #a0522d;
    z-index: 10;
}

.game-area {
    width: 100%;
    max-width: 800px;
    height: 300px;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 70%, #8FBC8F 70%, #8FBC8F 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, #8FBC8F, #6B8E23);
}

.player {
    position: absolute;
    bottom: 60px;
    left: 80px;
    width: 60px;
    height: 60px;
    z-index: 5;
    transition: none;
}

.player img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.player.jumping {
    animation: none;
}

.obstacle {
    position: absolute;
    bottom: 60px;
    width: 50px;
    height: 50px;
    z-index: 4;
}

.obstacle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.start-screen,
.game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: none;
}

.start-screen.show,
.game-over-screen.show {
    display: block;
}

.start-screen h2,
.game-over-screen h2 {
    color: #8b4513;
    font-size: 2rem;
    margin-bottom: 15px;
}

.start-screen p,
.game-over-screen p {
    color: #a0522d;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.start-btn,
.restart-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.start-btn:hover,
.restart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

/* Clouds decoration */
.game-area::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    width: 80px;
    height: 40px;
    background: white;
    border-radius: 50px;
    box-shadow:
        30px -10px 0 10px white,
        60px 0 0 5px white;
    opacity: 0.8;
    animation: cloudMove 20s linear infinite;
}

.game-area::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 60%;
    width: 60px;
    height: 30px;
    background: white;
    border-radius: 50px;
    box-shadow:
        20px -8px 0 8px white,
        40px 0 0 4px white;
    opacity: 0.7;
    animation: cloudMove 25s linear infinite;
}

@keyframes cloudMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100vw);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 1.8rem;
    }

    .game-header p {
        font-size: 0.9rem;
    }

    .back-btn {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 10px;
    }

    .game-area {
        width: 95%;
        height: 250px;
    }

    .player {
        width: 50px;
        height: 50px;
        left: 50px;
    }

    .obstacle {
        width: 40px;
        height: 40px;
    }

    .score-display {
        top: 10px;
        right: 10px;
        font-size: 1.2rem;
    }

    .high-score-display {
        top: 35px;
        right: 10px;
        font-size: 0.9rem;
    }

    .start-screen,
    .game-over-screen {
        padding: 30px 40px;
    }
}
