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

:root {
  --top-bg: #241b31;
  --bg: #15101f;
  --surface: rgba(35, 25, 48, 0.86);
  --surface2: rgba(49, 36, 64, 0.92);

  --border: rgba(255, 233, 255, 0.1);
  --border2: rgba(255, 233, 255, 0.18);

  --text: #fff8ff;
  --muted: rgba(255, 240, 255, 0.62);
  --hint: rgba(255, 240, 255, 0.38);

  --accent: #f3c7df;
  --accent2: #c8b4ef;
  --accent3: #b8ddcf;
  --accent4: #e7c89f;

  --online: #57d67a;
  --idle: #ffbe55;
  --dnd: #ff6b7d;
  --offline: #8f879a;

  --font-display: "DM Serif Display", serif;
  --font-ui: "Syne", sans-serif;
  --font-mono: "DM Mono", monospace;

  --radius: 14px;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--top-bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;

  overflow-x: hidden;

  background:
    radial-gradient(circle at 12% 10%, rgba(200, 180, 239, 0.2), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(243, 199, 223, 0.14), transparent 25%),
    radial-gradient(circle at 70% 85%, rgba(184, 221, 207, 0.1), transparent 28%),
    linear-gradient(
      to bottom,
      var(--top-bg) 0,
      var(--top-bg) 120px,
      var(--bg) 330px
    );

  color: var(--text);

  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;

  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

body::before {
  content: "";

  position: fixed;
  inset: 0;
  z-index: 0;

  pointer-events: none;

  opacity: 0.55;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  z-index: 0;

  border-radius: 50%;

  pointer-events: none;

  filter: blur(90px);
  opacity: 0.13;
}

.orb-1 {
  width: 520px;
  height: 520px;

  top: -170px;
  right: -110px;

  background: var(--accent2);
}

.orb-2 {
  width: 420px;
  height: 420px;

  bottom: 80px;
  left: -170px;

  background: var(--accent3);
}

.orb-3 {
  width: 340px;
  height: 340px;

  top: 50%;
  left: 50%;

  opacity: 0.08;

  background: var(--accent);

  transform: translate(-50%, -50%);
}

.container {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 560px;

  margin: 0 auto;
  padding: 48px 24px 0;
}




.profile {
  display: flex;
  align-items: center;

  gap: 20px;

  margin-bottom: 18px;

  animation: fade-up 0.7s 0.1s ease both;
}

.avatar-wrap {
  position: relative;

  flex-shrink: 0;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 82px;
  height: 82px;

  overflow: hidden;

  border: 2px solid var(--border2);
  border-radius: 50%;

  background: var(--surface2);
  color: var(--accent);

  font-family: var(--font-display);
  font-size: 28px;
}

.avatar img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.avatar-ring {
  position: absolute;
  inset: -4px;

  border: 1.5px solid transparent;
  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent2),
      var(--accent3),
      var(--accent4)
    )
    border-box;

  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: destination-out;

  mask-composite: exclude;
}

.profile-info {
  min-width: 0;
}

.profile-info h1 {
  margin-bottom: 4px;

  color: var(--text);

  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
}

.profile-info h1 em {
  color: var(--accent);

  font-style: italic;
}

.pronouns {
  color: var(--accent2);

  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.bio {
  margin-bottom: 34px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.7;

  animation: fade-up 0.7s 0.16s ease both;
}

.section-label {
  margin-bottom: 14px;

  color: var(--hint);

  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.discord-card {
  padding: 16px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 52%),
    var(--surface);

  box-shadow: 0 22px 70px rgba(5, 2, 10, 0.24);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  animation: fade-up 0.7s 0.2s ease both;
}

.discord-main {
  display: flex;
  align-items: center;

  gap: 14px;

  margin-bottom: 14px;
}

.discord-avatar-wrap {
  position: relative;

  width: 58px;
  height: 58px;

  flex-shrink: 0;
}

.discord-avatar {
  display: block;

  width: 58px;
  height: 58px;

  border: 1px solid var(--border2);
  border-radius: 50%;

  background: var(--surface2);

  object-fit: cover;
}

.discord-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;

  width: 17px;
  height: 17px;

  border: 3px solid #21172d;
  border-radius: 50%;

  background: var(--offline);
}

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

.discord-display {
  overflow: hidden;

  color: var(--text);

  font-size: 15px;
  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-username,
.discord-presence {
  color: var(--muted);

  font-family: var(--font-mono);
  font-size: 11px;
}

.discord-presence {
  margin-top: 2px;
}

.discord-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 9px;
}

.discord-block {
  min-width: 0;
  padding: 11px 12px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: rgba(255, 255, 255, 0.025);
}

.discord-block-title {
  margin-bottom: 4px;

  color: var(--hint);

  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.discord-block-text {
  overflow-wrap: anywhere;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.45;
}

.discord-devices {
  display: flex;
  flex-wrap: wrap;

  gap: 6px;
}

.device-chip {
  padding: 4px 7px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.035);

  color: var(--muted);

  font-family: var(--font-mono);
  font-size: 9px;
}

.divider {
  height: 1px;

  margin: 32px 0;

  background: var(--border);
}

