.c4 .split > *, .c4 .panel { min-width: 0; }
.c4-top { gap: 8px; }
.c4-paint, .c4-side { margin-top: 12px; align-items: center; gap: 8px; }
.c4-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.c4-dot.red { background: #d7263d; } .c4-dot.yellow { background: #f7c815; }
.c4-board-wrap { max-width: 460px; margin: 18px auto 0; }
.c4-scores, .c4-nums { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 10px; text-align: center; }
.c4-scores { margin-bottom: 6px; min-height: 30px; }
.c4-sc { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; border-radius: var(--pill); padding: 4px 0; color: var(--ink); background: var(--canvas); border: 1px solid var(--line); min-height: 30px; display: flex; align-items: center; justify-content: center; }
.c4-sc:empty { visibility: hidden; }
.c4-sc.best { background: var(--ink); color: var(--canvas); border-color: var(--ink); font-weight: 500; }
.c4-nums { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
:root { --c4-frame: #1d1d1f; }
:root[data-theme="dark"] { --c4-frame: #3b3b40; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c4-frame: #3b3b40; } }
.c4-board { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 10px; border-radius: 18px; background: var(--c4-frame); }
.c4-cell { aspect-ratio: 1; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 0; border-radius: 50%; }
.c4-cell i { width: 100%; height: 100%; border-radius: 50%; background: var(--canvas); box-shadow: inset 0 2px 4px rgba(0,0,0,.25); transition: background .12s; }
.c4-cell.red i { background: #d7263d; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.c4-cell.yellow i { background: #f7c815; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.c4-cell.win i { outline: 3px solid #fff; outline-offset: -7px; }
.c4-cell:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
@media (hover: hover) { .c4-cell:hover i { filter: brightness(.94); } }
@media (prefers-reduced-motion: reduce) { .c4-cell i { transition: none; } }
.c4-run { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 12px; }
.c4-table { margin-top: 12px; font-size: 14px; }
.c4-table td, .c4-table th { padding: 8px 10px; }
.c4-table tr.best td { font-weight: 600; color: var(--ink); }
.c4-table td.num { font-family: var(--mono); white-space: nowrap; }
.c4-moves { margin-top: 16px; }
