:root {
  color-scheme: dark;
  --ink: #f4f6fb;
  --dim: rgba(244, 246, 251, .62);
  --line: rgba(255, 255, 255, .09);
  --mint: #7CFFB2;
  --sky: #5AC8FF;
  --violet: #C38BFF;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #07090d;
  color: var(--ink);
  font-family: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(88vw, 330px);
  padding: clamp(14px, 4.5vmin, 22px);
  border-radius: 18px;
  background: rgba(9, 11, 16, .74);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}
.mark {
  display: block;
  width: clamp(44px, 14vmin, 74px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto clamp(6px, 2vmin, 10px);
  border-radius: 22%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 26px rgba(195, 139, 255, .28);
}
.wordmark {
  display: block;
  width: min(100%, 270px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}
.logo {
  font-weight: 900;
  font-size: clamp(30px, 11vmin, 48px);
  letter-spacing: -.045em;
  line-height: 1;
  background: linear-gradient(95deg, var(--mint), var(--sky) 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tag { margin: 10px 0 14px; font-size: clamp(12px, 3.4vmin, 14px); line-height: 1.4; color: var(--dim); }
form { display: flex; gap: 8px; margin: 0; }
input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming the embed on focus */
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}
input:focus { border-color: rgba(124, 255, 178, .6); }
button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  color: #06110b;
  background: var(--mint);
  cursor: pointer;
}
button:active { transform: scale(.97); }
button.alt { background: rgba(255, 255, 255, .1); color: var(--ink); }
.live {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.big { font-weight: 900; font-size: clamp(28px, 10vmin, 42px); letter-spacing: -.04em; line-height: 1; }
.sub { margin: 8px 0 12px; color: var(--dim); font-size: 14px; }
.label { margin: 0 0 8px; font-size: 12px; color: var(--dim); }
.tail { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
.tail:empty { display: none; }
.tail img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); object-fit: cover; background: #222; }
.row { display: flex; gap: 8px; }
.row button { flex: 1; padding: 0 10px; }

#hint {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(9, 11, 16, .7);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  pointer-events: none;
}
