.sp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.sp-level-select {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.sp-level-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
}

.sp-level-btn--current {
  border-color: var(--color-accent, #4fd8e0);
  background: rgba(79, 216, 224, 0.15);
}

.sp-level-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.sp-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--sp-size, 6), 1fr);
  grid-template-rows: repeat(var(--sp-size, 6), 1fr);
  gap: 3px;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  padding: 6px;
  border-radius: var(--radius-md);
  background: #1c1f26;
  box-shadow: inset 0 0 0 3px var(--color-border);
}

.sp-cell {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.sp-screw {
  position: relative;
  border: none;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}

.sp-screw--blocked {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.sp-screw--removable {
  box-shadow: inset 0 0 0 2px #fff, inset 0 -3px 0 rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.sp-screw-head {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.game-message {
  min-height: 22px;
  font-weight: 600;
  color: var(--color-accent, #4fd8e0);
  text-align: center;
}
