/* Creniax Link Hub — all presentation lives in this standalone stylesheet. */
:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --ink: #07171e;
  --panel: rgba(13, 34, 43, 0.72);
  --panel-edge: rgba(178, 227, 232, 0.11);
  --text: #f0f7f8;
  --muted: #a4b8c0;
  --accent: #63e6dc;
  --accent-bright: #8bf5e9;
  --ease-out: cubic-bezier(0.2, 0.72, 0.24, 1);
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(18, 78, 84, 0.32), transparent 47rem),
    linear-gradient(155deg, #0a2028 0%, #07171e 43%, #09141e 100%);
  color: var(--text);
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.2;
  background-image: radial-gradient(rgba(217, 250, 247, 0.55) 0.55px, transparent 0.8px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 80%);
}

body::after {
  background: linear-gradient(180deg, transparent 63%, rgba(3, 13, 20, 0.42));
}

.ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__glow {
  position: absolute;
  width: min(70vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.22;
  will-change: transform;
}

.ambient__glow--one {
  top: -23rem;
  left: calc(50% - 28rem);
  background: radial-gradient(circle, rgba(36, 190, 180, 0.62), rgba(21, 97, 112, 0.12) 48%, transparent 70%);
  animation: drift-one 28s ease-in-out infinite alternate;
}

.ambient__glow--two {
  right: calc(50% - 31rem);
  bottom: -27rem;
  background: radial-gradient(circle, rgba(37, 117, 171, 0.43), rgba(23, 74, 101, 0.11) 48%, transparent 70%);
  animation: drift-two 34s ease-in-out infinite alternate;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(153, 212, 215, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 212, 215, 0.06) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse at 50% 44%, #000 3%, transparent 78%);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 44px 20px;
}

.link-hub {
  width: min(100%, 484px);
  padding: 34px 30px 24px;
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  border-radius: 28px;
  background:
    linear-gradient(142deg, rgba(255, 255, 255, 0.045), transparent 43%),
    var(--panel);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 0 54px rgba(35, 175, 171, 0.065);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: hub-enter 760ms var(--ease-out) both;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile__image-wrap {
  position: relative;
  display: grid;
  width: 108px;
  height: 108px;
  margin: 0 0 22px;
  place-items: center;
  border: 1px solid rgba(117, 237, 226, 0.56);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(96, 224, 211, 0.19), rgba(23, 69, 80, 0.52));
  box-shadow:
    0 0 0 6px rgba(98, 230, 220, 0.045),
    0 12px 36px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(73, 214, 202, 0.12);
  transform: rotate(-2deg);
}

.profile__image-wrap::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  pointer-events: none;
  content: "";
}

.profile__image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 31px;
  object-fit: cover;
  transform: rotate(2deg) scale(0.97);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.eyebrow span {
  color: rgba(128, 237, 226, 0.48);
  font-weight: 500;
}

.profile__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 8vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.profile__subtitle {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 29px;
}

.link-card {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 14px;
  padding: 11px 15px;
  overflow: hidden;
  border: 1px solid rgba(180, 223, 229, 0.105);
  border-radius: 17px;
  background: linear-gradient(105deg, rgba(242, 252, 255, 0.045), rgba(242, 252, 255, 0.018));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 5px 17px rgba(0, 0, 0, 0.09), 0 1px 0 rgba(255, 255, 255, 0.035) inset;
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
  animation: card-enter 620ms var(--ease-out) both;
}

.link-card:nth-child(1) { animation-delay: 100ms; }
.link-card:nth-child(2) { animation-delay: 155ms; }
.link-card:nth-child(3) { animation-delay: 210ms; }
.link-card:nth-child(4) { animation-delay: 265ms; }
.link-card:nth-child(5) { animation-delay: 320ms; }

.link-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(113, 235, 222, 0.54), transparent);
  opacity: 0;
  content: "";
  transition: opacity 220ms ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(133, 224, 221, 0.3);
  background-color: rgba(137, 226, 219, 0.045);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.19), 0 0 25px rgba(61, 193, 183, 0.08);
}

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

.link-card:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

.link-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(206, 236, 239, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: #e8f2f3;
}

.link-card__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.link-card__icon--twitch { color: #c5a5ff; }
.link-card__icon--discord { color: #b5bdff; }
.link-card__icon--youtube { color: #ff8b91; }
.link-card__icon--instagram { color: #f2a8cf; }

.link-card__copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.link-card__title {
  overflow: hidden;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__detail {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.35;
}

.link-card__arrow {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-left: auto;
  color: #80969d;
  transition: color 180ms ease, transform 220ms var(--ease-out);
}

.link-card:hover .link-card__arrow,
.link-card:focus-visible .link-card__arrow {
  color: var(--accent-bright);
  transform: translate(2px, -2px);
}

.link-card--featured {
  border-color: rgba(99, 230, 220, 0.42);
  background:
    linear-gradient(100deg, rgba(73, 221, 206, 0.12), rgba(99, 230, 220, 0.045) 58%, rgba(255, 255, 255, 0.025));
  box-shadow: 0 0 0 1px rgba(99, 230, 220, 0.055), 0 9px 24px rgba(0, 0, 0, 0.16);
}

.link-card--featured::before {
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 1;
}

.link-card--featured .link-card__icon {
  border-color: rgba(99, 230, 220, 0.19);
  background: rgba(77, 210, 200, 0.105);
  color: var(--accent-bright);
}

.link-card--featured .link-card__title {
  color: #f4fffe;
}

.link-card__badge {
  padding: 5px 7px;
  border: 1px solid rgba(114, 242, 228, 0.2);
  border-radius: 7px;
  background: rgba(81, 215, 202, 0.1);
  color: var(--accent-bright);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
}

.page-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
}

.page-footer__rule {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117, 232, 222, 0.58), transparent);
}

.page-footer p {
  margin: 0;
  color: rgba(164, 184, 192, 0.72);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.page-footer p span {
  padding: 0 4px;
  color: var(--accent);
}

@keyframes hub-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes drift-one {
  from { transform: translate3d(-2%, 0, 0) scale(0.98); }
  to { transform: translate3d(5%, 8%, 0) scale(1.07); }
}

@keyframes drift-two {
  from { transform: translate3d(2%, 0, 0) scale(1); }
  to { transform: translate3d(-6%, -7%, 0) scale(1.09); }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 24px 15px;
  }

  .link-hub {
    padding: 28px 20px 20px;
    border-radius: 24px;
  }

  .profile__image-wrap {
    width: 96px;
    height: 96px;
    margin-bottom: 19px;
    border-radius: 29px;
  }

  .profile__image,
  .profile__image-wrap::after {
    border-radius: 27px;
  }

  .links {
    gap: 9px;
    margin-top: 25px;
  }

  .link-card {
    min-height: 68px;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 15px;
  }

  .link-card__icon {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
  }

  .link-card__badge {
    padding: 5px 6px;
    font-size: 0.52rem;
  }
}

@media (max-width: 360px) {
  .link-hub {
    padding-inline: 15px;
  }

  .link-card {
    gap: 10px;
    padding-inline: 10px;
  }

  .link-card__badge {
    display: none;
  }
}

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

  .ambient__glow {
    will-change: auto;
  }
}

