body {

        font-family: Arial, sans-serif;
        color: #776e65;
    }

    .game-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 20px;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .title {
        font-size: 60px;
        font-weight: bold;
        margin: 0;
    }

    .scores {
        display: flex;
        gap: 10px;
    }

    .score-box {
        background-color: #bbada0;
        color: white;
        padding: 10px 15px;
        border-radius: 5px;
        text-align: center;
        min-width: 80px;
    }

    .score-title {
        font-size: 14px;
        text-transform: uppercase;
    }

    .score-value {
        font-size: 22px;
        font-weight: bold;
    }

    .game-intro {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .description {
        font-size: 18px;
        max-width: 60%;
    }

    .new-game-btn {
        background-color: #8f7a66;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
    }

    .new-game-btn:hover {
        background-color: #9f8b77;
    }

    .game-board {
        background-color: #bbada0;
        border-radius: 6px;
        padding: 15px;
        position: relative;
        margin-bottom: 20px;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 15px;
    }

    .cell {
        background-color: #cdc1b4;
        border-radius: 3px;
        height: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 45px;
        font-weight: bold;
        color: #776e65;
    }

    .tile-2 {
        background-color: #eee4da;
    }

    .tile-4 {
        background-color: #ede0c8;
    }

    .tile-8 {
        background-color: #f2b179;
        color: white;
    }

    .tile-16 {
        background-color: #f59563;
        color: white;
    }

    .tile-32 {
        background-color: #f67c5f;
        color: white;
    }

    .tile-64 {
        background-color: #f65e3b;
        color: white;
    }

    .tile-128 {
        background-color: #edcf72;
        color: white;
        font-size: 40px;
    }

    .tile-256 {
        background-color: #edcc61;
        color: white;
        font-size: 40px;
    }

    .tile-512 {
        background-color: #edc850;
        color: white;
        font-size: 40px;
    }

    .tile-1024 {
        background-color: #edc53f;
        color: white;
        font-size: 35px;
    }

    .tile-2048 {
        background-color: #edc22e;
        color: white;
        font-size: 35px;
    }

    .game-over {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(238, 228, 218, 0.73);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        z-index: 100;
        display: none;
    }

    .game-over-text {
        font-size: 60px;
        font-weight: bold;
        color: #776e65;
        margin-bottom: 30px;
    }

    .try-again-btn {
        background-color: #8f7a66;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
    }

    .try-again-btn:hover {
        background-color: #9f8b77;
    }

    .instructions {
        max-width: 500px;
        margin: 0 auto;
        line-height: 1.5;
    }

    @media (max-width: 520px) {
        .title {
            font-size: 40px;
        }

        .score-box {
            min-width: 60px;
            padding: 5px 10px;
        }

        .score-title {
            font-size: 12px;
        }

        .score-value {
            font-size: 18px;
        }

        .cell {
            height: 70px;
            font-size: 35px;
        }

        .tile-128,
        .tile-256,
        .tile-512 {
            font-size: 30px;
        }

        .tile-1024,
        .tile-2048 {
            font-size: 25px;
        }
    }