:root {
  --bg: #0b0b0d;
  --ink: #f3f4f6;
  --muted: #9aa0ae;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.04);
  --red: #d1321f;          /* GITM brand red */
  --red-glow: rgba(209, 50, 31, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(620px 420px at 50% -8%, var(--red-glow), transparent 70%),
    radial-gradient(900px 600px at 50% 120%, rgba(209, 50, 31, 0.10), transparent 70%);
  pointer-events: none;
}

.hub {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- header ---- */
.hub-head { text-align: center; margin-bottom: 36px; }

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  box-shadow: 0 10px 40px var(--red-glow), 0 0 0 1px var(--line);
  display: block;
  margin: 0 auto 18px;
}

.handle {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--red);
  text-shadow: 0 2px 30px var(--red-glow);
}

.bio { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* ---- links grid (4 x 2) ---- */
.links {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.link {
  flex: 0 1 calc((100% - 30px) / 3);   /* 3 per row; partial last row stays centered */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 14px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  background: var(--btn, #1a1a1f);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.link:hover {
  transform: translateY(-4px);
  filter: brightness(1.08) saturate(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}
.link:active { transform: translateY(-1px); }

.link svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* brand colours */
.link.tiktok    { --btn: #0d0d0f; box-shadow: 0 0 0 1px var(--line) inset, 0 8px 22px rgba(0,0,0,.4); }
.link.discord   { --btn: #5865f2; }
.link.youtube   { --btn: #ff0000; }
.link.instagram { background: linear-gradient(120deg, #feda75, #fa7e1e 25%, #d62976 55%, #962fbf 78%, #4f5bd5); }
.link.twitter   { --btn: #1da1f2; }
.link.facebook  { --btn: #1877f2; }

/* emote peeks up over the button on hover */
.peek {
  position: absolute;
  bottom: calc(100% - 10px);
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translateX(-50%) translateY(12px) scale(0.6) rotate(-6deg);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.22s cubic-bezier(.2, 1.4, .4, 1), opacity 0.18s ease;
}
.link:hover .peek {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1) rotate(-6deg);
}

/* ---- follower stats (count up) ---- */
.stats {
  width: 100%;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 8px;
  text-align: center;
}
.stat .num {
  display: block;
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat .lbl {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---- footer ---- */
.hub-foot {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.throne { width: 40px; height: 40px; object-fit: contain; opacity: 0.9; }

/* ---- responsive ---- */
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .link { flex-basis: calc((100% - 14px) / 2); font-size: 14px; padding: 15px 10px; }
}
@media (max-width: 360px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
