:root {
  --bg: #030507;
  --panel: rgba(9, 13, 18, 0.76);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4fbff;
  --muted: #9fb4bc;
  --cyan: #00f0ff;
  --pink: #ff2f92;
  --green: #6cff7f;
  --amber: #ffd166;
  --violet: #8d63ff;
  --discord: #5865f2;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Rajdhani", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 47, 146, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(0, 240, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 78% 88%, rgba(108, 255, 127, 0.11), transparent 26rem),
    var(--bg);
}

a,
button {
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 88%);
}

#signal-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: overlay;
  opacity: 0.32;
}

.cyber-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  width: 38px;
  height: 38px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 160ms ease;
  mix-blend-mode: screen;
}

.cursor-ring,
.cursor-core,
.cursor-line {
  position: absolute;
  pointer-events: none;
}

.cursor-ring {
  inset: 0;
  border: 1px solid rgba(0, 240, 255, 0.84);
  border-radius: 50%;
  box-shadow:
    0 0 14px rgba(0, 240, 255, 0.44),
    inset 0 0 10px rgba(255, 47, 146, 0.16);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cursor-core {
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(108, 255, 127, 0.8);
  transform: translate(-50%, -50%);
}

.cursor-line {
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.72);
  transform: translate(-50%, -50%);
}

.cursor-line-x {
  width: 54px;
  height: 1px;
}

.cursor-line-y {
  width: 1px;
  height: 54px;
}

.cyber-cursor.is-visible {
  opacity: 1;
}

.cyber-cursor.is-hovering .cursor-ring {
  border-color: rgba(255, 47, 146, 0.95);
  box-shadow:
    0 0 20px rgba(255, 47, 146, 0.55),
    inset 0 0 16px rgba(0, 240, 255, 0.24);
  transform: scale(1.42);
}

.cyber-cursor.is-hovering .cursor-core {
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}

.cyber-cursor.is-danger .cursor-ring {
  border-color: rgba(255, 18, 18, 0.98) !important;
  border-width: 2px;
  transition: none;
  box-shadow:
    0 0 16px rgba(255, 34, 34, 0.8),
    0 0 34px rgba(255, 47, 47, 0.45),
    inset 0 0 14px rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle, rgba(255, 0, 0, 0.18), rgba(255, 0, 0, 0.02) 58%, transparent 60%);
  animation: cursor-danger-pulse 720ms ease-in-out infinite;
}

.cyber-cursor.is-danger {
  mix-blend-mode: normal;
}

.cyber-cursor.is-danger .cursor-core {
  background: #ff2424;
  box-shadow: 0 0 16px rgba(255, 36, 36, 0.95);
}

.cyber-cursor.is-danger .cursor-line {
  background: rgba(255, 78, 78, 0.88);
}

.cyber-cursor.is-firing .cursor-ring {
  animation: cursor-shot 260ms ease-out, cursor-danger-pulse 720ms ease-in-out infinite 260ms;
}

.cyber-cursor.is-firing .cursor-core {
  animation: cursor-core-shot 260ms ease-out;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 52px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 32px;
  align-items: center;
  padding: 44px 0 24px;
}

.identity {
  position: relative;
  min-width: 0;
  padding: 30px 0;
  container-type: inline-size;
}

.identity::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 10px;
  width: 4px;
  height: 92%;
  background: linear-gradient(var(--cyan), var(--pink), var(--green));
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.55);
}

.avatar-frame {
  position: relative;
  width: clamp(132px, 17vw, 188px);
  aspect-ratio: 1;
  margin-bottom: 28px;
  border-radius: 50%;
  isolation: isolate;
  overflow: visible;
}

.avatar-frame::after {
  content: "";
  position: absolute;
  inset: -13px;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.34) 18% 22%, transparent 22% 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(0, 240, 255, 0.4) 0 2px,
      transparent 2px 7px,
      rgba(255, 47, 146, 0.32) 7px 9px,
      transparent 9px 15px
    );
  mix-blend-mode: screen;
}

.avatar-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 0 9px rgba(0, 240, 255, 0.08),
    0 0 46px rgba(255, 47, 146, 0.42);
}

