:root {
  --bg: #09090b;
  --surface: #42425C;
  --surface-2: #42425C;
  --ink: #f6f4f8;
  --ink-secondary: #b8b2bf;
  --ink-muted: #716b78;
  --line: #26232b;
  --line-strong: #3a3443;
  --accent: #9b7cff;
  --accent-2: #c3a6ff;
  --accent-dark: #5b3e91;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { -webkit-user-drag: none; user-drag: none; }

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg__vignette { position: absolute; inset: 0; background: radial-gradient(circle at 50% -8%, #17131f 0%, #0d0c11 34%, #09090b 64%, #050506 100%); }
.bg__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 110px 110px; opacity: .22; mask-image: linear-gradient(to bottom, black 0%, transparent 78%); }
.bg__accent { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .14; }
.bg__accent--one { width: 300px; height: 300px; background: var(--accent-dark); top: 80px; right: -130px; }
.bg__accent--two { width: 220px; height: 220px; background: #2a173f; left: -110px; top: 52%; opacity: .11; }

.navbar {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__brand { font-family: var(--font-display); font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
.navbar__right { display: flex; align-items: center; gap: 14px; }
.navbar__note { font-size: .66rem; font-weight: 600; letter-spacing: .2em; color: var(--ink-muted); }
.mini-btn { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: .74rem; font-weight: 600; color: var(--ink-secondary); transition: border-color .25s ease, color .25s ease, background .25s ease; }
.mini-btn:hover { color: var(--ink); border-color: var(--accent); background: rgba(155,124,255,.07); }

.page { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 30px 22px 52px; display: flex; flex-direction: column; gap: 18px; }
.card { position: relative; background: rgba(17,17,20,.96); border: 1px solid var(--line); border-radius: 20px; padding: 24px; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 80%) var(--my, 10%), rgba(155,124,255,.08), transparent 64%); opacity: 0; transition: opacity .3s ease; }
.card:hover::after { opacity: 1; }

.hero { display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: center; padding: 30px 32px; }
.hero__avatar-wrap { width: 132px; height: 132px; border-radius: 50%; padding: 5px; border: 1px solid var(--line-strong); position: relative; }
.hero__avatar-wrap::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid var(--accent); clip-path: polygon(50% 0,100% 0,100% 34%,50% 34%); animation: orbit 7s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; filter: contrast(1.04) saturate(.9); }
.hero__text { min-width: 0; }
.eyebrow { color: var(--accent-2); font-size: .65rem; font-weight: 700; letter-spacing: .19em; margin-bottom: 8px; }
.name { font-family: var(--font-display); font-size: clamp(2rem, 4.7vw, 3.1rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(100deg, #fff 20%, #d9ccff 56%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin-top: 8px; font-size: .84rem; font-weight: 600; letter-spacing: .07em; color: var(--ink-secondary); }
.about { margin-top: 12px; max-width: 610px; color: var(--ink-muted); font-size: .86rem; line-height: 1.6; }
.hero__actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; padding: 10px 20px; font-size: .82rem; font-weight: 650; border: 1px solid var(--line-strong); transition: transform .25s var(--ease-out), border-color .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: #0c0910; border-color: var(--accent); }
.btn--solid:hover { background: #aa8cff; }
.btn--ghost { color: var(--ink); background: #ffffff05; }
.btn--ghost:hover { border-color: var(--accent); background: rgba(155,124,255,.07); }

.columns { display: grid; grid-template-columns: .92fr 1.08fr; gap: 18px; align-items: start; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; font-size: .66rem; font-weight: 700; letter-spacing: .22em; color: var(--ink-muted); }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-title--short { margin-bottom: 10px; }

.links { display: flex; flex-direction: column; gap: 8px; }
.link-row { --brand: var(--accent); position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; isolation: isolate; transition: border-color .25s ease, transform .25s var(--ease-out), background .25s ease; }
.link-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(155,124,255,.12), rgba(155,124,255,.03)); opacity: 0; transition: opacity .25s ease; }
.link-row:hover { transform: translateX(3px); border-color: var(--accent-dark); }
.link-row:hover::before { opacity: 1; }
.link-num { width: 25px; flex-shrink: 0; font-family: var(--font-display); font-size: .61rem; font-weight: 700; color: #5f5865; }
.link-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.link-title { font-family: var(--font-display); font-size: .86rem; font-weight: 600; }
.link-subtitle { margin-top: 2px; color: var(--ink-muted); font-size: .68rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.link-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: none;
  border-radius: 0;

  color: var(--brand, var(--accent));
}

.link-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.link-row:hover .link-icon {
  transform: scale(1.06);
  background: transparent;
  border: none;
}

.link-arrow { color: #635c69; transition: color .25s ease, transform .25s ease; }
.link-row:hover .link-arrow { color: var(--accent-2); transform: translate(2px,-2px); }

.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tab { border: 1px solid var(--line); background: #ffffff04; color: var(--ink-muted); border-radius: 999px; padding: 8px 12px; cursor: pointer; font-size: .7rem; font-weight: 700; transition: color .25s ease, background .25s ease, border-color .25s ease; }
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab.active { background: rgba(155,124,255,.14); color: #e8ddff; border-color: rgba(155,124,255,.42); }
.setup-panel { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #0d0d10; }
.setup-row { min-height: 52px; display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; padding: 0 15px; border-bottom: 1px solid var(--line); }
.setup-row:last-child { border-bottom: 0; }
.setup-row span { font-family: var(--font-display); color: #5f5965; font-size: .6rem; font-weight: 600; letter-spacing: .06em; }
.setup-row strong { color: #d7d1dc; font-size: .76rem; font-weight: 600; }

.compact-info { display: grid; grid-template-columns: .75fr 1.25fr auto; gap: 26px; align-items: center; padding: 22px 26px; }
.compact-info h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.compact-info p { color: var(--ink-muted); font-size: .8rem; line-height: 1.55; }
.compact-info > a { font-size: .76rem; font-weight: 650; color: var(--accent-2); white-space: nowrap; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 4px 0; color: #5e5864; font-size: .7rem; }
.footer__links { display: flex; gap: 16px; }
.footer a { transition: color .2s ease; }
.footer a:hover { color: var(--accent-2); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }

@media (min-width: 2560px) {
  :root { --max: 1240px; }
  .navbar { padding-top: 30px; }
  .page { padding-top: 36px; gap: 20px; }
  .hero { padding: 34px 36px; }
}

@media (max-width: 900px) {
  .columns { grid-template-columns: 1fr; }
  .compact-info { grid-template-columns: 1fr; gap: 13px; }
  .compact-info > a { white-space: normal; }
}

@media (max-width: 640px) {
  .navbar { padding: 16px 14px 0; }
  .navbar__note { display: none; }
  .page { padding: 18px 12px 38px; gap: 12px; }
  .card { padding: 17px 15px; border-radius: 17px; }
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 16px; gap: 17px; }
  .hero__avatar-wrap { width: 104px; height: 104px; }
  .hero__actions { justify-content: center; width: 100%; }
  .btn { flex: 1 1 44%; padding: 10px 12px; }
  .about { font-size: .8rem; }
  .link-row { min-height: 54px; padding: 8px 12px; }
  .link-num { display: none; }
  .link-icon { width: 32px; height: 32px; border-radius: 11px; }
  .link-icon img { width: 18px; height: 18px; }
  .setup-row { grid-template-columns: 82px 1fr; gap: 10px; padding: 0 11px; }
  .setup-row strong { font-size: .72rem; }
  .compact-info { padding: 18px 16px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 14px 2px 0; }
}

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


/* === BLACK + GRAPHITE + WHITE CANVAS REVISION === */
:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #181818;
  --ink: #f5f5f5;
  --ink-secondary: #b8b8b8;
  --ink-muted: #707070;
  --line: #282828;
  --line-strong: #3d3d3d;
  --accent: #9b7cff;
  --accent-2: #c4adff;
  --accent-dark: #6e4fc7;
}

html,
body { background: #000; }

.bg { background: #000; }
.bg__vignette {
  background: linear-gradient(180deg, rgba(255,255,255,.018) 0%, transparent 22%, rgba(0,0,0,.22) 100%);
  z-index: 2;
}
.bg__grid {
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 160px 160px;
  opacity: .17;
  mask-image: none;
}
.bg__accent { display: none; }

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .62;
}

.card {
  background: #111111;
  border-color: #282828;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
.card::after {
  background: radial-gradient(260px circle at var(--mx, 80%) var(--my, 10%), rgba(155,124,255,.055), transparent 64%);
}

.setup-panel {
  background: #0d0d0d;
  border-color: #282828;
}

.tab,
.btn,
.mini-btn,
.link-row {
  background: #151515;
}

/* Main UI accent stays purple. Platform buttons override only on hover. */
[data-type="telegram"] { --brand: #2aabee; }
[data-type="tiktok"]   { --brand: #25f4ee; }
[data-type="twitch"]   { --brand: #9146ff; }
[data-type="discord"]  { --brand: #5865f2; }
[data-type="donate"]   { --brand: #ff5b5b; }
[data-type="osu"]      { --brand: #ff66aa; }

.mini-btn,
.btn,
.link-row {
  border-color: var(--line);
  transition:
    transform .25s var(--ease-out),
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease,
    color .25s ease;
}

.mini-btn:hover,
.btn:hover,
.link-row:hover {
  border-color: var(--brand, var(--accent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand, var(--accent)) 22%, transparent),
              0 10px 30px color-mix(in srgb, var(--brand, var(--accent)) 12%, transparent);
}

.mini-btn:hover,
.btn--ghost:hover,
.btn--solid:hover {
  background: #191919;
  color: var(--ink);
}

.btn--solid {
  color: var(--ink);
  background: #171717;
  border-color: var(--line-strong);
}

.btn--solid:hover { background: #1a1a1a; }

.link-row::before {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--brand, var(--accent)) 10%, transparent),
    transparent 68%);
}
.link-row:hover {
  border-color: var(--brand, var(--accent));
}
.link-row:hover .link-arrow {
  color: var(--brand, var(--accent));
}

.hero__avatar-wrap::before { border-color: var(--accent); }
.name {
  background: linear-gradient(100deg, #ffffff 20%, #d9ccff 58%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
  .mini-btn:hover,
  .btn:hover,
  .link-row:hover { box-shadow: 0 10px 30px rgba(155,124,255,.12); }
}


/* Cursor light removed: cards stay uniformly graphite on hover/move. */
.card::after {
  display: none !important;
  content: none !important;
}


/* === SOFTER HOVER + CURSOR TUNING === */
.card {
  transition:
    border-color .65s var(--ease-out),
    box-shadow .75s var(--ease-out),
    background .55s ease,
    transform .55s var(--ease-out);
}

.card:hover {
  border-color: rgba(155,124,255,.24);
  box-shadow:
    0 18px 60px rgba(0,0,0,.30),
    0 0 34px rgba(155,124,255,.055);
}

.mini-btn,
.btn,
.link-row {
  transition:
    transform .45s var(--ease-out),
    border-color .55s var(--ease-out),
    background .5s ease,
    box-shadow .7s var(--ease-out),
    color .45s ease;
}

.mini-btn:hover,
.btn:hover,
.link-row:hover {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand, var(--accent)) 14%, transparent),
    0 10px 30px color-mix(in srgb, var(--brand, var(--accent)) 8%, transparent);
}

.link-row::before {
  transition: opacity .6s var(--ease-out);
}

.link-arrow {
  transition:
    color .45s ease,
    transform .5s var(--ease-out);
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
  .mini-btn:hover,
  .btn:hover,
  .link-row:hover {
    box-shadow: 0 10px 30px rgba(155,124,255,.08);
  }
}


/* === LANGUAGE SWITCH === */
.lang-switch {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #111114;
}

.lang-btn {
  min-width: 38px;
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #706b78;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  transition:
    color .3s ease,
    background .35s var(--ease-out),
    box-shadow .45s var(--ease-out),
    transform .3s var(--ease-out);
}

.lang-btn:hover {
  color: #f4f1f8;
}

.lang-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #8c6cff, #6946c9);
  box-shadow: 0 5px 18px rgba(139, 108, 255, .22);
}

.lang-btn:active {
  transform: scale(.96);
}

@media (max-width: 660px) {
  .lang-switch {
    gap: 2px;
  }

  .lang-btn {
    min-width: 33px;
    height: 30px;
    padding-inline: 8px;
    font-size: 10px;
  }
}




/* === REFERENCE-STYLE MOTION / KEEP DEPRICED VISUALS === */

/* Opening and reload: black frame first, then UI reveals cleanly. */
#site-veil {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition:
    opacity .72s var(--ease-out),
    visibility 0s linear .72s;
}

html.site-ready #site-veil {
  opacity: 0;
  visibility: hidden;
}

#lang-veil {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .18s ease,
    visibility 0s linear .18s;
}

#lang-veil.is-active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity .14s ease,
    visibility 0s;
}

/* Canvas/background comes in slightly behind the UI. */
.bg {
  opacity: 0;
  transition: opacity 1.05s var(--ease-out) .08s;
}

html.site-ready .bg {
  opacity: 1;
}

/* Header motion similar to the reference, but without blur. */
.navbar {
  opacity: 0;
  transform: translateY(-9px);
  transition:
    opacity .72s var(--ease-out) .05s,
    transform .72s var(--ease-out) .05s;
}

html.site-ready .navbar {
  opacity: 1;
  transform: translateY(0);
}

/* Section reveals. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .74s var(--ease-out) var(--reveal-delay, 0s),
    transform .74s var(--ease-out) var(--reveal-delay, 0s);
}

html.site-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Link rows get their own small stagger once the card is visible. */
.link-row {
  opacity: 0;
  transform: translateY(9px);
}

html.site-ready .reveal.in-view .link-row {
  animation: reference-link-in .62s var(--ease-out) forwards;
  animation-delay: calc(.14s + var(--i, 0) * .055s);
}

@keyframes reference-link-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reference-like card border glow, but using DEPRICED purple only.
   This is NOT a cursor halo; it is constrained to the card border. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background:
    radial-gradient(
      220px circle at var(--mx, 50%) var(--my, 50%),
      rgba(155, 124, 255, .34),
      rgba(155, 124, 255, .10) 38%,
      transparent 68%
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .68s var(--ease-out);
}

.card:hover::before {
  opacity: .72;
}

/* Keep the actual block itself graphite, not glassy. */
.card {
  background: #111111;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Smoother hover from the reference, while platform border colors stay intact. */
.link-row,
.btn,
.tab,
.lang-btn {
  transition:
    color .38s ease,
    background .42s ease,
    border-color .5s var(--ease-out),
    box-shadow .62s var(--ease-out),
    transform .5s var(--ease-out);
}

.link-row:hover {
  transform: translateX(2px);
}

/* No global cursor glow. */
.cursor-glow,
.page-glow {
  display: none !important;
}

/* Once animations settle, stop promoting everything forever. */
html.site-settled .reveal,
html.site-settled .link-row,
html.site-settled .navbar {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  #site-veil,
  #lang-veil {
    display: none !important;
  }

  .bg,
  .navbar,
  .reveal,
  .link-row {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
