:root {
  color-scheme: dark;
  --bg: #07070a;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.11);
  --text: #f7f7f8;
  --muted: #a9a9b2;
  --purple: #8b5cf6;
  --purple-light: #b89cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(139, 92, 246, 0.18), transparent 38%),
    linear-gradient(180deg, #0a0a0f 0%, #060608 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
              linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(100px);
  opacity: .15;
  pointer-events: none;
  animation: drift 11s ease-in-out infinite alternate;
}

.glow-one {
  top: 5%;
  left: -120px;
  background: #6d28d9;
}

.glow-two {
  right: -160px;
  bottom: 2%;
  background: #9333ea;
  animation-delay: -4s;
}

@keyframes drift {
  to { transform: translate3d(42px, 28px, 0) scale(1.12); }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 620px);
  margin: 0 auto;
  padding: 58px 0 40px;
}

.profile {
  text-align: center;
  animation: enter .7s cubic-bezier(.2,.8,.2,1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfcfd6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62e59b;
  box-shadow: 0 0 0 4px rgba(98,229,155,.09), 0 0 18px rgba(98,229,155,.5);
}

h1 {
  margin: 12px 0 8px;
  font-size: clamp(38px, 8vw, 56px);
  line-height: .98;
  letter-spacing: -.055em;
}

.stats {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 54px;
}

.stat strong {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.stat span {
  margin-top: 2px;
  color: #777782;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.links {
  display: grid;
  gap: 12px;
  margin-top: 38px;
}

.link-card,
.partner-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr 40px;
  align-items: center;
  min-height: 82px;
  padding: 12px 16px 12px 13px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 12px 34px rgba(0,0,0,.15);
  backdrop-filter: blur(18px);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
  animation: enter .65s cubic-bezier(.2,.8,.2,1) both;
}

.link-card:nth-child(1) { animation-delay: .08s; }
.link-card:nth-child(2) { animation-delay: .14s; }
.link-card:nth-child(3) { animation-delay: .2s; }
.partner-card { animation-delay: .28s; }

.link-card::after,
.partner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.08), transparent 80%);
  transform: translateX(-100%);
  transition: opacity .25s ease;
}

.link-card:hover,
.partner-card:hover {
  transform: translateY(-3px) scale(1.006);
  border-color: rgba(255,255,255,.22);
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 45px rgba(0,0,0,.28);
}

.link-card:hover::after,
.partner-card:hover::after {
  opacity: 1;
  animation: sheen .8s ease;
}

.link-card:active,
.partner-card:active {
  transform: translateY(-1px) scale(.995);
}

.link-card:focus-visible,
.partner-card:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
}

.link-card.featured {
  border-color: rgba(139, 92, 246, .45);
  background:
    radial-gradient(circle at 0 0, rgba(139,92,246,.22), transparent 48%),
    rgba(255,255,255,.065);
}

.icon-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.075);
}

.icon-wrap svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.icon-wrap.discord { color: #a894ff; background: rgba(88,101,242,.16); }
.icon-wrap.tiktok { color: #fff; }
.icon-wrap.app { color: #d7c9ff; background: rgba(139,92,246,.12); }

.link-copy,
.partner-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 14px;
}

.link-copy strong,
.partner-copy strong {
  font-size: 15px;
  letter-spacing: -.01em;
}

.link-copy small,
.partner-copy small {
  color: var(--muted);
  font-size: 12px;
}

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #bdbdc6;
  background: rgba(255,255,255,.055);
  transition: transform .22s ease, color .22s ease, background .22s ease;
}

.arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

.link-card:hover .arrow,
.partner-card:hover .arrow {
  transform: translate(2px, -2px);
  color: white;
  background: rgba(255,255,255,.1);
}


.partner-wrap {
  margin-top: 14px;
}

.partner-card {
  grid-template-columns: 1fr 40px;
  padding-left: 20px;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: #666672;
  font-size: 11px;
}

footer a {
  color: #8f8f9c;
  text-decoration: none;
}

footer a:hover { color: white; }
.footer-dot { opacity: .5; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  color: #efeff2;
  background: rgba(18,18,23,.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  font-size: 12px;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast code {
  color: var(--purple-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 22px, 620px);
    padding-top: 42px;
  }


  .server-name-wrap { max-width: 175px; }
  .link-card,
  .partner-card { min-height: 76px; border-radius: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
