/* The verified badge next to the name of an invented bakery, on white, in the style of premium product interface pieces. */
:root {
  --fondo: #ffffff;              /* the page */
  --card: #ffffff;               /* the profile card */
  --inchiostro: #141519;         /* the name */
  --grigio: #6b6e78;             /* the handle and the soft words */
  --bordo: rgba(20, 21, 25, 0.09);
  --accento: #2563eb;            /* the verified seal, the status and the bar */
  --accento-chiaro: #6ea2ff;     /* the light side of the seal */
  --accento-scuro: #1e3fae;      /* the dark side of the seal */
  --attesa: #a1a3ab;             /* the pending seal and its clock */
  --forno: #c9773d;              /* the crust of the bakery mark */
  --forno-chiaro: #f6dcc0;       /* the crumb of the bakery mark */
}

* { box-sizing: border-box; margin: 0; padding: 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: 12px;
  overflow: hidden;
}

/* the card and the room under it for the popover, together, so the pair sits in the middle */
.zone {
  --fs: clamp(18px, min(5.4vw, 5.6vh), 32px);
  position: relative;
  width: min(460px, 94vw);
  padding-bottom: clamp(150px, 44vh, 196px);
}

/* ---------- the profile card ---------- */
.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3.4vw, 18px);
  padding: clamp(14px, min(4vw, 4.4vh), 22px) clamp(14px, 4vw, 24px);
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--bordo);
  box-shadow:
    0 1px 1px rgba(20, 21, 25, 0.03),
    0 3px 6px -2px rgba(20, 21, 25, 0.05),
    0 18px 36px -18px rgba(20, 21, 25, 0.22),
    0 40px 70px -40px rgba(37, 99, 235, 0.22);
}
/* the top edge catching the light */
.card__rim {
  position: absolute;
  left: 18%; right: 18%; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.avatar {
  flex: none;
  width: clamp(46px, min(13vw, 13vh), 64px);
  aspect-ratio: 1;
  border-radius: 30%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 30% 18%, #fff6ea 0%, var(--forno-chiaro) 46%, #ebc49c 100%);
  box-shadow: inset 0 0 0 1px rgba(120, 66, 24, 0.12), inset 0 -6px 12px -8px rgba(120, 66, 24, 0.35), 0 4px 10px -6px rgba(120, 66, 24, 0.45);
}
.avatar svg { width: 72%; height: 72%; overflow: visible; }
.loaf { fill: var(--forno); stroke: #a65a26; stroke-width: 1; }
.score { fill: none; stroke: var(--forno-chiaro); stroke-width: 2; stroke-linecap: round; }

.who { min-width: 0; flex: 1; }

.name {
  display: flex;
  align-items: center;
  gap: 0.22em;
  font-size: var(--fs);
  line-height: 1.15;
  font-weight: 640;
  font-stretch: 92%;
  letter-spacing: -0.018em;
  white-space: nowrap;
}
.name__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- the seal ---------- */
.seal {
  position: relative;
  flex: none;
  font-size: inherit;
  width: 1.08em;
  height: 1.08em;
  border: 0;
  padding: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.seal:focus-visible { outline: 2px solid var(--accento); outline-offset: 4px; }
.seal__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.st-a1 { stop-color: var(--accento-chiaro); }
.st-a2 { stop-color: var(--accento); }
.st-a3 { stop-color: var(--accento-scuro); }

.seal__shadow { fill: rgba(20, 21, 25, 0.22); filter: blur(1.6px); }
.seal__track { fill: none; stroke: rgba(20, 21, 25, 0.07); stroke-width: 1.4; opacity: 0; }
.seal__arc { fill: none; stroke: var(--accento); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 100 102; stroke-dashoffset: 101; opacity: 0; }
.seal__grey { fill: url(#seal-grey); }
.seal__paint { fill: url(#seal-paint); }
.seal__rimline { fill: none; stroke: url(#seal-rim); stroke-width: 0.9; }
.seal__shine { fill: url(#seal-shine); }
.seal__clock circle { fill: none; stroke: #ffffff; stroke-width: 1.7; }
.seal__clock path { fill: none; stroke: #ffffff; stroke-width: 1.7; stroke-linecap: round; }
.seal__check { fill: none; stroke: #ffffff; stroke-width: 3.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100 102; stroke-dashoffset: 101; }

/* the thin ring that opens once around the seal when it is sealed */
.seal__ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--accento);
  opacity: 0;
  pointer-events: none;
}

.sub {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-top: clamp(3px, 0.8vh, 6px);
  font-size: max(12px, calc(var(--fs) * 0.52));
  min-height: 1.4em;
  line-height: 1.4;
  font-weight: 480;
  color: var(--grigio);
  white-space: nowrap;
}
.handle { flex: none; }
.sep { flex: none; opacity: 0.6; }
.status {
  position: relative;
  display: block;
  height: 1.4em;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}
.status__w {
  position: absolute;
  left: 0; top: 0;
  display: block;
  white-space: nowrap;
  font-weight: 560;
  will-change: transform;
}

.sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- the popover ---------- */
.tip {
  position: absolute;
  left: 0; top: 0;
  width: min(272px, calc(94vw - 8px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 3;
  will-change: transform;
}
.tip__in {
  position: relative;
  padding: 13px 15px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--bordo);
  box-shadow:
    0 1px 2px rgba(20, 21, 25, 0.05),
    0 10px 24px -10px rgba(20, 21, 25, 0.24),
    0 28px 48px -26px rgba(37, 99, 235, 0.3);
}
.tip__arrow {
  position: absolute;
  left: 0; top: -5px;
  width: 11px; height: 11px;
  margin-left: -5.5px;
  border-radius: 2.5px 0 0 0;
  background: #ffffff;
  border-left: 1px solid var(--bordo);
  border-top: 1px solid var(--bordo);
  transform: rotate(45deg);
  z-index: 1;
}
.tip__head {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; line-height: 18px; font-weight: 650; letter-spacing: -0.01em;
  color: var(--inchiostro);
}
.tip__seal { width: 17px; height: 17px; flex: none; overflow: visible; }
.tip__seal-fill { fill: var(--accento); }
.tip__seal-check { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.tip__lead { margin-top: 5px; font-size: 12px; line-height: 16px; font-weight: 450; color: var(--grigio); white-space: normal; }
.tip__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 11px; padding-top: 10px;
  border-top: 1px solid var(--bordo);
}
.tip__facts dt { font-size: 10.5px; line-height: 14px; font-weight: 500; color: var(--grigio); letter-spacing: 0.01em; }
.tip__facts dd { margin-top: 1px; font-size: 12.5px; line-height: 17px; font-weight: 600; color: var(--inchiostro); white-space: nowrap; }
.tip__checks { margin-top: 11px; }
.tip__checks-top { display: flex; justify-content: space-between; font-size: 10.5px; line-height: 14px; font-weight: 500; color: var(--grigio); }
.tip__count { font-weight: 640; color: var(--accento); font-variant-numeric: tabular-nums; }
.tip__track {
  position: relative; display: block;
  height: 4px; margin-top: 6px;
  border-radius: 4px;
  background: rgba(20, 21, 25, 0.07);
  overflow: hidden;
}
.tip__bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accento-chiaro), var(--accento));
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.tip__names { margin-top: 6px; font-size: 10.5px; line-height: 14px; font-weight: 480; color: var(--grigio); }

/* ---------- the drawn pointer of the autopilot ---------- */
.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;
}

@media (max-width: 380px) {
  .tip__in { padding: 11px 13px 12px; }
}
