/* The droplet menu: a round button that, pressed, lets six actions out like drops of a liquid. They stretch out of
   it, break away and spread around it on a spring; pressed again, they run back and melt into it. */
:root {
  --page: #000000;          /* the page */
  --goo: #c8ff3d;           /* the liquid */
  --ink: #0b0b0b;           /* the icons on it */
  --label: #f2f2f2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  min-height: 100svh;
  background: var(--page);
  color: var(--label);
  font-family: 'Manrope Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

/* ---------------------------------------------------------------- the menu */
/* everything is placed from the middle: the liquid drawing, the buttons over it, the name of an action */
.radial {
  position: relative;
  width: min(400px, 100vw - 32px);
  aspect-ratio: 1;
  -webkit-tap-highlight-color: transparent;
}

.radial__goo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.radial__liquid {
  fill: var(--goo);
}

.radial__items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.radial__item,
.radial__button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.radial__item {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  will-change: transform;
}

.radial__item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.radial__button {
  z-index: 2;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
}

.radial__plus {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.radial__item:focus-visible,
.radial__button:focus-visible {
  outline: 2px solid var(--label);
  outline-offset: 4px;
}

/* the name of the action pointed at, outside the ring, on its side */
.radial__label {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
