:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --card: #161a22;
  --text: #e8ecf1;
  --muted: #b3bdc9;
  --primary: #4cc9f0;
  --accent: #a1ffce;
  --danger: #ff6b6b;
  --ring: #4cc9f0;
  --neon-purple: #bb00ff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #1a2030, transparent),
              radial-gradient(1200px 800px at 100% 0%, #0f1625, transparent),
              var(--bg);
  background-attachment: fixed;
}

.bg-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bg-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(60vmin, 700px);
  height: min(60vmin, 700px);
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.06;
  filter: saturate(1.1) brightness(1.1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.lightbox.open { display: flex; }
.lightbox-img {
  width: min(90vw, 900px);
  height: auto;
  border-radius: 16px;
  border: 2px solid var(--neon-purple);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--neon-purple);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #07131a;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(187, 0, 255, 0.25);
}
.lightbox-close:hover { transform: scale(1.06); }

.bg-photo {
  position: absolute;
  width: clamp(160px, 24vw, 280px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.9) contrast(0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  will-change: transform;
  border: 1px solid rgba(255,255,255,0.1);
}

.site-header {
  position: relative;
  top: auto;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(90deg, var(--neon-purple), #ff3cff);
  border-bottom: none;
}

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand .logo {
  width: clamp(56px, 9vw, 100px);
  height: clamp(56px, 9vw, 100px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--neon-purple);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.brand .brand-name { font-weight: 700; letter-spacing: 0.5px; font-size: clamp(22px, 3.2vw, 36px); line-height: 1.1; }

.links { display: inline-flex; gap: 12px; }
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #07131a;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 1px solid var(--neon-purple);
  box-shadow: 0 6px 18px rgba(187, 0, 255, 0.25);
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 16px;
  line-height: 1;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease, background 200ms ease;
}
.link:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(187, 0, 255, 0.35), 0 2px 8px rgba(0,0,0,0.25);
}
.link:active { transform: scale(0.98); }
.link:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.token-address {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #000;
  font-size: 16px;
  font-weight: 800;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.token-address::before { content: 'CA: '; color: #000; font-weight: 800; }

.btn {
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #07131a;
  border: 1px solid var(--neon-purple);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(187, 0, 255, 0.25);
  font-size: 16px;
  line-height: 1;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease, background 200ms ease;
}
.btn:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(187, 0, 255, 0.35), 0 2px 8px rgba(0,0,0,0.25);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; }

h1 { font-size: 28px; margin: 12px 0 20px; color: var(--text); }

.intro { text-align: center; margin: 8px 0 28px; }
.intro-text {
  margin: 0 auto;
  max-width: 70ch;
  color: var(--text);
  line-height: 1.25;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
}

.intro-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.intro-link:hover { filter: brightness(1.2); }



.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  background: #000000;
  border: 1px solid var(--neon-purple);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 0 14px rgba(187, 0, 255, 0.16), 0 8px 24px rgba(0,0,0,0.45);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--neon-purple); box-shadow: 0 0 24px rgba(187, 0, 255, 0.28); }

.avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  background: #000000;
  border: 1px solid var(--neon-purple);
  cursor: zoom-in;
  opacity: 1;
}

.nickname { font-size: 18px; font-weight: 700; margin: 6px 0 0; }
.funfact { color: var(--muted); margin: 0; line-height: 1.45; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr; grid-auto-rows: min-content; }
  .token {
    justify-self: start;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }
  .token-address { max-width: 100%; }
  .token .btn { width: 100%; }
}

