:root {
  --bg-0: #05070b;
  --bg-1: #0b1220;
  --bg-2: #101b2f;
  --panel: rgba(10, 16, 26, 0.78);
  --panel-strong: rgba(14, 24, 40, 0.9);
  --text: #f3f0e7;
  --muted: #b8c0d4;
  --accent-1: #ffb347;
  --accent-2: #7ef6ff;
  --accent-3: #ff6ec7;
  --stroke: rgba(255, 255, 255, 0.12);
  --glow: rgba(126, 246, 255, 0.25);
  --shadow: rgba(7, 11, 18, 0.6);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% 10%, #1a2550 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
  padding-bottom: 96px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: soft-light;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 3px);
  opacity: 0.2;
  z-index: 0;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.7;
  filter: blur(0px);
  transform: translate3d(calc((var(--mx, 0.5) - 0.5) * 60px), calc((var(--my, 0.5) - 0.5) * 60px), 0);
  animation: glow 14s ease-in-out infinite;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.65), rgba(255, 179, 71, 0));
  top: -80px;
  left: -60px;
  animation-delay: -2s;
}

.orb-b {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(126, 246, 255, 0.7), rgba(126, 246, 255, 0));
  bottom: -120px;
  right: 8%;
  animation-delay: -6s;
}

.orb-c {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 110, 199, 0.6), rgba(255, 110, 199, 0));
  top: 28%;
  right: -60px;
  animation-delay: -10s;
}

.scene {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 30px 80px var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(126, 246, 255, 0.4);
  background: rgba(12, 24, 34, 0.6);
}

.profile-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}

.profile-banner img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.profile-name {
  font-family: "Unbounded", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.profile-motto {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  margin: 16px 0 12px;
}

h2 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--accent-2);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lede {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.statline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stat {
  background: var(--panel-strong);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 12px 16px;
  min-width: 140px;
}

.label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 6px;
}

.stat-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.presence-card {
  background: linear-gradient(140deg, rgba(24, 35, 54, 0.9), rgba(14, 20, 32, 0.9));
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(126, 246, 255, 0.3);
  box-shadow: inset 0 0 30px rgba(126, 246, 255, 0.12);
}

.presence-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--accent-2);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(126, 246, 255, 0.8);
  animation: blink 1.8s ease-in-out infinite;
}

.presence-body {
  margin: 14px 0 18px;
  font-size: 1.1rem;
  min-height: 56px;
}

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

.presence-game img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.presence-console {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.presence-console img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.presence-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.presence-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.presence-game-title {
  font-size: 1.1rem;
  font-weight: 600;
}


.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.achievement-card {
  position: relative;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(140deg, rgba(18, 24, 40, 0.92), rgba(10, 14, 24, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 20px rgba(126, 246, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.achievement-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 179, 71, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.achievement-card:hover::after {
  opacity: 1;
}

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

.achievement-header img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.achievement-title {
  font-weight: 600;
  font-size: 1rem;
}

.achievement-game {
  font-size: 0.8rem;
  color: var(--muted);
}

.achievement-desc {
  margin: 10px 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.achievement-meta {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.vault {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.vault-column {
  background: rgba(8, 12, 20, 0.6);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-grid {
  display: grid;
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 246, 255, 0.6) rgba(8, 12, 20, 0.6);
}

.game-grid::-webkit-scrollbar {
  width: 8px;
}

.game-grid::-webkit-scrollbar-track {
  background: rgba(8, 12, 20, 0.6);
  border-radius: 999px;
}

.game-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(126, 246, 255, 0.8), rgba(255, 110, 199, 0.6));
  border-radius: 999px;
}

.bar-chart {
  display: grid;
  gap: 14px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 246, 255, 0.6) rgba(8, 12, 20, 0.6);
}

.bar-chart::-webkit-scrollbar {
  width: 8px;
}

.bar-chart::-webkit-scrollbar-track {
  background: rgba(8, 12, 20, 0.6);
  border-radius: 999px;
}

.bar-chart::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(126, 246, 255, 0.8), rgba(255, 110, 199, 0.6));
  border-radius: 999px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr auto;
  gap: 16px;
  align-items: center;
}

.bar-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.bar-label img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.bar-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  box-shadow: 0 0 12px rgba(126, 246, 255, 0.3);
}

.bar-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--text);
}

.game-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  background: rgba(14, 18, 28, 0.8);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
}

.game-card:visited,
.game-card:hover,
.game-card:active {
  color: inherit;
  text-decoration: none;
}

.game-card img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.game-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.game-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.progress {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  overflow: hidden;
}

.progress span {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  background: rgba(6, 10, 18, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  z-index: 3;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  height: 100%;
  padding: 0 24px;
  white-space: nowrap;
  animation: ticker-move var(--ticker-duration, 70s) linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  text-decoration: none;
  color: inherit;
}

.ticker-item img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.ticker-title {
  font-weight: 600;
}

.ticker-game {
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes ticker-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.muted {
  color: var(--muted);
  margin: 0;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes glow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.85;
  }
}

@media (max-width: 900px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .scene {
    padding: 32px 18px 48px;
  }
  .statline {
    flex-direction: column;
  }
  .panel {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
