/* Sudoku — classic 9x9 */
#game-stage { display: flex; flex-direction: column; align-items: center; width: 100%; }

.su-toprow { width: 100%; max-width: 450px; display: flex; justify-content: flex-end; margin-bottom: 4px; }
.sound-btn { background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 6px 10px; font-size: 16px; cursor: pointer; touch-action: manipulation; }

.su-hud { width: 100%; max-width: 450px; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.su-hud .lbl { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.su-val { font-size: 20px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.su-diff { color: var(--neon3); }

.su-stage-wrap { position: relative; width: 100%; max-width: 450px; aspect-ratio: 1/1; }
.su-canvas { width: 100%; height: 100%; display: block; border: 2px solid #40507f;
  border-radius: 10px; touch-action: none; background: #0b0f24; }

.su-overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: rgba(5,6,15,.85); border-radius: 10px; backdrop-filter: blur(2px); text-align: center; }
.su-overlay.su-hidden { display: none; }
.su-overlay-inner { padding: 20px; }
.su-ov-title { font-size: 34px; font-weight: 900; color: var(--neon); text-shadow: 0 0 16px rgba(0,245,212,.5); margin: 0 0 6px; }
.su-ov-title.lose { color: var(--neon2); text-shadow: 0 0 16px rgba(255,46,151,.5); }
.su-ov-sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.su-overlay .gbtn { margin: 4px; }
.su-hide { display: none !important; }

.su-diff-row { display: inline-flex; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.su-seg-btn { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 14px;
  font-weight: 600; padding: 8px 13px; border-radius: 9px; cursor: pointer; touch-action: manipulation; transition: background .12s, color .12s; }
.su-seg-btn.active { background: var(--neon3); color: #fff; box-shadow: 0 0 14px rgba(123,92,255,.5); }

/* tool buttons (notes / erase / hint) */
.su-tools { width: 100%; max-width: 450px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.su-tool { background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px 6px; font-size: 14px; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.su-tool.active { background: var(--neon3); color: #fff; box-shadow: 0 0 14px rgba(123,92,255,.5); }

/* number pad */
.su-pad { width: 100%; max-width: 450px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.su-key { position: relative; aspect-ratio: 1/1.15; background: var(--panel); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; font-weight: 800; cursor: pointer; touch-action: manipulation;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.su-key .d { font-size: 22px; line-height: 1; }
.su-key .rem { font-size: 10px; color: var(--muted); margin-top: 2px; min-height: 12px; }
.su-key.done { opacity: .35; }
.su-key:active { background: #1a2140; }

@media (max-width: 420px) {
  .su-key .d { font-size: 18px; }
  .su-hud .su-val { font-size: 18px; }
}

.ctrl-hint { color: var(--muted); font-size: 13px; text-align: center; margin: 12px 0 0; }
