@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/exo2-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Exo 2";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/exo2-latin-italic.woff2") format("woff2");
}

:root {
  --navy-900: #040817;
  --navy-800: #070c33;
  --navy-700: #13248a;
  --plate-1: #10214d;
  --plate-2: #081230;
  --green: #5cff2e;
  --blue: #3ec5ff;
  --blue-deep: #1a5cff;
  --text: #f2f6ff;
  --muted: #9fb3d9;
  --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pop: cubic-bezier(0.2, 1.3, 0.4, 1);
  --glide: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Sky: stars and light rays, fixed behind the page. All drawn in CSS. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 46% at 50% 0%, var(--navy-700) 0%, var(--navy-800) 46%, var(--navy-900) 100%);
}

.bg__stars {
  position: absolute;
  inset: 0 0 auto 0;
  height: 200%;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 84px 66px, #bfe3ff, transparent),
    radial-gradient(1.6px 1.6px at 52px 104px, #fff, transparent),
    radial-gradient(1px 1px at 112px 18px, #8fb8ff, transparent),
    radial-gradient(1px 1px at 6px 88px, #fff, transparent);
  background-size: 130px 130px;
  mask-image: linear-gradient(#000 20%, rgba(0, 0, 0, 0.3) 45%);
  -webkit-mask-image: linear-gradient(#000 20%, rgba(0, 0, 0, 0.3) 45%);
  animation: fly 50s linear infinite;
}

.bg__stars--near {
  background-size: 210px 210px;
  animation-duration: 26s;
}

.bg__rays {
  position: absolute;
  inset: -6% -40% 45%;
  transform-origin: 50% 0;
  background: conic-gradient(
    from 148deg at 50% 0,
    transparent 0deg,
    rgba(62, 140, 255, 0.34) 5deg,
    transparent 10deg,
    transparent 19deg,
    rgba(62, 197, 255, 0.22) 23deg,
    transparent 27deg,
    transparent 36deg,
    rgba(90, 110, 255, 0.3) 41deg,
    transparent 47deg,
    transparent 54deg,
    rgba(62, 197, 255, 0.2) 58deg,
    transparent 64deg
  );
  mask-image: linear-gradient(#000, transparent 85%);
  -webkit-mask-image: linear-gradient(#000, transparent 85%);
  animation: sway 9s ease-in-out infinite alternate;
}

@keyframes fly {
  from {
    transform: translateY(-50%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes sway {
  from {
    transform: rotate(-4deg);
    opacity: 0.7;
  }

  to {
    transform: rotate(4deg);
    opacity: 1;
  }
}

/* Floor: slash, dots and chevrons that sit at the very bottom of the page */
.floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
}

.floor__slash {
  position: absolute;
  right: -128px;
  bottom: 14px;
  width: 300px;
  height: 84px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  opacity: 0.8;
  transform: rotate(-24deg);
  clip-path: polygon(0 26%, 9% 6%, 30% 14%, 62% 0, 100% 12%, 90% 34%, 100% 50%, 82% 62%, 94% 84%, 60% 100%, 22% 88%, 0 96%);
}

.floor__dots {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 170px;
  height: 120px;
  background: radial-gradient(circle, rgba(62, 197, 255, 0.6) 1.1px, transparent 1.5px) 0 0 / 9px 9px;
  mask-image: linear-gradient(315deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(315deg, #000, transparent 70%);
}

.floor__streak {
  position: absolute;
  left: -40%;
  bottom: 70px;
  width: 240px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transform: rotate(-24deg);
  animation: streak 7s linear infinite;
}

@keyframes streak {
  0% {
    translate: -120px 54px;
    opacity: 0;
  }

  8% {
    opacity: 0.9;
  }

  30%,
  100% {
    translate: 620px -276px;
    opacity: 0;
  }
}

.floor__chevrons {
  position: absolute;
  left: 20px;
  bottom: 22px;
  display: flex;
  gap: 5px;
}

.floor__chevrons span,
.link__chevrons span {
  width: 11px;
  height: 17px;
  background: var(--green);
  clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
}

.floor__chevrons span {
  opacity: 0.15;
  animation: chevron 1.8s linear infinite;
}

.floor__chevrons span:nth-child(-n + 6) {
  background: var(--blue);
}

.floor__chevrons span:nth-child(2) { animation-delay: 0.15s; }
.floor__chevrons span:nth-child(3) { animation-delay: 0.3s; }
.floor__chevrons span:nth-child(4) { animation-delay: 0.45s; }
.floor__chevrons span:nth-child(5) { animation-delay: 0.6s; }
.floor__chevrons span:nth-child(6) { animation-delay: 0.75s; }
.floor__chevrons span:nth-child(7) { animation-delay: 0.9s; }
.floor__chevrons span:nth-child(8) { animation-delay: 1.05s; }
.floor__chevrons span:nth-child(9) { animation-delay: 1.2s; }
.floor__chevrons span:nth-child(10) { animation-delay: 1.35s; }
.floor__chevrons span:nth-child(11) { animation-delay: 1.5s; }
.floor__chevrons span:nth-child(12) { animation-delay: 1.65s; }

@keyframes chevron {
  0%,
  60%,
  100% {
    opacity: 0.15;
  }

  20% {
    opacity: 1;
  }
}

/* Layout */
.card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 16px 72px;
}

.profile {
  text-align: center;
  margin-bottom: 28px;
}

/* Avatar with a slow color ring: a closed loop, so it never reads as "loading" */
.avatar {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 26px;
  animation: drop 0.7s var(--pop) both;
}

.avatar::before,
.avatar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.avatar::before {
  inset: -8px;
  background: conic-gradient(var(--green), var(--blue), var(--blue-deep), var(--blue), var(--green));
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: turn 18s linear infinite;
}

.avatar::after {
  inset: -16px;
  border: 1px dashed rgba(62, 197, 255, 0.4);
  animation: turn 70s linear infinite reverse;
}

.avatar img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--navy-800), 0 0 34px rgba(40, 110, 255, 0.55);
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

/* Name inside the slanted plate */
.name {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.name__plate {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 8px 28px 10px;
  filter: drop-shadow(0 0 12px rgba(92, 255, 46, 0.35));
  /* animated here, not on the full-width heading, so the zoom never makes a phone screen wider */
  animation: zoom 0.6s 0.15s var(--pop) both;
}

.name__plate::before,
.name__plate::after {
  content: "";
  position: absolute;
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.name__plate::before {
  inset: 0;
  z-index: -2;
  background: linear-gradient(100deg, var(--green), var(--blue) 70%, var(--blue-deep));
}

.name__plate::after {
  inset: 2px;
  z-index: -1;
  background: linear-gradient(100deg, #0a1638, #071030);
}

.name__mx {
  color: var(--green);
}

.handle {
  margin: 14px 0 0;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
}

.bio {
  margin: 10px 0 0;
  color: #c9d4ea;
  font-size: 1.2rem;
  text-wrap: balance;
}

/* Keep each platform name with its emoji so nothing is left alone on a line */
.bio span {
  white-space: nowrap;
}

/* Links: slanted plates */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.links li {
  animation: rise 0.6s var(--pop) both;
}

.links li:nth-child(1) { animation-delay: 0.25s; }
.links li:nth-child(2) { animation-delay: 0.32s; }
.links li:nth-child(3) { animation-delay: 0.39s; }
.links li:nth-child(4) { animation-delay: 0.46s; }
.links li:nth-child(5) { animation-delay: 0.53s; }
.links li:nth-child(6) { animation-delay: 0.6s; }
.links li:nth-child(7) { animation-delay: 0.67s; }
.links li:nth-child(8) { animation-delay: 0.74s; }
.links li:nth-child(9) { animation-delay: 0.81s; }

.link {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.22s var(--glide), filter 0.22s;
}

.link::before,
.link::after,
.link__fill {
  content: "";
  position: absolute;
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}

/* neon edge */
.link::before {
  inset: 0;
  z-index: -3;
  background: linear-gradient(100deg, var(--green), var(--blue));
  opacity: 0.38;
  transition: opacity 0.2s;
}

/* plate */
.link::after {
  inset: 1.5px;
  z-index: -2;
  background: linear-gradient(100deg, var(--plate-1), var(--plate-2));
}

/* brand color that sweeps in from the icon */
.link__fill {
  inset: 1.5px;
  z-index: -1;
  background: var(--fill, var(--brand, var(--blue-deep)));
  opacity: 0;
  transform: scaleX(0.12);
  transform-origin: left;
  transition: transform 0.35s var(--glide), opacity 0.25s;
}

.link__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 44px;
  background: var(--brand);
  color: var(--glyph, #fff);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.link__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.link__label {
  flex: 1;
  text-align: center;
  padding-right: 52px;
}

.link__label--solo {
  padding-right: 0;
}

.link__arrow {
  position: absolute;
  right: 22px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.2s;
}

.link__chevrons {
  position: absolute;
  right: 22px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.link__chevrons span:nth-child(2) { animation-delay: 0.15s; }
.link__chevrons span:nth-child(3) { animation-delay: 0.3s; }

.link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* Hover only where a real pointer exists, so it never sticks after a tap */
@media (hover: hover) {
  .link:hover {
    transform: translateX(6px);
    filter: drop-shadow(0 0 10px rgba(92, 255, 46, 0.4));
  }

  .link:hover::before {
    opacity: 1;
  }

  .link:hover .link__fill {
    opacity: 0.3;
    transform: scaleX(1);
  }

  .link:hover .link__arrow {
    opacity: 0;
  }

  .link:hover .link__chevrons {
    opacity: 1;
  }

  .link:hover .link__chevrons span {
    animation: chevron 0.8s linear infinite;
  }

  .link:hover .link__chevrons span:nth-child(2) { animation-delay: 0.15s; }
  .link:hover .link__chevrons span:nth-child(3) { animation-delay: 0.3s; }
}

.link:focus-visible::before {
  opacity: 1;
}

/* Tap feedback: the plate sinks, the edge flashes and the brand color fills it */
.link:active {
  transform: scale(0.95);
  filter: drop-shadow(0 0 14px rgba(92, 255, 46, 0.85));
  transition-duration: 0.05s;
}

.link:active::before {
  opacity: 1;
}

.link:active .link__fill {
  opacity: 0.5;
  transform: scaleX(1);
  transition: none;
}

/* Official brand colors (Simple Icons) */
.link--discord { --brand: #5865f2; }
.link--twitch { --brand: #9146ff; }
.link--kick { --brand: #53fc19; --glyph: #000; }
.link--tiktok { --brand: #000; --fill: #f2f6ff; }
.link--instagram { --brand: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.link--threads { --brand: #000; --fill: #f2f6ff; }
.link--youtube { --brand: #ff0000; }
.link--x { --brand: #000; --fill: #f2f6ff; }
.link--facebook { --brand: #0866ff; }

.footer {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Entrance: avatar drops in, the name zooms into focus, buttons bounce up */
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.7);
  }
}

@keyframes zoom {
  from {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
  }
}

@media (min-width: 640px) {
  .card {
    padding-top: 80px;
  }

  .avatar {
    width: 148px;
    height: 148px;
  }

  .name {
    font-size: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
