:root {
  --deep: #13051d;
  --deep-2: #240735;
  --plum: #4c1368;
  --lilac: #d8b8ff;
  --gold: #f7c765;
  --gold-2: #fff0a9;
  --paper: #fff8ef;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.13);
  --stroke: rgba(255, 224, 147, 0.34);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--deep);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% -10%, rgba(247, 199, 101, 0.23), transparent 28rem),
    radial-gradient(circle at 15% 8%, rgba(177, 74, 232, 0.22), transparent 18rem),
    radial-gradient(circle at 88% 22%, rgba(251, 169, 79, 0.16), transparent 17rem),
    linear-gradient(160deg, #08020e 0%, var(--deep) 42%, #21062d 100%);
  overflow-x: hidden;
}

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

body::before {
  background-image:
    radial-gradient(circle, rgba(255, 240, 169, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(216, 184, 255, 0.62) 0 1px, transparent 1.8px);
  background-position: 0 0, 32px 48px;
  background-size: 76px 76px, 112px 112px;
  opacity: 0.32;
  animation: starDrift 18s linear infinite;
}

body::after {
  background:
    linear-gradient(125deg, transparent 4%, rgba(247, 199, 101, 0.13) 19%, transparent 33%),
    linear-gradient(305deg, transparent 62%, rgba(216, 184, 255, 0.13) 76%, transparent 92%);
  mix-blend-mode: screen;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
}

.ambient {
  position: fixed;
  width: 42vw;
  max-width: 360px;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 199, 101, 0.2);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.45;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: inherit;
  border-radius: inherit;
  transform: rotate(38deg);
}

.ambient::after {
  inset: 27%;
  transform: rotate(72deg);
}

.ambient-one {
  top: 7%;
  right: -110px;
  animation: floatRing 12s ease-in-out infinite;
}

.ambient-two {
  bottom: 2%;
  left: -140px;
  animation: floatRing 14s ease-in-out infinite reverse;
}

.link-card {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 14px 14px 20px;
  border: 1px solid rgba(255, 224, 147, 0.24);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(18, 4, 29, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px);
  overflow: hidden;
  animation: riseIn 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: radial-gradient(circle at 50% 9%, rgba(247, 199, 101, 0.26), transparent 32%),
    radial-gradient(circle at 50% 62%, rgba(140, 50, 216, 0.16), transparent 45%);
}

.hero-frame {
  position: relative;
  height: clamp(168px, 46vw, 245px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 147, 0.26);
  background: #12041d;
  box-shadow: inset 0 -35px 80px rgba(11, 2, 18, 0.7);
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 54% 47%;
  opacity: 0.94;
  transform: scale(1.02);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(15, 3, 23, 0.86) 100%),
    radial-gradient(circle at 55% 28%, transparent 0 18%, rgba(247, 199, 101, 0.18) 19%, transparent 42%);
}

.hero-glow {
  position: absolute;
  left: 50%;
  bottom: -42px;
  width: 76%;
  height: 86px;
  border-radius: 50%;
  background: rgba(247, 199, 101, 0.18);
  filter: blur(24px);
  transform: translateX(-50%);
}

.profile {
  margin-top: -48px;
  padding: 0 12px;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-2), #ad63ff 48%, var(--gold));
  box-shadow: 0 0 0 7px rgba(19, 5, 29, 0.72), 0 14px 42px rgba(247, 199, 101, 0.25);
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: inherit;
  border: 1px solid rgba(247, 199, 101, 0.3);
  animation: pulseHalo 2.9s ease-in-out infinite;
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: 55% 43%;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 12vw, 3.8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--gold-2);
  text-shadow: 0 0 26px rgba(247, 199, 101, 0.26);
}

.subtitle,
.invitation {
  margin-inline: auto;
}

.subtitle {
  max-width: 330px;
  margin-top: 13px;
  color: rgba(255, 248, 239, 0.78);
  font-size: 0.82rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.invitation {
  margin-top: 12px;
  margin-bottom: 0;
  color: var(--gold);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(1.6rem, 8vw, 2.3rem);
  line-height: 1.05;
  text-shadow: 0 0 22px rgba(247, 199, 101, 0.45);
}

.portal-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.portal-link {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  min-height: 82px;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--stroke);
  border-radius: 21px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-decoration: none;
  backdrop-filter: blur(16px);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.portal-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 240, 169, 0.24) 48%, transparent 64% 100%);
  opacity: 0;
  transform: translateX(-76%);
}

.portal-link:hover,
.portal-link:focus-visible {
  border-color: rgba(255, 240, 169, 0.74);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), 0 0 34px rgba(247, 199, 101, 0.16);
  transform: translateY(-2px);
}

.portal-link:hover::before,
.portal-link:focus-visible::before {
  animation: buttonShine 1200ms ease;
}

.portal-link:active {
  transform: translateY(1px) scale(0.99);
}

.icon-orb {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 224, 147, 0.58);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 22%, #fff0a9, #f7c765 39%, #6f2e89 88%);
  box-shadow: 0 0 24px rgba(247, 199, 101, 0.22);
}

.icon-orb svg {
  width: 25px;
  height: 25px;
  fill: #180620;
}

.portal-copy {
  display: grid;
  gap: 5px;
}

.portal-copy strong {
  color: #fff8ef;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.portal-copy small {
  color: rgba(255, 248, 239, 0.74);
  font-size: 0.86rem;
  line-height: 1.36;
}

.footer-quote {
  margin: 22px auto 0;
  max-width: 370px;
  padding: 16px 12px 2px;
  color: rgba(255, 224, 147, 0.9);
  font-size: 0.84rem;
  line-height: 1.7;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.footer-quote::before {
  content: "";
  display: block;
  width: 78%;
  height: 1px;
  margin: 0 auto 15px;
  background: linear-gradient(90deg, transparent, rgba(247, 199, 101, 0.72), transparent);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes starDrift {
  to {
    background-position: 76px 76px, 144px 160px;
  }
}

@keyframes floatRing {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(8px, -16px, 0) rotate(8deg);
  }
}

@keyframes pulseHalo {
  0%,
  100% {
    opacity: 0.36;
    transform: scale(1);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.06);
  }
}

@keyframes buttonShine {
  0% {
    opacity: 0;
    transform: translateX(-76%);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(76%);
  }
}

@media (min-width: 760px) {
  .page-shell {
    padding: 38px;
  }

  .link-card {
    width: min(100%, 720px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 22px;
    padding: 18px;
    border-radius: 34px;
  }

  .hero-frame {
    grid-row: 1 / span 3;
    height: 100%;
    min-height: 680px;
    border-radius: 28px;
  }

  .hero-image {
    object-position: 50% 50%;
  }

  .profile {
    margin-top: 8px;
    padding-top: 4px;
  }

  .portal-list {
    margin-top: 20px;
  }

  .footer-quote {
    grid-column: 2;
    padding-bottom: 6px;
  }
}

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