html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0c0d11;
  font-family: system-ui, ui-sans-serif, sans-serif;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

#field {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transform: translate(-50%, -50%);
  appearance: none;
  -webkit-appearance: none;
}

.shape:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.shape.circle {
  border-radius: 50%;
}

.shape.rect {
  border-radius: 22%;
}

.shape.triangle {
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
  border-left: calc(var(--s) * 0.5) solid transparent;
  border-right: calc(var(--s) * 0.5) solid transparent;
  border-bottom: var(--s) solid var(--c);
}

#reset {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

#reset:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}
