.c4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
}

.c4__status {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    min-height: 1.4em;
}

.c4__board-wrap {
    width: 100%;
    background: #0b1a3d;
    border-radius: var(--radius-md);
    padding: 10px;
    border: 1px solid var(--border);
}

.c4__columns {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    height: 20px;
}

.c4__columns button,
.c4__col-hit {
    cursor: pointer;
}

.c4__board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 6px;
    aspect-ratio: 7 / 6;
}

.c4__cell {
    background: #061029;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    border: none;
}

.c4__cell::after {
    content: '';
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: #0b1a3d;
    transition: transform 180ms ease, background 180ms ease;
}

.c4__cell[data-mark="R"]::after {
    background: #ff5d6c;
    box-shadow: 0 0 0 2px rgba(255, 93, 108, 0.3);
}
.c4__cell[data-mark="Y"]::after {
    background: #f5c518;
    box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.3);
}

.c4__cell.is-win::after {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px var(--accent-2);
}

.c4__cell:disabled { cursor: default; }

.c4__scoreboard {
    display: flex;
    gap: 24px;
}
.c4__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.c4__score span:last-child {
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 700;
    text-transform: none;
}
