: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;
}

.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 70% at 50% 42%, transparent 0%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, .35) 100%);
}

.doodles {
  position: absolute;
  inset: 0;
  opacity: .88;
  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;
  transition: background .15s ease, transform .12s ease;
}

.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:active, .download:active { transform: scale(.98); }
.pill:focus-visible, .download:focus-visible {
  outline: 3px solid #7ec4f5;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .pill, .download { transition: none; }
  .pill:active, .download:active { transform: none; }
}

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;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, #232323 0%, var(--card) 42%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: card-in .45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}

.avatar {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  box-shadow:
    0 0 0 3px rgba(28, 147, 227, .22),
    0 0 0 6px rgba(255, 255, 255, .05),
    0 12px 28px rgba(0, 0, 0, .35);
  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;
  color: #d0d3d7;
  font-size: 15px;
  line-height: 1.5;
  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; }
}
