/* The avatar group: a dark card on a black page, warm faces and a lime button. */
:root {
  --page: #000000;          /* the page */
  --card: #111115;          /* the card */
  --edge: #202027;
  --ink: #f2f2f5;
  --muted: #8c8c98;
  --chip: #24242c;
  --accent: #c8f169;        /* join */
}

* {
  box-sizing: border-box;
}

html {
  touch-action: manipulation;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100svh;
  background: var(--page);
  color: var(--ink);
  font-family: 'Kumbh Sans Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.going {
  width: min(420px, 100%);
  padding: 24px 24px 22px;
  border: 1px solid var(--edge);
  border-radius: 26px;
  background: var(--card);
}

.going__title {
  margin: 0;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.going__where {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------------------------------------------- the faces */
.going__stack {
  position: relative;
  height: 92px;
  margin-top: 20px;
}

.going__list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.face {
  position: absolute;
  top: 10px;
  left: 0;
  width: 46px;
  height: 46px;
  outline: none;
  cursor: default;
}

.face__disc {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 3px var(--card);
  color: #19140f;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.face--you .face__disc {
  background: var(--accent);
  font-size: 12.5px;
}

.face:focus-visible .face__disc {
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent);
}

html[data-using='pointer'] .face:focus-visible .face__disc {
  box-shadow: 0 0 0 3px var(--card);
}

.face__name {
  position: absolute;
  top: 54px;
  left: 50%;
  padding: 3px 8px;
  border-radius: 7px;
  background: #ffffff;
  color: #141418;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.going__more {
  position: absolute;
  top: 10px;
  left: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--chip);
  box-shadow: 0 0 0 3px var(--card);
  color: var(--ink);
  font: 750 14px 'Kumbh Sans Variable', system-ui, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.going__more > * {
  grid-area: 1 / 1;
}

.going__more svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0;
}

@media (hover: hover) {
  .going__more:hover {
    background: #2f2f39;
  }
}

/* ---------------------------------------------------------------- the foot */
.going__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.going__count {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.going__num {
  display: inline-block;
  min-width: 1.2ch;
  color: var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.going__join {
  min-width: 96px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #151a07;
  font: 750 15px 'Kumbh Sans Variable', system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
  -webkit-tap-highlight-color: transparent;
}

.going__join span {
  display: inline-block;
}

.going__join.is-in {
  background: #26262e;
  color: var(--ink);
}

.going__join:active {
  transform: scale(0.94);
}

.going__more:focus-visible,
.going__join:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

html[data-using='pointer'] .going__more:focus-visible,
html[data-using='pointer'] .going__join:focus-visible {
  outline: none;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
