/* Number pad */
.number-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 210px;
  margin: 0 auto;
}

.num-btn {
  width: 100%;
  aspect-ratio: 1;
  font-size: 24px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.06),
    0 1px 2px rgba(0,0,0,0.04);
  cursor: pointer;
  color: #2c3e50;
  transition: all 0.15s ease;
  padding: 0;
}

.num-btn:hover {
  background: #f0ede8;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}

.num-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.num-btn.completed {
  opacity: 0.25;
  cursor: default;
  transform: none !important;
  box-shadow: none !important;
}

/* Controls */
.side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  width: 230px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.controls-editing {
  grid-template-columns: repeat(2, 1fr);
}

.controls-editing .ctrl-wide {
  grid-column: 1 / -1;
}

.ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px 10px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.06),
    0 1px 2px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.15s;
  gap: 4px;
}

.ctrl-btn:hover {
  background: #f0ede8;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.ctrl-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.ctrl-icon {
  font-size: 20px;
  line-height: 1;
}

.ctrl-label {
  font-size: 10px;
  color: #7f8c8d;
  font-weight: 600;
}

.no-score-group {
  width: 100%;
  border: 1.5px solid #ddd8ce;
  border-radius: 12px;
  padding: 10px;
  background: #f5f0e8;
}

.no-score-group .controls {
  grid-template-columns: repeat(2, 1fr);
}

.no-score-label {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #bdc3c7;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ctrl-btn.active {
  background: #cde4f7;
  box-shadow: 0 2px 8px rgba(41,128,185,0.2);
}

.ctrl-btn.active .ctrl-label { color: #2980b9; }

.ctrl-btn.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.ctrl-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 8px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 1px 3px rgba(231,76,60,0.3);
}

.ctrl-btn { position: relative; }

