.score-bar {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 0 auto 20px;
}

.score-box {
    background: var(--dark);
    border-radius: 10px;
    padding: 10px 28px;
    text-align: center;
    min-width: 100px;
}

.score-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.score-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    font-family: 'Orbitron', monospace;
    transition: transform 0.15s ease;
}

.board-2048 {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    grid-template-rows: repeat(4, 80px);
    gap: 10px;
    background: #bbada0;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    user-select: none;
    touch-action: none;
}

.tile {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Orbitron', monospace;
    color: #776e65;
    background: #cdc1b4;
    transition: background 0.1s ease;
    animation: tilePop 0.12s ease both;
}

@keyframes tilePop {
    from { transform: scale(0.85); opacity: 0.7; }
    to   { transform: scale(1);    opacity: 1; }
}

.tile-2    { background: #eee4da; }
.tile-4    { background: #ede0c8; }
.tile-8    { background: #f2b179; color: white; }
.tile-16   { background: #f59563; color: white; }
.tile-32   { background: #f67c5f; color: white; }
.tile-64   { background: #f65e3b; color: white; }
.tile-128  { background: #edcf72; color: white; font-size: 1.3rem; box-shadow: 0 0 20px rgba(237,207,114,0.5); }
.tile-256  { background: #edcc61; color: white; font-size: 1.3rem; box-shadow: 0 0 20px rgba(237,204,97,0.6); }
.tile-512  { background: #edc850; color: white; font-size: 1.3rem; box-shadow: 0 0 20px rgba(237,200,80,0.7); }
.tile-1024 { background: #edc53f; color: white; font-size: 1.1rem; box-shadow: 0 0 30px rgba(237,197,63,0.8); }
.tile-2048 { background: #edc22e; color: white; font-size: 1.1rem; box-shadow: 0 0 40px rgba(237,194,46,0.9); animation: winGlow 1s ease infinite alternate; }
.tile-4096,
.tile-8192 { background: #3c3a32; color: white; font-size: 1rem; }

@keyframes winGlow {
    from { box-shadow: 0 0 20px rgba(237,194,46,0.6); }
    to   { box-shadow: 0 0 50px rgba(237,194,46,1); }
}

@media (max-width: 440px) {
    .board-2048 {
        grid-template-columns: repeat(4, 62px);
        grid-template-rows: repeat(4, 62px);
        gap: 8px;
        padding: 8px;
    }
    .tile { width: 62px; height: 62px; font-size: 1.2rem; }
    .tile-128, .tile-256, .tile-512 { font-size: 1rem; }
    .tile-1024, .tile-2048, .tile-4096, .tile-8192 { font-size: 0.85rem; }
}
