/* ---------- RESET ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: #e6e1ff;
  background-color: #05000d;
  background-image:
    radial-gradient(ellipse at bottom, #1b0033 0%, #05000d 100%),
    url('/assets/img/stars.svg');
  background-repeat: no-repeat, repeat;
  background-size: cover, 800px 800px;
  background-position: center bottom, 0 0;
  overflow-x: hidden;
  min-height: 100vh;
  animation: starScroll 240s linear infinite;
}


/* ---------- LAYOUT ---------- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 2px solid #9b5cff;
  box-shadow: 0 0 25px rgba(155, 92, 255, 0.6);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.status {
  color: #bfa8ff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat {
  background: rgba(30, 10, 60, 0.6);
  border: 1px solid rgba(155, 92, 255, 0.3);
  padding: 1.5rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(155, 92, 255, 0.15);
}

.stat span {
  font-size: 1.8rem;
  font-weight: 600;
  display: block;
}

.stat label {
  font-size: 0.75rem;
  color: #bdaaff;
  letter-spacing: 0.1em;
}

/* ---------- BADGES ---------- */
.badges h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.badge-grid {
  position: relative;
  width: 360px;
  height: 360px; /* REQUIRED */
  margin: 3rem auto;
  border-radius: 50%;
  animation: orbit 60s linear infinite;
  z-index: 2;
  isolation: isolate;
}

.constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.constellation line {
  stroke: rgba(155, 92, 255, 0.25);
  stroke-width: 1;
  filter: drop-shadow(0 0 6px rgba(155, 92, 255, 0.6));
}

.badge {
  position: absolute;
  width: 90px;
  height: 90px;
  background: rgba(20, 5, 40, 0.85);
  border: 1px solid rgba(155, 92, 255, 0.4);
  border-radius: 50%;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.65rem;
  box-shadow: 0 0 18px rgba(155, 92, 255, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.badge:hover {
  transform: scale(1.15);
  box-shadow: 0 0 35px rgba(180, 120, 255, 0.9);
  z-index: 10;
}

.badge-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  animation: counterOrbit 60s linear infinite;
}


/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  margin-top: 4rem;
}

footer a {
  color: #9b5cff;
  text-decoration: none;
  font-size: 0.85rem;
}

footer a:hover {
  text-decoration: underline;
}

.steam-mini {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.steam-frame {
  width: 328px;
  height: 210px;
  padding: 8px; /* space for glow */
  border-radius: 16px;
  background: rgba(20, 5, 40, 0.6);
  box-shadow: 0 0 30px rgba(155, 92, 255, 0.35);
  box-sizing: content-box;
}

.steam-frame iframe {
  width: 328px;
  height: 210px;
  border: none;
  display: block;
  border-radius: 12px;
}


@keyframes starScroll {
  from {
    background-position: center bottom, 0 0;
  }
  to {
    background-position: center bottom, 0 -2000px;
  }
}

@keyframes orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

@keyframes counterOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