.bullet-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.bullet-hole {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(28px, 20%, 42px);
  height: clamp(28px, 20%, 42px);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, #000 0 10%, rgba(6, 6, 6, 0.98) 11% 16%, transparent 17%),
    radial-gradient(circle at 50% 50%, transparent 0 23%, rgba(245, 254, 255, 0.82) 24% 25%, transparent 27% 39%, rgba(245, 254, 255, 0.42) 40% 41%, transparent 43%),
    repeating-conic-gradient(
      from var(--r, 0deg),
      rgba(235, 252, 255, 0.9) 0deg 3deg,
      transparent 3deg 11deg,
      rgba(178, 224, 232, 0.46) 11deg 13deg,
      transparent 13deg 29deg
    ),
    radial-gradient(circle, rgba(244, 254, 255, 0.72) 0 18%, rgba(203, 246, 255, 0.2) 28%, transparent 66%);
  background-blend-mode: normal, screen, screen;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 8px rgba(214, 248, 255, 0.58),
    inset 0 0 7px rgba(255, 255, 255, 0.52);
  filter: contrast(1.5) brightness(1.08) saturate(0.88);
  mix-blend-mode: screen;
  animation: bullet-impact 260ms cubic-bezier(0.2, 0.9, 0.2, 1.35) forwards;
}

.bullet-hole::before,
.bullet-hole::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 94%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0 10%, rgba(235, 252, 255, 0.9) 34%, rgba(255, 255, 255, 0.2), transparent 82%);
  transform: translate(-50%, -50%) rotate(var(--r, 18deg)) scaleX(var(--sx, 1));
}

.bullet-hole::after {
  width: 86%;
  transform: translate(-50%, -50%) rotate(calc(var(--r, 18deg) + 78deg)) scaleX(0.82);
}

.crack {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--len);
  height: 1px;
  transform-origin: 0 50%;
  transform: rotate(var(--angle)) translateX(9%);
  background: linear-gradient(90deg, rgba(244, 254, 255, 0.86), rgba(244, 254, 255, 0.44) 42%, transparent);
  opacity: var(--alpha);
  filter: drop-shadow(0 0 2px rgba(214, 248, 255, 0.68));
}

.crack::after {
  content: "";
  position: absolute;
  left: 48%;
  top: 0;
  width: calc(var(--len) * 0.38);
  height: 1px;
  transform: rotate(var(--branch));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(244, 254, 255, 0.58), transparent);
}

.avatar-ring {
  position: absolute;
  inset: -10px;
  z-index: 3;
  border-radius: inherit;
  border: 1px dashed rgba(108, 255, 127, 0.65);
  animation: rotate 18s linear infinite;
}

.live-badge {
  position: absolute;
  right: -2px;
  bottom: 8px;
  z-index: 5;
  display: none;
  padding: 4px 7px;
  border: 1px solid rgba(0, 0, 0, 0.82);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #ff1f1f, #ff2f92);
  box-shadow: 0 0 20px rgba(255, 31, 31, 0.68);
  font-family: "Orbitron", sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
}

.avatar-frame.is-live img {
  border-color: rgba(255, 34, 34, 0.88);
  box-shadow:
    0 0 0 9px rgba(255, 34, 34, 0.12),
    0 0 26px rgba(255, 34, 34, 0.78),
    0 0 58px rgba(255, 47, 146, 0.56);
}

.avatar-frame.is-live .avatar-ring {
  border-color: rgba(255, 34, 34, 0.95);
  box-shadow: 0 0 26px rgba(255, 34, 34, 0.62);
  animation: rotate 8s linear infinite, avatar-live-pulse 1.15s ease-in-out infinite;
}

.avatar-frame.is-live .live-badge {
  display: inline-flex;
}

.avatar-frame.is-glitching::after {
  animation: avatar-glitch-wipe 760ms steps(2, end) forwards;
}

.avatar-frame.is-glitching img {
  animation: avatar-image-glitch 760ms steps(2, end) forwards;
}

.avatar-frame.is-glitching .bullet-layer {
  animation: bullet-layer-clean 760ms ease forwards;
}

.avatar-frame.is-firing img {
  animation: avatar-fire-kick 260ms ease-out;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.85rem, 14.5cqi, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.24);
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #ffffff 36%, var(--pink) 72%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
}

.intro {
  max-width: 590px;
  margin: 24px 0 28px;
  color: #d8e7eb;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.48;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-strip span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  font-family: "Orbitron", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12rem;
}

.link-panel {
  position: relative;
  min-width: 0;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent 36%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}

.link-panel::before,
.link-panel::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  pointer-events: none;
}

.link-panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
}

.link-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
}

.link-card,
.donate {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 12px;
  padding: 13px;
  color: var(--text);
  text-decoration: none;
  background: rgba(3, 6, 10, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.11);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), transparent 62%);
  opacity: 0.1;
  transition: opacity 180ms ease;
}

.link-card:hover,
.link-card:focus-visible,
.donate:hover,
.donate:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent, var(--green)) 72%, white 12%);
  outline: none;
}

.link-card:hover::before,
.link-card:focus-visible::before {
  opacity: 0.24;
}

.icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #05070a;
  background: var(--accent);
  clip-path: polygon(12% 0, 100% 0, 100% 78%, 82% 100%, 0 100%, 0 18%);
}

.icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.link-card span:last-child {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.link-card strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
}

.link-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.2;
}

