.match-stage {
    margin-top: 14px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.match-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    user-select: none;
}

.tile {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    touch-action: manipulation;
    transition: transform .12s ease, opacity .12s ease;
}

.tile:active,
.tile.selected {
    transform: scale(.9);
}

.tile.empty {
    opacity: 0;
}

.tile[data-type="0"] {
    background: #f05f57;
}

.tile[data-type="1"] {
    background: #3478f6;
}

.tile[data-type="2"] {
    background: #20a66b;
}

.tile[data-type="3"] {
    background: #ff9f1c;
}

.tile[data-type="4"] {
    background: #7657e8;
}

.tile[data-type="5"] {
    background: #16a3a8;
}
