:root {
  --fondo: #ffffff;
  --inchiostro: #121214;
  --grigio: #6f6f78;
  --grigio-chiaro: #a3a3ab;
  --bordo: rgba(18, 18, 20, 0.1);
  --campo: #f4f4f5;
  --accento: #4f46e5;
  --accento-chiaro: rgba(79, 70, 229, 0.1);
}

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

html, body { height: 100%; }

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

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
}

/* the card */
.team {
  width: min(372px, 92vw);
  padding: 18px 18px 16px;
  border: 1px solid var(--bordo);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 18, 20, 0.04), 0 12px 32px -18px rgba(18, 18, 20, 0.22);
  display: flex; flex-direction: column; gap: 16px;
}

.team__head { display: flex; align-items: center; gap: 11px; }
.team__mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--inchiostro);
  flex: none;
}
.team__mark svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.team__text { flex: 1; min-width: 0; }
.team__name { font-size: 15px; font-weight: 640; letter-spacing: -0.01em; }
.team__sub { font-size: 12.5px; color: var(--grigio); margin-top: 1px; }
.team__tag {
  font-size: 11.5px; font-weight: 560; color: var(--grigio);
  padding: 4px 9px; border-radius: 99px; background: var(--campo);
}

/* the row: stack on the left, the invite on the right */
.row { position: relative; height: 42px; display: flex; align-items: center; }

.stack { position: relative; height: 36px; flex: none; }

.av {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 640; letter-spacing: 0.01em;
  color: rgba(18, 18, 20, 0.78);
  border: 2.5px solid #fff;
  box-shadow: 0 1px 2px rgba(18, 18, 20, 0.08);
  will-change: transform;
}

.more {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid #fff;
  background: var(--campo);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 620; color: var(--grigio);
}
.more__in { display: flex; align-items: center; }
.more__num { position: relative; display: inline-block; height: 15px; overflow: hidden; line-height: 15px; }
.more__num span { display: block; }
.more__num [data-num-b] { position: absolute; left: 0; top: 0; transform: translateY(100%); }

.invite { position: absolute; right: 0; top: 0; height: 42px; }

.pill {
  position: absolute; right: 0; top: 1px;
  height: 40px; padding: 0 16px 0 12px;
  border: 0; border-radius: 99px;
  background: var(--inchiostro); color: #fff;
  display: flex; align-items: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 600;
  font-variation-settings: "wdth" 100;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.pill.is-hover { background: #2a2a2e; }
@media (hover: hover) { .pill:hover { background: #2a2a2e; } }
.pill__icon { width: 18px; height: 18px; display: grid; place-items: center; flex: none; }
.pill__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pill__check { stroke-dasharray: 20; stroke-dashoffset: 20; }
.pill__label { position: relative; display: inline-block; overflow: hidden; height: 20px; line-height: 20px; }
.pill__label span { display: block; }

/* the email field the pill opens into */
.field {
  position: absolute; right: 0; top: 0;
  height: 42px; width: 0;
  border-radius: 99px;
  background: #fff;
  border: 1.5px solid var(--accento);
  box-shadow: 0 0 0 4px var(--accento-chiaro);
  display: flex; align-items: center;
  padding: 0 5px 0 12px; gap: 7px;
  opacity: 0; visibility: hidden;
  overflow: hidden;
}
.field.is-bad { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12); }
.field__mail { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--grigio-chiaro); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.field__input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--inchiostro);
  padding: 0; height: 30px;
}
.field__input::placeholder { color: var(--grigio-chiaro); }
.field__send {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--accento); color: #fff;
  display: grid; place-items: center; flex: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.field__send.is-hover { filter: brightness(1.08); }
@media (hover: hover) { .field__send:hover { filter: brightness(1.08); } }
.field__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.team__foot { font-size: 12.5px; color: var(--grigio); height: 18px; overflow: hidden; line-height: 18px; }
.team__foot span { display: block; }
.team__foot b { color: var(--inchiostro); font-weight: 600; }

/* the address that folds into an avatar and flies */
.flier {
  position: absolute; left: 0; top: 0;
  height: 36px; min-width: 36px; border-radius: 99px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 640; color: rgba(18, 18, 20, 0.78);
  border: 2.5px solid #fff;
  box-shadow: 0 6px 18px -6px rgba(18, 18, 20, 0.35);
  opacity: 0; visibility: hidden;
  z-index: 4;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}

.ghost {
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  fill: var(--inchiostro); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}
