/* ================================
   2048 Game Styles
   ================================ */

#game-2048 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

#score-board {
    display: flex;
    gap: var(--spacing-xl);
    font-size: 1.5rem;
    font-weight: 700;
}

#game-board {
    position: relative;
    width: 90vw;
    max-width: 450px;
    height: 90vw;
    max-height: 450px;
    background: #bbada0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
}

.tile {
    position: absolute;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2rem;
    transition: all 150ms ease-in-out;
}

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

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

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

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

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

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

.tile-128 {
    background: #edcf72;
    color: #f9f6f2;
    font-size: 1.8rem;
}

.tile-256 {
    background: #edcc61;
    color: #f9f6f2;
    font-size: 1.8rem;
}

.tile-512 {
    background: #edc850;
    color: #f9f6f2;
    font-size: 1.6rem;
}

.tile-1024 {
    background: #edc53f;
    color: #f9f6f2;
    font-size: 1.4rem;
}

.tile-2048 {
    background: #edc22e;
    color: #f9f6f2;
    font-size: 1.4rem;
}

.tile-4096 {
    background: #3c3a32;
    color: #f9f6f2;
    font-size: 1.2rem;
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(238, 228, 218, 0.95);
    padding: var(--spacing-xl);
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: #776e65;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: none;
}

#game-over.show {
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #score-board {
        font-size: 1.25rem;
        gap: var(--spacing-lg);
    }

    #game-board {
        max-width: 380px;
        max-height: 380px;
        padding: 12px;
    }

    .tile {
        font-size: 1.6rem !important;
    }

    .tile-128, .tile-256 {
        font-size: 1.4rem !important;
    }

    .tile-512 {
        font-size: 1.2rem !important;
    }

    .tile-1024, .tile-2048, .tile-4096 {
        font-size: 1rem !important;
    }

    #game-over {
        font-size: 1.5rem;
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    #game-board {
        max-width: 320px;
        max-height: 320px;
    }

    .tile {
        font-size: 1.4rem !important;
    }

    .tile-1024, .tile-2048, .tile-4096 {
        font-size: 0.9rem !important;
    }
}
