:root {
  color-scheme: dark;
  --bg: #050505;
  --card: rgba(12, 12, 14, .82);
  --line: rgba(255,255,255,.13);
  --muted: #a3a3aa;
  --white: #f7f7f8;
  --green: #33e08c;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;

  /* Main background image */
  background:
    linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .18)),
    url("assets/SoftArmy.png") center center / cover no-repeat fixed;

  background-color: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

#stars { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255,255,255,.075), transparent 67%);
  transform: translate(-50%, -50%);
  transition: opacity .2s;
  opacity: 0;
}

.shell { position: relative; z-index: 3; min-height: 100vh; display: grid; place-items: center; padding: 42px 18px; }

.profile-card {
  width: min(780px, 100%);
  background: linear-gradient(145deg, rgba(19,19,22,.88), rgba(5,5,6,.88));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 40px 120px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(22px);
  animation: reveal .8s cubic-bezier(.2,.75,.2,1) both;
}

@keyframes reveal { from { opacity:0; transform: translateY(20px) scale(.985); } }

.topbar, footer, .presence-head, .presence-body, .actions { display:flex; align-items:center; }
.topbar { justify-content:space-between; margin-bottom: 28px; }
.eyebrow { letter-spacing:.22em; color:#c9c9cf; font-size:.72rem; font-weight:800; }
.live-pill { display:flex; align-items:center; gap:8px; font-size:.7rem; letter-spacing:.1em; color:#d9d9de; }
.pulse { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 14px var(--green); animation:pulse 1.8s infinite; }

@keyframes pulse { 50% { opacity:.45; transform:scale(.75); } }

.hero { display:grid; grid-template-columns:180px 1fr; align-items:center; gap:30px; }
.logo-wrap { width:170px; height:170px; display:grid; place-items:center; position:relative; }
.logo { width:124px; height:124px; object-fit:cover; border-radius:50%; z-index:2; filter: drop-shadow(0 0 20px rgba(255,255,255,.3)); }
.orbit { position:absolute; inset:8px; border-radius:50%; border:1px solid transparent; }
.orbit-a { border-top-color:#fff; border-right-color:rgba(255,255,255,.55); box-shadow:0 0 24px rgba(255,255,255,.18); animation:spin 7s linear infinite; }
.orbit-b { inset:25px; border-bottom-color:rgba(255,255,255,.75); border-left-color:rgba(255,255,255,.25); animation:spin 5s linear infinite reverse; }

@keyframes spin { to { transform:rotate(1turn); } }

.identity h1 { font-family:"Space Grotesk", sans-serif; font-size:clamp(2.35rem, 7vw, 4.65rem); line-height:.95; margin:0; letter-spacing:-.055em; }
.verified { font-size:.34em; color:var(--green); vertical-align:middle; filter:drop-shadow(0 0 8px rgba(51,224,140,.45)); }
.identity p { color:#b9b9c0; margin:13px 0 17px; }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chips span { border:1px solid var(--line); background:rgba(255,255,255,.045); padding:7px 10px; border-radius:999px; color:#d1d1d7; font-size:.72rem; }
.bio { margin:26px auto; color:#c8c8ce; line-height:1.7; max-width:640px; text-align:center; }

.presence { border:1px solid var(--line); border-radius:20px; padding:18px; background:rgba(255,255,255,.035); }
.presence-head { justify-content:space-between; gap:14px; margin-bottom:16px; }
.discord-title { display:flex; align-items:center; gap:10px; font-weight:700; }
.discord-title i { color:#5865f2; font-size:1.3rem; }
.status-badge { display:flex; align-items:center; gap:8px; font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color:#cfcfd5; }
.status-dot { width:9px; height:9px; border-radius:50%; background:#74747d; box-shadow:0 0 10px currentColor; }
.status-badge.online .status-dot { background:#23a55a; }
.status-badge.idle .status-dot { background:#f0b232; }
.status-badge.dnd .status-dot { background:#f23f43; }
.status-badge.offline .status-dot { background:#80848e; }

.presence-body { gap:14px; }
.discord-avatar { width:54px; height:54px; border-radius:50%; object-fit:cover; border:1px solid rgba(255,255,255,.18); }
.presence-copy { min-width:0; display:grid; gap:4px; }
.presence-copy strong { font-size:1rem; }
.presence-copy span { color:var(--muted); font-size:.88rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.activity-details { color:#d3d3d8 !important; }

.spotify-card { margin-top:15px; padding-top:15px; border-top:1px solid var(--line); display:grid; grid-template-columns:62px 1fr; gap:13px; }
.spotify-card[hidden] { display:none; }
.spotify-card img { width:62px; height:62px; object-fit:cover; border-radius:10px; }
.spotify-copy { min-width:0; display:grid; gap:2px; }
.spotify-copy strong,.spotify-copy span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.spotify-label { color:#1ed760!important;font-size:.74rem!important;font-weight:700; }
.spotify-copy span { color:var(--muted);font-size:.82rem; }
.progress { height:3px; background:rgba(255,255,255,.12); border-radius:99px; overflow:hidden; margin-top:6px; }
.progress div { height:100%; width:0; background:#1ed760; transition:width 1s linear; }

.social-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px; }
.social { min-height:98px; position:relative; display:grid; grid-template-columns:38px 1fr; align-content:center; column-gap:10px; padding:15px; border-radius:16px; color:white; text-decoration:none; border:1px solid var(--line); background:rgba(255,255,255,.035); overflow:hidden; transition:.25s ease; }
.social::after { content:""; position:absolute; inset:auto -35% -70% -35%; height:100%; background:radial-gradient(circle, var(--brand), transparent 65%); opacity:.12; transition:.25s; }
.social:hover { transform:translateY(-4px); border-color:color-mix(in srgb, var(--brand), white 20%); box-shadow:0 15px 35px rgba(0,0,0,.35); }
.social:hover::after { opacity:.28; }
.social i,.kick-mark { grid-row:1 / span 2; align-self:center; justify-self:center; font-size:1.65rem; color:var(--brand); filter:drop-shadow(0 0 8px color-mix(in srgb, var(--brand), transparent 45%)); z-index:1; }
.social span,.social small { z-index:1; }
.social span { align-self:end; font-weight:700; }
.social small { align-self:start; color:#9999a1; margin-top:3px; }

.discord{--brand:#5865f2}
.github{--brand:#fff}
.youtube{--brand:#ff0033}
.twitch{--brand:#9146ff}
.kick{--brand:#53fc18}
.steam{--brand:#66c0f4}
.kick-mark{font-family:"Space Grotesk";font-weight:900;font-size:1.8rem;}

.actions { gap:12px; margin-top:18px; }
.actions a { min-height:52px; display:flex; align-items:center; justify-content:center; gap:9px; padding:0 18px; border-radius:14px; text-decoration:none; font-weight:750; transition:.2s; }
.primary { flex:1; background:#f2f2f4; color:#08080a; }
.secondary { flex:1; border:1px solid var(--line); color:#e7e7ea; background:rgba(255,255,255,.035); }
.actions a:hover { transform:translateY(-2px); filter:brightness(1.08); }

footer { justify-content:space-between; color:#707079; font-size:.72rem; margin-top:24px; }

@media (max-width: 680px) {
  .profile-card { padding:22px; border-radius:24px; }
  .hero { grid-template-columns:1fr; text-align:center; gap:6px; }
  .logo-wrap { margin:auto; }
  .chips { justify-content:center; }
  .bio { text-align:center; }
  .social-grid { grid-template-columns:repeat(2,1fr); }
  .actions { flex-direction:column; }
  .actions a { width:100%; }
}

@media (max-width: 430px) {
  .social-grid { grid-template-columns:1fr; }
  .social { min-height:82px; }
  .topbar { align-items:flex-start; }
  .live-pill { text-align:right; }
  footer { flex-direction:column; gap:5px; align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
  }

  .cursor-glow { display:none; }
}
