.cp .panel { min-width: 0; }
.cp-opts { gap: 8px; align-items: center; }
.cp-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); }
.cp-dot.red { background: #d7263d; } .cp-dot.yellow { background: #f7c815; }
.cp-status { text-align: center; margin: 16px 0 0; min-height: 28px; font-size: 17px; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; }
.cp-wrap { max-width: 480px; margin: 10px auto 0; }
.cp-scores, .cp-nums { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 10px; text-align: center; }
.cp-scores { min-height: 0; }
.cp-scores.on { margin-bottom: 6px; min-height: 30px; }
.cp-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; }
.cp-sc:empty { visibility: hidden; }
.cp-sc.best { background: var(--ink); color: var(--canvas); border-color: var(--ink); font-weight: 500; }
.cp-nums { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
:root { --cp-frame: #1d1d1f; }
:root[data-theme="dark"] { --cp-frame: #3b3b40; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cp-frame: #3b3b40; } }
.cp-board { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 10px; border-radius: 18px; background: var(--cp-frame); touch-action: manipulation; overflow: hidden; }
.cp-board.busy .cp-cell { cursor: default; }
.cp-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%; position: relative; -webkit-tap-highlight-color: transparent; }
.cp-cell i { width: 100%; height: 100%; border-radius: 50%; background: var(--canvas); box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }
.cp-cell.red i { background: #d7263d; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.cp-cell.yellow i { background: #f7c815; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.cp-cell.ghost i { background: color-mix(in srgb, #d7263d 35%, var(--canvas)); }
.cp-cell.ghost.g2 i { background: color-mix(in srgb, #f7c815 45%, var(--canvas)); }
.cp-cell.hint::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 3px dashed #fff; pointer-events: none; }
.cp-cell.win i { outline: 4px solid #fff; outline-offset: -8px; }
.cp-cell.drop i { animation: cp-drop calc(120ms + var(--fall) * 45ms) cubic-bezier(.45, 0, .9, .6) both; }
@keyframes cp-drop { from { transform: translateY(calc(var(--fall) * -112%)); } to { transform: translateY(0); } }
.cp-cell.win i { animation: cp-win .6s ease-in-out 2 alternate; }
@keyframes cp-win { to { transform: scale(.86); } }
@media (prefers-reduced-motion: reduce) { .cp-cell i, .cp-cell.drop i, .cp-cell.win i { animation: none !important; } }
.cp-cell:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.cp-actions { justify-content: center; }
.cp-msg { max-width: 560px; margin: 12px auto 0; }
.cp-msg:empty { display: none; }
.cp-keys { text-align: center; max-width: 560px; margin: 12px auto 0; }
.cp-tally-panel { margin-top: 16px; }
.cp-table { font-size: 14px; max-width: 420px; }
.cp-table td.num { font-family: var(--mono); }

/* Play a friend by link */
#cpLinkYou { margin: 12px auto 0; display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; }
#cpLinkYou[hidden] { display: none; }
.cp-link { max-width: 560px; margin: 14px auto 0; border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: 12px 14px; background: var(--canvas); }
.cp-link-h { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.cp-link-row { display: flex; gap: 8px; align-items: center; }
.cp-link-row input { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 13px; }
.cp-link .note { margin: 8px 0 0; }
@media (max-width: 480px) { .cp-link-row { flex-wrap: wrap; } .cp-link-row input { flex-basis: 100%; } }
