:root {
  color-scheme: dark;
  --brand-light: #efefef;
  --brand-dark: #151515;
  --brand-purple: #b97cff;
  --brand-green: #65e380;
  --brand-blue: #50b3ff;
  --brand-orange: #f5945c;
  --text: #efefef;
  --muted: #b9b9c5;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  background:
    radial-gradient(circle at 14% 4%, rgba(185, 124, 255, 0.28), transparent 30%),
    radial-gradient(circle at 84% 100%, rgba(80, 179, 255, 0.22), transparent 33%),
    radial-gradient(circle at 50% 120%, rgba(101, 227, 128, 0.16), transparent 28%),
    linear-gradient(180deg, #1b1b1f, #151515 65%);
  color: var(--text);
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 44px;
}

.panel {
  background:
    linear-gradient(180deg, rgba(239, 239, 239, 0.04), rgba(239, 239, 239, 0.01)),
    rgba(21, 21, 21, 0.84);
  border: 1px solid rgba(239, 239, 239, 0.12);
  border-radius: 22px;
  padding: 24px;
  margin-top: 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  background:
    linear-gradient(90deg, rgba(239, 239, 239, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(239, 239, 239, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(185, 124, 255, 0.11), rgba(80, 179, 255, 0.03)),
    rgba(21, 21, 21, 0.84);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 148, 92, 0.18), transparent 65%);
  pointer-events: none;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(185, 124, 255, 0.28);
  background: linear-gradient(180deg, rgba(185, 124, 255, 0.12), rgba(80, 179, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(239, 239, 239, 0.08);
}

.brand-logo-img {
  height: 26px;
  width: auto;
  display: block;
  filter: invert(1) drop-shadow(0 0 8px rgba(185, 124, 255, 0.24));
}

.mascot-sticker {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 16px;
  transform: rotate(-3deg);
  overflow: hidden;
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-title {
  margin: 14px 0 0;
  text-align: center;
  font-size: clamp(1.95rem, 5vw, 3.8rem);
  line-height: 1.07;
  letter-spacing: 0.01em;
  font-weight: 800;
  font-family: "Sora", "Space Grotesk", "Segoe UI", sans-serif;
  background: linear-gradient(92deg, #efefef, #b97cff 45%, #50b3ff 78%, #65e380);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 12px auto 0;
  max-width: 700px;
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.96rem, 2vw, 1.14rem);
  line-height: 1.48;
}

.preconnect-card {
  margin: 34px auto 8px;
  width: min(760px, 100%);
  border: 1px dashed rgba(239, 239, 239, 0.24);
  border-radius: 24px;
  padding: 40px 26px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(185, 124, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(21, 21, 21, 0.86), rgba(21, 21, 21, 0.72));
  box-shadow: inset 0 1px 0 rgba(239, 239, 239, 0.05);
}

.preconnect-card.hidden {
  display: none;
}

.preconnect-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  box-shadow: 0 10px 28px rgba(80, 179, 255, 0.25);
}

.discord-icon {
  fill: #f6f8ff;
}

.preconnect-card h2 {
  margin: 18px 0 0;
  color: var(--brand-light);
  font-size: clamp(1.5rem, 2.9vw, 1.95rem);
  font-family: "Sora", "Space Grotesk", "Segoe UI", sans-serif;
}

.preconnect-card p {
  margin: 12px auto 0;
  max-width: 560px;
  color: #b8b7c6;
  font-size: 0.96rem;
}

.preconnect-btn {
  margin-top: 24px;
  min-width: min(460px, 100%);
}

.hero-bottom {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.hero-bottom.hidden {
  display: none;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.identity-avatar-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  animation: avatar-pulse 2.2s ease-in-out infinite;
}

.identity-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    rgba(80, 179, 255, 0.98),
    rgba(185, 124, 255, 0.96),
    rgba(101, 227, 128, 0.92),
    rgba(245, 148, 92, 0.9),
    rgba(80, 179, 255, 0.98)
  );
  z-index: 0;
  filter: saturate(1.1);
  animation: avatar-spin 2.8s linear infinite;
}

.identity-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(185, 124, 255, 0.38), rgba(80, 179, 255, 0) 70%);
  z-index: 1;
  pointer-events: none;
  animation: avatar-aura 2.4s ease-in-out infinite;
}

.identity-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(239, 239, 239, 0.52);
  object-fit: cover;
  position: relative;
  z-index: 3;
  animation: avatar-float 1.8s ease-in-out infinite;
  transition: transform 200ms ease, filter 200ms ease;
}

.identity:hover .identity-avatar {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.identity-label {
  margin: 0;
  color: #a7a4b2;
  font-size: 0.9rem;
}

.identity-name {
  margin: 3px 0 0;
  color: #e5e5ea;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 600;
  font-family: "Sora", "Space Grotesk", "Segoe UI", sans-serif;
}

.buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-actions {
  justify-content: flex-end;
}

.btn {
  border: 1px solid rgba(239, 239, 239, 0.2);
  border-radius: 14px;
  background: rgba(239, 239, 239, 0.06);
  color: var(--text);
  padding: 10px 15px;
  font-weight: 600;
  font-family: "Sora", "Space Grotesk", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(239, 239, 239, 0.36);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
  color: #f9faff;
}

.btn.ghost {
  background: rgba(239, 239, 239, 0.02);
  color: #b6b4c3;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.card-wrap {
  margin-top: 16px;
  border-radius: 12px;
}

#roleCard {
  width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(160deg, #1a1a1e 0%, #151515 66%, #101014 100%);
  border-radius: 10px;
  border: 1px solid rgba(239, 239, 239, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

@keyframes avatar-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes avatar-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(80, 179, 255, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(185, 124, 255, 0.66));
  }
}

@keyframes avatar-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes avatar-aura {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.06);
  }
}

.site-footer {
  margin-top: 16px;
  text-align: center;
  color: rgba(239, 239, 239, 0.62);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.footer-credit {
  margin: 0;
}

.footer-disclaimer {
  margin: 6px 0 0;
  color: rgba(239, 239, 239, 0.48);
  font-size: 0.8rem;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .brand-row {
    align-items: center;
  }

  .mascot-sticker {
    width: 90px;
    height: 70px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
  }

  .identity-name {
    font-size: 1.35rem;
  }

  .preconnect-card {
    padding: 28px 14px;
  }
}
