/* Circular button */
.circle-btn {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  padding: 0;

  border: none;
  background: transparent;
  position: relative;

  cursor: pointer;
  user-select: none;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;

  /* per-button icon settings (override per button) */
  --icon-mask: none;     /* e.g. url("assets/icons/program.svg") */
  --icon-size: 60%;      /* icon cutout size */
}

.circle-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.10), transparent 45%),
    linear-gradient(180deg, #2a2f36 0%, #0f1114 100%);

  border: 2px solid rgba(251, 191, 36, 0.35);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.32),
    0 0 26px rgba(251, 191, 36, 0.22),
    0 0 60px rgba(251, 191, 36, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 22px rgba(0, 0, 0, 0.35);

  mask-image: radial-gradient(#000 0 0), var(--icon-mask);
  mask-repeat: no-repeat, no-repeat;
  mask-position: center, center;
  mask-size: 100% 100%, var(--icon-size) var(--icon-size);
  mask-composite: exclude;

  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  transform: translateY(0) scale(1);
}

/* White icon overlay on top of the cut-out */
.circle-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background: rgba(255, 255, 255, 0.70);

  mask-image: var(--icon-mask);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: var(--icon-size) var(--icon-size);

  /* IMPORTANT: animate the overlay with the press too */
  transition: transform 120ms ease, opacity 120ms ease, filter 120ms ease;
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* PRESS-DOWN VISUAL (CSS only) */
.circle-btn:active::before,
.circle-btn:active::after {
  transform: translateY(4px) scale(0.985);
}

.circle-btn:active::before {
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(251, 191, 36, 0.18),
    0 0 52px rgba(251, 191, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -10px 18px rgba(0, 0, 0, 0.42);
  filter: brightness(0.98);
}

.circle-btn:active::after {
  opacity: 0.85;
}

.circle-btn:focus-visible {
  outline: 4px solid rgba(251, 191, 36, 0.70);
  outline-offset: 6px;
}

.btn-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 16px;
}

.btn-label {
  font: 700 24px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0.02em;
  color: rgba(20, 22, 26, 0.85);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
