:root {
  --blue: #1c93e3;
  --blue-press: #3aa0ea;
  --card: #1e1e1e;
  --ink: #fff;
  --muted: #84888c;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100dvh;
  color: var(--ink);
  background: #000;
}

.wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
}

.doodles {
  position: absolute;
  inset: 0;
  opacity: .92;
  filter: invert(1);
  background: center / 420px auto repeat;
  pointer-events: none;
}

.bar, .stage { position: relative; z-index: 1; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(34, 34, 34, .84);
  backdrop-filter: blur(25px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.brand svg { display: block; flex: none; }

.ico {
  width: 18px;
  height: 18px;
  display: block;
  flex: none;
  fill: currentColor;
}

.pill, .download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.download {
  height: 34px;
  gap: 6px;
  padding: 0 14px 0 12px;
  border-radius: 17px;
  font-size: 14px;
}

.pill:hover, .download:hover { background: var(--blue-press); }
.pill:focus-visible, .download:focus-visible {
  outline: 3px solid #7ec4f5;
  outline-offset: 3px;
}

main {
  min-height: calc(100dvh - 54px);
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 24px 16px 40px;
  overflow: auto;
  scrollbar-width: none;
}

main::-webkit-scrollbar { display: none; }

.card {
  width: min(372px, 100%);
  padding: 28px 26px 26px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
  flex: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  object-fit: cover;
  object-position: center 46%;
}

.name {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.02em;
}

.subs {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.subs .ico { width: 16px; height: 16px; }

.bio {
  margin: 18px 0 0;
  max-width: 310px;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-line;
}

.pill-join {
  margin-top: 22px;
  gap: 6px;
  height: 42px;
  min-width: 196px;
  padding: 0 22px;
  border-radius: 22px;
  font-size: 14px;
}

.note {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.note .ico { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .bar { padding: 0 12px; padding-top: max(10px, env(safe-area-inset-top)); }
  .brand { font-size: 18px; }
  .card { padding: 24px 18px 22px; }
}
