/* Board on the left, filling the height; difficulty, number pad and tools on the right. */
.sdk-main { flex-direction: row; gap: clamp(20px, 3vw, 56px); }

.sdk-board {
  height: 100%; max-height: 100%; aspect-ratio: 1 / 1; max-width: 58vw; flex: 0 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 5px;
  padding: 6px; border-radius: var(--radius); background: var(--sea-deep);
  container-type: size;
}
.sdk-box { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; background: #7d8f93; overflow: hidden; }
.sdk-box:nth-child(1) { border-top-left-radius: 14px; }
.sdk-box:nth-child(3) { border-top-right-radius: 14px; }
.sdk-box:nth-child(7) { border-bottom-left-radius: 14px; }
.sdk-box:nth-child(9) { border-bottom-right-radius: 14px; }

.sdk-cell {
  position: relative; display: grid; place-items: center; min-width: 0; min-height: 0;
  background: var(--cream); cursor: pointer; touch-action: manipulation;
  font-family: var(--sans); line-height: 1;
}
/* Givens: bold, dark and locked. Guest's numbers: lighter weight in sea blue. */
.sdk-value { font-size: 7cqh; font-weight: 300; color: #2c6e86; }
.sdk-cell.is-given { cursor: default; }
.sdk-cell.is-given .sdk-value { font-weight: 600; color: var(--ink); }
.sdk-cell.is-peer { background: #ebe3d6; }
.sdk-cell.is-same { background: #ecd2b4; }
.sdk-cell.is-sel { background: #f2d9bd; box-shadow: inset 0 0 0 4px var(--coral); }
.sdk-cell.is-bad .sdk-value { color: var(--bad); }
.sdk-cell.is-bad:not(.is-given) { background: #f3d6d0; }
.sdk-cell.is-bad.is-sel { box-shadow: inset 0 0 0 4px var(--bad); }
.sdk-cell.is-new .sdk-value { animation: sdk-pop 0.18s ease-out; display: inline-block; }
@keyframes sdk-pop { from { transform: scale(0.6); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sdk-cell.is-new .sdk-value { animation: none; } }

.sdk-notes {
  position: absolute; inset: 6%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  font-size: 2.9cqh; font-weight: 400; color: #4a5560; pointer-events: none;
}
.sdk-notes i { font-style: normal; display: grid; place-items: center; visibility: hidden; }
.sdk-notes i.on { visibility: visible; }

/* ---------- side panel ---------- */
.sdk-side { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vh, 22px); }
.sdk-side .game-message { max-width: calc(var(--key) * 3 + 24px); min-height: 2.6em; display: grid; place-items: center; font-size: 1.2rem; }
.sdk-side { --key: clamp(64px, 11.5vh, 124px); }
.sdk-pad { display: grid; grid-template-columns: repeat(3, var(--key)); gap: 12px; }
.sdk-num {
  height: var(--key); border: 0; border-radius: 18px; cursor: pointer; touch-action: manipulation;
  background: var(--sea-deep); color: var(--cream);
  font-family: var(--sans); font-size: calc(var(--key) * 0.46); font-weight: 400; line-height: 1;
}
.sdk-num:active { transform: scale(0.95); background: var(--sea); }
.sdk-num.is-done { opacity: 0.35; }
.sdk-tools { display: grid; grid-template-columns: repeat(3, var(--key)); gap: 12px; width: calc(var(--key) * 3 + 24px); }
.sdk-tools .gbtn { flex-direction: column; gap: 4px; padding: 6px 4px; min-width: 0; min-height: calc(var(--key) * 0.85); font-size: 0.95rem; }
