:root {
  --bg: #050506;
  --card: #131417;
  --card-hi: #1c1d21;
  --ink: #f6f5f1;
  --soft: rgba(246, 245, 241, 0.52);
  --line: rgba(255, 255, 255, 0.09);
  --accent: #b9a2ff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 12px 16px;
}

.gl {
  width: min(356px, 100%);
  padding: 16px 14px 8px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px var(--line),
    0 34px 70px -34px color-mix(in srgb, var(--accent) 40%, transparent);
}
.gl__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 4px; }
.gl__event { min-width: 0; font-size: 14px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl__event i { display: block; margin-bottom: 2px; font-style: normal; font-size: 12px; font-weight: 500; color: var(--soft); }
.gl__in { flex: none; display: flex; align-items: baseline; gap: 5px; }
.gl__in b { display: inline-block; font-size: 34px; line-height: 34px; font-weight: 700; font-stretch: 106%; letter-spacing: -0.03em; }
.gl__in i { font-style: normal; font-size: 13px; font-weight: 520; color: var(--soft); }
.gl__line { height: 4px; margin: 10px 4px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.gl__line span { display: block; height: 100%; border-radius: 4px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); transform-origin: 0 50%; }
.gl__left { height: 16px; overflow: hidden; padding: 0 4px; font-size: 11.5px; line-height: 16px; font-weight: 480; color: var(--soft); }
.gl__left span { display: block; }

.gl__rows { display: grid; margin-top: 6px; border-top: 1px solid var(--line); }
.guest { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.guest + .guest { border-top: 1px solid var(--line); }
.guest:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 10px; }
.guest__face { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; font-weight: 660; letter-spacing: 0.02em; color: rgba(246, 245, 241, 0.8); transition: background-color 0.4s ease, color 0.4s ease; }
.guest.is-in .guest__face { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.guest__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guest__tag { flex: none; height: 20px; padding: 0 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); font-size: 11px; line-height: 20px; font-weight: 600; color: var(--soft); }
.guest__check { flex: none; width: 26px; height: 26px; }
.guest__check circle { fill: none; stroke: rgba(255, 255, 255, 0.24); stroke-width: 1.5; transition: stroke 0.3s ease, fill 0.3s ease; }
.guest__check path { fill: none; stroke: #17121f; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.guest.is-in .guest__check circle { fill: var(--accent); stroke: var(--accent); }
.guest.is-in .guest__name { color: var(--soft); }

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

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #ffffff;
  stroke: #14151a;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (max-height: 430px) {
  .guest { height: 39px; }
  .gl { padding: 13px 12px 5px; }
}
@media (min-width: 700px) and (min-height: 500px) {
  .gl { zoom: 1.3; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .gl { zoom: 1.6; }
}
