:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #fff;
  --muted: #a9a9a9;
  --soft: #727272;
  --line: rgba(255, 255, 255, 0.18);
  --panel: rgba(10, 10, 10, 0.72);
  --glow: rgba(255, 255, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.13), transparent 24rem),
    linear-gradient(180deg, #070707 0%, var(--bg) 48%, #040404 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 70px);
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

#rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.profile {
  width: min(430px, 100%);
  padding: 34px 24px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.78), rgba(0, 0, 0, 0.64));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 42px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.avatar-wrap {
  width: 148px;
  height: 148px;
  padding: 5px;
  margin: 0 auto 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--glow), inset 0 0 24px rgba(255, 255, 255, 0.1);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.12);
}

.status {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "UnifrakturCook", Georgia, serif;
  font-size: clamp(4rem, 16vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.32);
}

.tagline {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.actions {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.link-row,
.wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.link-row {
  min-height: 62px;
  padding: 12px 14px;
  text-align: left;
}

.link-row:hover,
.wallet:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.brand-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #050505;
  background: #fff;
  border-radius: 8px;
}

.brand-icon svg,
button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.link-row strong,
.link-row small {
  display: block;
}

.link-row strong {
  font-size: 0.94rem;
}

.link-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.wallet {
  padding: 14px;
  text-align: left;
}

.wallet-main {
  min-width: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.balance-line {
  display: grid;
  gap: 2px;
  margin: 0 0 10px;
}

.balance-line strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.35rem;
  line-height: 1;
}

.balance-line span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#walletAddress {
  max-width: 250px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #e7e7e7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.45;
}

.wallet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

button,
.track {
  display: inline-grid;
  height: 38px;
  place-items: center;
  color: #050505;
  background: #fff;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

button {
  width: 38px;
}

.track {
  min-width: 58px;
  padding: 0 12px;
}

@media (max-width: 440px) {
  body {
    overflow-y: auto;
  }

  .shell {
    min-height: 100svh;
    padding: 14px;
  }

  .profile {
    padding: 26px 16px 18px;
  }

  .avatar-wrap {
    width: 124px;
    height: 124px;
  }

  .wallet {
    align-items: flex-start;
    flex-direction: column;
  }

  #walletAddress {
    max-width: 100%;
  }
}
