:root {
  --bg: #0c0312;
  --surface: rgba(31, 8, 43, 0.84);
  --border: rgba(240, 83, 222, 0.52);
  --pink: #ff4dc8;
  --pink-light: #ffb5ed;
  --text: #fff8ff;
  --muted: #d5b7dc;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(163, 46, 171, 0.2), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(221, 44, 160, 0.14), transparent 30rem),
    linear-gradient(180deg, #16051e 0%, var(--bg) 35%, #100316 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 124, 224, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 124, 224, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
  padding-block: 24px 30px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 103, 218, 0.64);
  border-radius: 22px;
  background: #210729;
  box-shadow:
    var(--shadow),
    0 0 42px rgba(240, 53, 198, 0.21),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.1) 49%, transparent 60%);
  transform: translateX(-120%);
  animation: banner-shine 7s ease-in-out 1s infinite;
}

.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 669;
  object-fit: cover;
}

.intro {
  max-width: 700px;
  margin: 28px auto 38px;
  color: var(--muted);
  font-size: clamp(0.96rem, 2vw, 1.08rem);
  text-align: center;
}

.link-group {
  position: relative;
  margin-top: 54px;
  padding: 64px 22px 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(32, 8, 43, 0.86), rgba(16, 4, 23, 0.9));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.link-group > h2 {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: min(78%, 270px);
  margin: 0;
  padding: 8px 26px 10px;
  border: 1px solid rgba(255, 112, 221, 0.72);
  border-radius: 0 0 18px 18px;
  color: #fff;
  background: linear-gradient(135deg, #7f278e, #c82b8b 58%, #6f278f);
  box-shadow: 0 9px 26px rgba(216, 44, 169, 0.27);
  font-size: clamp(1.14rem, 3vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -1px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.single-card-grid {
  grid-template-columns: minmax(280px, 470px);
  justify-content: center;
}

.social-card {
  --accent: var(--pink);
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 138px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 190px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%),
    var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-card::after {
  position: absolute;
  right: -65px;
  bottom: -75px;
  z-index: -1;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  filter: blur(70px);
  opacity: 0.19;
}

.social-card:hover {
  border-color: color-mix(in srgb, var(--accent) 82%, white 18%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), 0 0 24px color-mix(in srgb, var(--accent) 17%, transparent);
  transform: translateY(-3px);
}

.twitch { --accent: #a970ff; }
.kick { --accent: #53fc18; }
.youtube { --accent: #ff3b58; }
.instagram { --accent: #ff4e9f; }
.tiktok { --accent: #39f5e8; }
.twitter { --accent: #d4d9e0; }
.portfolio { --accent: #d56bff; }

.qr-frame {
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, #ffffff 42%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

.qr-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.card-copy {
  min-width: 0;
}

.network-name {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
  line-height: 1.25;
}

.network-mark {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, white 35%);
  border-radius: 9px;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 36%, #1a0823 64%);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 20%, transparent);
}

.network-mark img {
  width: 17px;
  height: 17px;
}

.card-copy a {
  display: inline-block;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 10px;
  color: var(--pink-light);
  background: rgba(8, 2, 12, 0.46);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.card-copy a::after {
  margin-left: 6px;
  content: "↗";
  font-size: 0.92em;
}

.card-copy a:hover,
.card-copy a:focus-visible {
  border-color: var(--accent);
  color: #fff;
  background: color-mix(in srgb, var(--accent) 18%, #09020e 82%);
  outline: none;
}

.card-copy a:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 34px;
  color: #a888b2;
  font-size: 0.82rem;
  text-align: center;
}

footer span:first-child,
footer span:last-child {
  color: var(--pink);
}

.not-found {
  display: grid;
  min-height: 100vh;
  padding: 30px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.not-found h1,
.not-found p {
  margin-block: 6px;
}

.error-code {
  color: var(--pink);
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 34px rgba(255, 77, 200, 0.42);
}

.home-link {
  margin-top: 22px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #7f278e, #c82b8b);
  font-weight: 750;
  text-decoration: none;
}

@keyframes banner-shine {
  0%, 62% { transform: translateX(-120%); }
  82%, 100% { transform: translateX(120%); }
}

@media (max-width: 1050px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-card-grid {
    grid-template-columns: minmax(280px, 470px);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 620px);
    padding-top: 10px;
  }

  .hero {
    border-radius: 15px;
  }

  .intro {
    margin: 20px 12px 34px;
  }

  .link-group {
    margin-top: 46px;
    padding: 60px 11px 12px;
    border-radius: 18px;
  }

  .link-group > h2 {
    min-width: min(82%, 250px);
    padding-inline: 18px;
  }

  .card-grid,
  .single-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .social-card {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    min-height: 154px;
    padding: 13px;
    border-radius: 15px;
  }
}

@media (max-width: 430px) {
  .social-card {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 12px;
  }

  .qr-frame {
    padding: 6px;
  }

  .network-name {
    align-items: flex-start;
    gap: 7px;
    font-size: 0.95rem;
  }

  .network-mark {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
  }

  .card-copy a {
    padding: 7px 8px;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::after {
    animation: none;
  }

  .social-card,
  .card-copy a {
    transition: none;
  }
}