.links {
  display: flex;
  flex-direction: column;

  gap: 8px;

  margin-bottom: 52px;

  animation: fade-up 0.7s 0.28s ease both;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 58px;

  padding: 13px 18px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: rgba(255, 255, 255, 0.012);
  color: var(--text);

  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;

  text-decoration: none;

  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.15s;
}

.link-btn:hover {
  border-color: var(--border2);

  background: var(--surface2);

  transform: translateX(3px);
}

.link-left {
  display: flex;
  align-items: center;

  min-width: 0;

  gap: 12px;
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  flex-shrink: 0;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.045);

  font-size: 14px;
}

.link-name,
.link-handle {
  display: block;
}

.link-handle {
  margin-top: 1px;

  overflow-wrap: anywhere;

  color: var(--hint);

  font-family: var(--font-mono);
  font-size: 11px;
}

.arrow {
  flex-shrink: 0;

  color: var(--hint);

  font-size: 11px;

  transition: transform 0.2s;
}

.link-btn:hover .arrow {
  transform: translate(2px, -2px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    24px
    0
    calc(40px + env(safe-area-inset-bottom));

  border-top: 1px solid var(--border);

  animation: fade-up 0.7s 0.35s ease both;
}

.footer-sig {
  color: var(--hint);

  font-family: var(--font-mono);
  font-size: 11px;
}

.footer-sig span {
  color: var(--accent);
}

.footer-made {
  color: rgba(255, 240, 255, 0.2);

  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.companion {
  position: fixed;
  z-index: 12;

  width: 108px;
  height: 108px;

  right: 18px;
  bottom: 18px;

  pointer-events: none;

  transform: translate3d(160px, 160px, 0);

  filter: drop-shadow(0 18px 26px rgba(200, 180, 239, 0.24));
}

.paw-trail,
.spark {
  position: fixed;
  z-index: 8;

  opacity: 0;

  pointer-events: none;
}

.paw-trail {
  animation: paw-fade 0.9s ease forwards;
}

.spark {
  color: #fff2ff;

  animation: spark-fade 0.85s ease forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;

    transform: translateY(16px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;

    transform: scale(1);
  }

  50% {
    opacity: 0.6;

    transform: scale(0.85);
  }
}

@keyframes paw-fade {
  0% {
    opacity: 0.9;

    transform: translateY(0) rotate(var(--rot));
  }

  100% {
    opacity: 0;

    transform: translateY(-10px) rotate(var(--rot));
  }
}

@keyframes spark-fade {
  0% {
    opacity: 1;

    transform: translateY(0) scale(0.85);
  }

  100% {
    opacity: 0;

    transform: translateY(-12px) scale(1.1);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 32px 18px 0;
  }

  .profile {
    gap: 16px;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .profile-info h1 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .bio {
    margin-bottom: 30px;
  }

  .discord-card {
    padding: 14px;
  }

  .discord-grid {
    grid-template-columns: 1fr;
  }

  .links {
    margin-bottom: 40px;
  }

  .link-btn {
    padding: 13px 14px;
  }

  footer {
    align-items: flex-start;

    gap: 10px;
  }

  .companion,
  .paw-trail,
  .spark {
    display: none;
  }
}

@media (max-width: 380px) {
  .container {
    padding-right: 14px;
    padding-left: 14px;
  }

  .avatar {
    width: 62px;
    height: 62px;
  }

  .profile-info h1 {
    font-size: 25px;
  }

  .pronouns {
    font-size: 10px;
  }

  footer {
    flex-direction: column;
  }
}

@media (hover: none) {
  .link-btn:hover {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.footer-links {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

.footer-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.legal-dialog {
  width: min(92vw, 560px);
  max-height: min(84vh, 760px);
  overflow: auto;
  margin: auto;

  padding: 0;

  border: 1px solid var(--border2);
  border-radius: 18px;

  background: var(--surface);
  color: var(--text);

  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.legal-dialog::backdrop {
  background: rgba(12, 7, 18, 0.82);
  backdrop-filter: blur(8px);
}

.legal-dialog-inner {
  position: relative;
  padding: 32px;
}

.legal-dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;

  width: 38px;
  height: 38px;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--surface2);
  color: var(--muted);

  cursor: pointer;

  font: inherit;
  font-size: 24px;
  line-height: 1;
}

.legal-dialog-close:hover,
.legal-dialog-close:focus-visible {
  border-color: var(--border2);
  color: var(--text);
}

.legal-eyebrow {
  margin-bottom: 6px;

  color: var(--accent2);

  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-dialog h2 {
  margin: 0 48px 24px 0;

  color: var(--text);

  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
}

.legal-dialog h3 {
  margin: 24px 0 8px;

  color: var(--accent);

  font-size: 14px;
}

.legal-dialog p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.legal-date {
  margin-top: 26px;

  color: var(--hint) !important;

  font-family: var(--font-mono);
  font-size: 10px !important;
}

@media (max-width: 560px) {
  .legal-dialog-inner {
    padding: 26px 22px;
  }

  .legal-dialog h2 {
    font-size: 30px;
  }
}

.footer-links {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  gap: 4px 12px;
}

.footer-links .footer-made {
  grid-column: 1 / -1;
  justify-self: end;
}
