@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  color: #fff;
  background: #030208;
  --rainbow: #a132ff, #ff2aca, #ff522d, #ffeb4c, #58ffae, #00eaff, #2685ff, #a132ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
}

.aurora,
#bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora {
  z-index: -2;
  overflow: hidden;
}

.aurora::before {
  content: "";
  position: absolute;
  inset: -27%;
  background: url("aurora.webp") center / 100% 100% no-repeat;
  animation: drift 12s ease-in-out infinite alternate;
}

#bg {
  z-index: -1;
  width: 100%;
  height: 100%;
}

.page {
  width: min(87vw, 1044px, 97svh);
  margin-inline: auto;
  padding-block: clamp(44px, 8.3svh, 110px) 56px;
  container-type: inline-size;
}

.hero {
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  margin-inline: auto;
  width: 39%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #141024;
  box-shadow: 0 0 26px #6746ff88, 0 12px 25px -8px #00baff;
  font-size: 12cqw;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-ring { display: none; }

.name,
.bio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .24em;
}

.verified-badge,
.bio-arrow {
  flex: none;
  display: block;
  aspect-ratio: 1;
}

.verified-badge {
  width: .53em;
  filter: drop-shadow(0 0 6px #009fff66);
}

.bio-arrow {
  width: .9em;
  filter: drop-shadow(0 0 .15em #8d72ff);
}

.name {
  margin: 1.4cqw 0 0;
  font-size: 8.2cqw;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.bio {
  margin: .8cqw 0 0;
  font-size: 4.8cqw;
  line-height: 1.2;
}

.stack {
  display: grid;
  gap: 3.5cqw;
  margin-top: 6.2cqw;
  filter: drop-shadow(0 0 9px #a143ff66);
}

.link-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5cqw;
  isolation: isolate;
  min-height: max(54px, 18.2cqw);
  padding: 2.5cqw 6.1cqw 2.5cqw 7.7cqw;
  border: 2px solid transparent;
  border-radius: max(15px, 5.3cqw);
  background:
    radial-gradient(ellipse at left top, #240935, transparent 37%) padding-box,
    radial-gradient(ellipse at right bottom, #280b29, transparent 38%) padding-box,
    linear-gradient(110deg, #100817, #04070b 47%, #0b081e) padding-box,
    conic-gradient(from var(--angle), var(--rainbow)) border-box;
  color: inherit;
  text-decoration: none;
  animation: outline-spin 6s linear infinite;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, filter 180ms ease-out;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .link-row:hover {
    transform: translateY(-5px) scale(1.015);
    filter: brightness(1.2);
    box-shadow: 0 0 24px #b449ff77, 0 0 42px #00d9ff38;
  }

  .link-row:hover .link-go {
    transform: translate(3px, -3px);
  }
}

.link-row:active {
  transform: scale(.97);
  filter: brightness(1.35);
  box-shadow: 0 0 18px #ba5cff99;
}

.link-row:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.link-icon, .link-go {
  flex: none;
  width: 7.6cqw;
  height: 7.6cqw;
}

.link-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.link-text {
  display: grid;
  gap: 4px;
}

.link-label {
  font-weight: 700;
  font-size: max(16px, 5.25cqw);
  letter-spacing: -.025em;
}

.link-note {
  font-size: max(12px, 2cqw);
  color: #d0c6e2;
}

.link-go {
  width: 4.6cqw;
  height: 4.6cqw;
  margin-left: auto;
  transition: transform 180ms ease-out;
}

@keyframes outline-spin {
  to { --angle: 360deg; }
}

@keyframes drift {
  0% { transform: translate(-13%, 16%) scale(1.02); }
  50% { transform: translate(8%, 4%) scale(1.12); }
  100% { transform: translate(14%, -15%) scale(1.04); }
}

@media (max-width: 600px) {
  .page {
    width: min(440px, calc(100% - max(32px, env(safe-area-inset-left) + env(safe-area-inset-right) + 24px)));
    padding-top: max(env(safe-area-inset-top), clamp(52px, 11svh, 104px));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .avatar { width: clamp(112px, 48%, 188px); }

  .name {
    margin-top: 16px;
    font-size: clamp(32px, 10cqw, 46px);
  }

  .bio {
    margin-top: 6px;
    font-size: clamp(17px, 5.3cqw, 23px);
  }

  .stack { margin-top: clamp(24px, 8cqw, 36px); }

  .link-row {
    min-height: 64px;
    gap: 13px;
    padding-inline: clamp(12px, 5cqw, 22px);
  }

  .link-icon { width: 26px; height: 26px; }
  .link-go { width: 19px; height: 19px; }
  .link-label { font-size: clamp(16px, 5.7cqw, 25px); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora::before, .link-row { animation: none; }
  .link-row, .link-go { transition: none; }
  .link-row:hover, .link-row:active, .link-row:hover .link-go { transform: none; }
}

.reward {
  display: grid;
  justify-items: center;
  margin-top: clamp(20px, 3.5cqw, 36px);
  text-align: center;
}

.reward-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .16em .42em;
  margin: 0;
  padding: .65em 1em;
  border: 1px solid #c4a2ff55;
  border-radius: 22px;
  background: linear-gradient(110deg, #1c0c2e, #080a17 52%, #09212b);
  box-shadow: 0 0 22px #8d43ff24;
  color: #f3edff;
  font-size: clamp(13px, 2.8cqw, 24px);
  font-weight: 700;
  line-height: 1.35;
}

.reward-copy > * {
  white-space: nowrap;
}

.reward-copy strong {
  color: #e8baff;
  font-weight: 800;
}

@supports (background-clip: text) {
  .reward-copy strong {
    background: linear-gradient(100deg, #ff9ceb, #ffe594 48%, #6af4ff);
    background-clip: text;
    color: transparent;
  }
}

.payout-note {
  margin: 10px 0 0;
  color: #d3cbe5;
  font-size: .875rem;
}

.payout-note strong { color: #a9fbe2; }

.claim {
  width: min(100%, 28rem);
  margin-top: 16px;
}

.claim-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .65em;
  min-height: 48px;
  padding: .65em .9em;
  border: 1px solid #dcffa8;
  border-radius: 14px;
  background: linear-gradient(110deg, #c9ff58, #75ff77 55%, #43ffc0);
  color: #062513;
  box-shadow: 0 0 20px #62ff7055, inset 0 1px #efffc5;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}

@media (hover: hover) {
  .claim-button:hover { filter: brightness(1.12); }
}

.claim-button:active { filter: brightness(.94); }
.claim-button::-webkit-details-marker { display: none; }

.claim-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: clamp(12px, 4cqw, 20px);
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top right, #24113e, #0b0b1a 66%) padding-box,
    linear-gradient(135deg, #af62fa, #353852 50%, #39dfb0) border-box;
  box-shadow: 0 0 22px #a947ee28, 0 12px 30px #0008;
  text-align: left;
}

.claim-form label { font-weight: 700; }

.claim-form input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #71628c;
  border-radius: 10px;
  background: #070514;
  color: #fff;
  font: inherit;
  font-size: max(16px, 1em);
}

.claim-button:focus-visible,
.claim-form input:focus-visible {
  outline: 2px solid #a2ffe4;
  outline-offset: 3px;
}

.robux-icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

.claim-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #94ffce40;
  border-radius: 12px;
  background: #68ffab0b;
  overflow-wrap: anywhere;
}

.claim-account[hidden] { display: none; }

.claim-account img {
  flex: none;
  border: 1px solid #7bffd186;
  border-radius: 10px;
  background: #21203a;
}

#claim-status {
  margin: 0;
  color: #f2d1ff;
  line-height: 1.45;
}

#claim-status:empty { margin-top: -12px; }

.claim > summary {
  position: relative;
  min-height: 56px;
  padding-inline: 2.55rem;
  box-shadow: 0 0 24px #5cff7c55, inset 0 1px #efffc5;
}

.claim-chevron {
  position: absolute;
  right: .85rem;
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 220ms ease;
}

.claim[open] .claim-chevron { transform: rotate(180deg); }

.claim-form {
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 100% 0%, #123a36, transparent 63%) padding-box,
    linear-gradient(155deg, #0c1d21, #060f16) padding-box,
    linear-gradient(145deg, #b5fa6d, #34726c 43%, #44e0fa) border-box;
  box-shadow: 0 0 24px #52f9ba24, 0 14px 32px #0008;
}

.claim-form input {
  border-color: #3f726f;
  background: #061114;
  color: #eaffe9;
}

.claim[open] .claim-form {
  animation: claim-reveal 320ms cubic-bezier(.2, .75, .25, 1) both;
  transform-origin: top center;
}

.claim-continue {
  border-color: #72dcdf;
  background: linear-gradient(115deg, #a9ffeb, #66e4ff);
  color: #052328;
  box-shadow: 0 0 14px #63e9ff30, inset 0 1px #d8fffc;
}

#followed {
  border-color: #c8ff85;
  background: linear-gradient(115deg, #d4ff66, #5cf5a8);
  color: #092719;
  box-shadow: 0 0 17px #76ff8050;
}

.claim-account:not([hidden]) {
  animation: claim-reveal 240ms ease-out both;
  background: linear-gradient(105deg, #104044, #0c2529);
  border-color: #51e8bd80;
}

#claim-status:not(:empty) {
  padding: .65em .8em;
  border-left: 2px solid #73ffd4;
  border-radius: 5px 9px 9px 5px;
  background: #66ffbf14;
  color: #d5ffed;
  font-size: .9375rem;
}

@keyframes claim-reveal {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 360px) {
  .claim > summary .robux-icon:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .claim[open] .claim-form,
  .claim-account:not([hidden]) { animation: none; }
  .claim-chevron { transition: none; }
}

#followed[hidden] { display: none; }

.follow-dialog {
  width: min(calc(100% - 32px), 25rem);
  padding: clamp(20px, 6vw, 32px);
  border: 1px solid transparent;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 50% 0%, #103e39, transparent 65%) padding-box,
    linear-gradient(160deg, #10191b, #080d12) padding-box,
    linear-gradient(140deg, #d9ff5e, #4efcc8 48%, #2b9fe5) border-box;
  color: #f1ffff;
  box-shadow: 0 0 34px #48fac743, 0 22px 64px #000b;
  text-align: center;
}

.follow-dialog[open] { animation: claim-reveal 260ms ease-out both; }
.follow-dialog::backdrop { background: #03080bd9; }

.follow-dialog img {
  border: 2px solid #a8ff93;
  border-radius: 23px;
  background: #163432;
  box-shadow: 0 0 22px #63ff9c45;
}

.follow-dialog h2 {
  margin: .65rem 0 1rem;
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  overflow-wrap: anywhere;
}

.follow-dialog p {
  margin: 0 0 1.2rem;
  padding: .7rem .8rem;
  border: 1px solid #ffc76b50;
  border-radius: 12px;
  background: #ffba6510;
  color: #ffe1ad;
  font-weight: 600;
}

.follow-dialog button { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .follow-dialog[open] { animation: none; }
}

.link-row {
  border-radius: clamp(18px, 3.4cqw, 38px);
  box-shadow: inset 0 2px 0 #ffffff2e, inset 0 -7px 0 #ffffff09, 0 6px 0 #030208;
}

.link-row:active {
  box-shadow: inset 0 2px 0 #ffffff20, 0 2px 0 #030208;
}

.claim-button,
.claim-form button[type="submit"],
#followed {
  border: 3px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(155deg, #f0ffb747, transparent 45%) padding-box,
    linear-gradient(180deg, #caff60, #55f570 58%, #69ffab) padding-box,
    conic-gradient(from var(--angle), #ff26be, #ff653b, #fff237, #4dff64, #16faff, #5270ff, #bf30ff, #ff26be) border-box;
  color: #092414;
  text-shadow: none;
  box-shadow: inset 0 1px 0 #f4ffd1, inset 0 -3px 0 #23994c66, 0 0 18px #58ff7f75;
  position: relative;
  isolation: isolate;
  overflow: clip;
  animation: outline-spin 1.8s linear infinite;
  transition: transform 140ms ease, filter 140ms ease;
}

.claim-button:active { transform: translateY(2px); }

.claim-button .robux-icon {
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px #063821c0);
}

.claim-form,
.follow-dialog {
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 84% 0%, #229a59bb, transparent 74%) padding-box,
    linear-gradient(155deg, #17472e, #0d2d21) padding-box,
    linear-gradient(130deg, #b1ff65, #2bc47d 48%, #35f3e8) border-box;
}

.claim-form { position: relative; }

.claim-button::after,
.claim-form::after,
.follow-dialog[open]::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -65%;
  bottom: -65%;
  left: -52%;
  width: 33%;
  background: linear-gradient(90deg, transparent, #fff7 34%, #fffc 42%,
    #fff1 53%, #fff6 59%, transparent 73%);
  transform: skewX(-25deg);
  animation: glass-sweep 7s ease-in-out infinite;
}

.claim-form::after,
.follow-dialog[open]::after { opacity: .5; animation-delay: 1.3s; }

@keyframes glass-sweep {
  0%, 52% { left: -52%; }
  75%, 100% { left: 125%; }
}

@media (prefers-reduced-motion: reduce) {
  .claim-button,
  .claim-form button[type="submit"],
  #followed { animation: none; transition: none; }
  .claim-button:active { transform: none; }
  .claim-button::after,
  .claim-form::after,
  .follow-dialog[open]::after { animation: none; visibility: hidden; }
}
