.kk-wrap { display: grid; grid-template-columns: minmax(0, 560px) minmax(200px, 260px); gap: 20px; justify-content: center; align-items: start; }
.kk-board { --n: 8; display: grid; grid-template-columns: repeat(var(--n), 1fr); aspect-ratio: 1; width: 100%; border: 3px solid #0a3d33; border-radius: 8px; overflow: hidden; background: #0a3d33; gap: 1px; user-select: none; -webkit-user-select: none; }
.kk-cell { position: relative; background: #fff; display: grid; place-items: center; cursor: pointer; min-width: 0; }
.kk-cell.black { background: #1d4a40; cursor: default; }
.kk-cell.clue { background: #1d4a40 linear-gradient(to top right, transparent calc(50% - 1px), rgba(255,255,255,.35) 50%, transparent calc(50% + 1px)); }
.kk-cell.black.hl { background-color: #2c6f5e; }
.kk-down, .kk-across { position: absolute; color: #fff; font: 700 clamp(.55rem, 2.2vw, .95rem)/1 var(--font-body); }
.kk-down { left: 10%; bottom: 8%; }
.kk-across { right: 10%; top: 8%; }
.kk-val { font: 800 clamp(1rem, 4.6vw, 1.9rem)/1 var(--font-display); color: var(--ink); }
.kk-notes { position: absolute; inset: 6%; display: grid; grid-template-columns: repeat(3, 1fr); font-size: clamp(.45rem, 1.5vw, .7rem); color: var(--muted); line-height: 1; place-items: center; pointer-events: none; }
.kk-notes i { font-style: normal; }
.kk-cell.run { background: #e7f3ef; }
.kk-cell.sel { background: #f1dd8e; box-shadow: inset 0 0 0 2px var(--chip); }
.kk-cell.bad .kk-val { color: #c8323a; }
.kk-board.won .kk-cell:not(.black) { background: #dff2ea; }
.kk-side { display: flex; flex-direction: column; gap: 14px; }
.kk-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.kk-key { height: 48px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface, #fff); font: 800 1.2rem var(--font-display); color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 var(--line-strong); display: grid; place-items: center; }
.kk-key:active { transform: translateY(2px); box-shadow: none; }
.kk-help { font-size: .9rem; background: var(--subtle, #f2f4f6); border-radius: 12px; padding: 10px 12px; }
.kk-help-title { margin: 0 0 6px; font-weight: 700; color: var(--muted); font-size: .82rem; }
.kk-combo { margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.btn.on { border-color: var(--ink); background: var(--subtle, #eef0f2); }
@media (max-width: 760px) {
  .kk-wrap { grid-template-columns: 1fr; }
  .kk-pad { grid-template-columns: repeat(10, 1fr); gap: 4px; }
  .kk-key { height: 44px; font-size: 1.05rem; }
}
