.g1024-board {
    --cell: clamp(64px, 21vw, 96px);
    --gap: 8px;
    display: grid;
    grid-template-columns: repeat(4, var(--cell));
    grid-template-rows: repeat(4, var(--cell));
    gap: var(--gap);
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.35);
    padding: var(--gap);
    border-radius: 12px;
}

.g1024-cell {
    width: var(--cell);
    height: var(--cell);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Orbitron, sans-serif;
    font-weight: 700;
    font-size: calc(var(--cell) * 0.36);
    color: #fff;
    transition: transform 0.12s ease, background 0.12s ease;
}

.g1024-cell.t2 { background: #3d4a63; color: #e8eefc; }
.g1024-cell.t4 { background: #4a5d7a; }
.g1024-cell.t8 { background: #c47a2a; }
.g1024-cell.t16 { background: #e08a22; }
.g1024-cell.t32 { background: #ff6b2d; }
.g1024-cell.t64 { background: #ff4d4d; }
.g1024-cell.t128 { background: #2ee6a6; color: #062018; font-size: calc(var(--cell) * 0.3); }
.g1024-cell.t256 { background: #1ec9ff; color: #041820; font-size: calc(var(--cell) * 0.3); }
.g1024-cell.t512 { background: #7c5cff; font-size: calc(var(--cell) * 0.28); }
.g1024-cell.t1024,
.g1024-cell.t2048,
.g1024-cell.t4096 {
    background: linear-gradient(135deg, #ffb020, #ff6b2d);
    color: #1a1000;
    font-size: calc(var(--cell) * 0.26);
    box-shadow: 0 0 18px rgba(255, 176, 32, 0.45);
}

.g1024-cell.pop { transform: scale(1.06); }

@media (max-width: 420px) {
    .g1024-board {
        --cell: calc((100vw - 3.2rem) / 4 - 8px);
        --gap: 6px;
    }
}
