:root {
  --fondo: #f3f3f5;
  --fondo-basso: #e9e9ee;
  --inchiostro: #18181b;
  --grigio: #71717a;
  --accento: #5b63f5;
  --s: min(24vw, 27vh, 168px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: manipulation;
}

.stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.row {
  position: relative;
  list-style: none;
  display: flex;
  gap: calc(var(--s) * 0.3);
  align-items: flex-start;
}

.app {
  position: relative;
  width: var(--s);
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: calc(var(--s) * 5);
}

.app__shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  top: calc(var(--s) * 0.86);
  height: calc(var(--s) * 0.2);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 36, 72, 0.26), rgba(36, 36, 72, 0));
  filter: blur(calc(var(--s) * 0.04));
  pointer-events: none;
}

.app__icon {
  position: relative;
  display: block;
  width: var(--s);
  height: var(--s);
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 28%;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.app__icon:focus-visible {
  box-shadow: 0 0 0 2px var(--fondo), 0 0 0 4px var(--accento);
}

.app__glass {
  display: block;
  width: 100%;
  height: 100%;
}

.app__name {
  position: relative;
  display: block;
  height: 1.35em;
  margin-top: calc(var(--s) * 0.13);
  overflow: hidden;
  font-size: clamp(11px, calc(var(--s) * 0.13), 14px);
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  letter-spacing: 0.005em;
  color: var(--grigio);
  text-align: center;
  white-space: nowrap;
}

.app__line {
  display: block;
  line-height: 1.35em;
}

.app__line--open {
  color: var(--inchiostro);
}

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}

.ghost path {
  fill: #111114;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
