Meet corner-shape

The new CSS property that takes border-radius way past round corners. Experimental · Chrome/Edge 139+

.card {
  border-radius: 36px;
  corner-shape: round;
}
round
.card {
  border-radius: 36px;
  corner-shape: squircle;
}
squircle
.card {
  border-radius: 36px;
  corner-shape: bevel;
}
bevel
.card {
  border-radius: 36px;
  corner-shape: notch;
}
notch
.card {
  border-radius: 36px;
  corner-shape: scoop;
}
scoop
.card {
  border-radius: 36px;
  /* cancels the radius out */
  corner-shape: square;
}
square
.card {
  border-radius: 36px;
  /* two values: TL+BR, TR+BL */
  corner-shape: notch superellipse(0.6);
}
2-value
.card {
  border-radius: 36px;
  /* one value per corner, clockwise */
  corner-shape: scoop notch squircle bevel;
}
mixed
.card {
  border-radius: 36px;
  /* fine-tune with the function */
  corner-shape: superellipse(-1.5);
}
superellipse(-1.5)
.card {
  border-radius: 36px;
  /* higher = sharper "hyper-squircle" */
  corner-shape: superellipse(3);
}
superellipse(3)
@keyframes morph {
  0%   { corner-shape: squircle; }
  50%  { corner-shape: notch; }
  100% { corner-shape: bevel; }
}

.morph {
  border-radius: 50px;
  animation: morph 6s infinite alternate;
}
animated