/* Base page layout for SSX demo dashboard */

.ssx-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #151621 0, #050509 55%, #000000 100%);
  color: #f5f5f5;
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Text",
               Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.ssx-shell {
  min-height: 100vh;
  padding: 20px clamp(16px, 5vw, 40px);
  display: flex;
  flex-direction: column;
}

.ssx-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.ssx-logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.85;
}

.ssx-sub {
  font-size: 11px;
  opacity: 0.6;
}

/* main layout */

.ssx-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 20px;
  align-items: stretch;
}

.ssx-card {
  background: rgba(0, 0, 0, 0.9);
  border-radius: 32px;
  padding: 22px 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ssx-card-avatar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ssx-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ssx-card-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ssx-player-name {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.06em;
}

.ssx-player-tagline {
  margin: 0;
  font-size: 12px;
  opacity: 0.75;
}

/* avatar bubble */

.ssx-avatar-ring {
  margin-top: 14px;
  margin-bottom: 14px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(255, 0, 64, 0.35), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ssx-avatar-img {
  width: 72%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.9));
}

/* XP */

.ssx-xp-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.ssx-xp-label {
  font-size: 11px;
  opacity: 0.7;
}

.ssx-xp-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ssx-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff2445, #ffae4f);
}

.ssx-xp-value {
  font-size: 11px;
  opacity: 0.8;
}

/* actions */

.ssx-card-title {
  margin: 0;
  font-size: 20px;
}

.ssx-card-copy {
  margin: 4px 0 10px;
  font-size: 12px;
  opacity: 0.78;
  max-width: 360px;
}

.ssx-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.ssx-action-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
}

.ssx-action-pill.primary {
  border-color: rgba(255, 255, 255, 0.38);
  background: radial-gradient(circle at 0% 0%, rgba(255, 0, 64, 0.5), transparent 60%);
}

.ssx-action-pill:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

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

.pill-sub {
  opacity: 0.75;
}

/* responsive */

@media (max-width: 900px) {
  .ssx-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .ssx-avatar-ring {
    width: 150px;
    height: 150px;
  }

  .home-footer {
    font-size: 10px;
  }
}