.twitch { --accent: var(--violet); }
.discord { --accent: var(--discord); }
.youtube { --accent: #ff2b2b; }
.instagram { --accent: var(--pink); }
.tiktok { --accent: var(--cyan); }
.contact { --accent: var(--amber); }

.donate {
  justify-content: center;
  min-height: 58px;
  margin-bottom: 0;
  color: #061008;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-color: rgba(108, 255, 127, 0.8);
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  box-shadow: 0 0 28px rgba(108, 255, 127, 0.22);
}

footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: -18px auto 18px;
  color: rgba(216, 231, 235, 0.55);
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16rem;
}

.no-script-panel {
  position: relative;
  z-index: 6;
  width: min(100% - 28px, 720px);
  margin: 14px auto 0;
  border: 1px solid rgba(0, 240, 255, 0.34);
  background: rgba(5, 12, 22, 0.84);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.12);
  color: rgba(230, 252, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 10px 14px;
  text-align: center;
}

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

@keyframes cursor-danger-pulse {
  0%,
  100% {
    transform: scale(1.42);
  }

  50% {
    transform: scale(1.72);
  }
}

@keyframes cursor-shot {
  0% {
    transform: scale(1.72);
    box-shadow:
      0 0 18px rgba(255, 34, 34, 0.9),
      0 0 44px rgba(255, 47, 47, 0.7),
      inset 0 0 18px rgba(255, 255, 255, 0.34);
  }

  55% {
    transform: scale(2.22);
    opacity: 0.95;
  }

  100% {
    transform: scale(1.42);
  }
}

@keyframes cursor-core-shot {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 12px rgba(255, 36, 36, 0.9);
  }

  35% {
    transform: translate(-50%, -50%) scale(2.6);
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.95);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes avatar-live-pulse {
  0%,
  100% {
    opacity: 0.78;
  }

  50% {
    opacity: 1;
  }
}

@keyframes avatar-fire-kick {
  0%,
  100% {
    filter: none;
    transform: none;
  }

  35% {
    filter: brightness(1.28) contrast(1.18);
    transform: scale(1.012);
  }
}

@keyframes bullet-impact {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25) rotate(-12deg);
    filter: blur(2px);
  }

  62% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18) rotate(4deg);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
    filter: blur(0);
  }
}

@keyframes avatar-glitch-wipe {
  0%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }

  12% {
    opacity: 0.95;
    transform: translateX(-8px);
  }

  28% {
    opacity: 0.62;
    transform: translateX(10px);
  }

  44% {
    opacity: 0.88;
    transform: translateX(-4px);
  }

  62% {
    opacity: 0.52;
    transform: translateX(6px);
  }
}

@keyframes avatar-image-glitch {
  0%,
  100% {
    filter: none;
    transform: none;
  }

  18% {
    filter: hue-rotate(38deg) contrast(1.35) saturate(1.5);
    transform: translateX(2px);
  }

  42% {
    filter: hue-rotate(-42deg) contrast(1.6) saturate(1.2);
    transform: translateX(-2px);
  }

  68% {
    filter: brightness(1.35) contrast(1.25);
    transform: translateY(1px);
  }
}

@keyframes bullet-layer-clean {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 28px;
  }

  .identity {
    padding: 16px 0 8px;
  }

  .identity::before {
    left: -10px;
  }

  .avatar-frame {
    margin-bottom: 20px;
  }

  .intro {
    margin: 18px 0 20px;
  }

  .link-panel {
    max-width: 680px;
  }

  footer {
    margin-top: 12px;
  }
}

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

  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.1rem;
    line-height: 1.45;
  }

  h1 {
    font-size: clamp(2.35rem, 14.5cqi, 3.35rem);
  }

  .link-panel {
    padding: 10px;
  }

  .link-card {
    min-height: 70px;
    gap: 11px;
    padding: 11px;
  }

  .icon {
    width: 42px;
    height: 42px;
  }

  .link-card small {
    font-size: 0.9rem;
  }

  .status-strip span {
    font-size: 0.62rem;
    letter-spacing: 0.08rem;
  }
}

@media (max-width: 370px) {
  .shell {
    width: min(100% - 16px, 1120px);
  }

  h1 {
    font-size: clamp(2.18rem, 15cqi, 3rem);
  }

  .avatar-frame {
    width: 118px;
  }

  .link-card {
    gap: 9px;
  }

  .icon {
    width: 38px;
    height: 38px;
  }

  .icon svg {
    width: 22px;
    height: 22px;
  }

  .donate {
    font-size: 0.76rem;
    letter-spacing: 0.08rem;
  }
}

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

@media (pointer: coarse), (max-width: 840px) {
  a,
  button {
    cursor: pointer;
  }

  .cyber-cursor {
    display: none;
  }
}
