:root{
  /* Brand anchors (yours) */
  --p:#995ECD;    /* purple */
  --g:#5ECC86;    /* greener */
  --t:#5ECCC4;    /* blue-green */

  /* Supporting shades (kept close) */
  --p2: rgba(153,94,205,.55);
  --g2: rgba(94,204,134,.40);
  --t2: rgba(94,204,196,.42);

  --bg0:#05020a;
  --bg1:#110518;

  --ink:#f5f6ff;
  --muted:rgba(245,246,255,.78);

  --shadow: 0 18px 70px rgba(0,0,0,.60);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background: #06020b;
  overflow-x:hidden;
}

/* Fixed background stack to eliminate seams */
.bg{
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  overflow:hidden;
  background:
    radial-gradient(1200px 800px at 10% 0%, var(--p2), transparent 55%),
    radial-gradient(900px 700px at 92% 20%, var(--t2), transparent 55%),
    radial-gradient(900px 700px at 50% 115%, var(--g2), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.rift{
  position:absolute;
  inset:-45vh -45vw;
  background:
    conic-gradient(from 180deg at 50% 50%,
      rgba(94,204,196,.22),
      rgba(153,94,205,.28),
      rgba(94,204,134,.20),
      rgba(94,204,196,.22));
  filter: blur(80px);
  opacity:.62;
  mix-blend-mode: screen;
  animation: drift 16s linear infinite;
  transform: translateZ(0);
}
@keyframes drift{
  0%{transform:translate3d(-2%, -1%, 0) rotate(0deg) scale(1.0)}
  50%{transform:translate3d(2%, 1%, 0) rotate(180deg) scale(1.14)}
  100%{transform:translate3d(-2%, -1%, 0) rotate(360deg) scale(1.0)}
}

.fx{
  position:absolute;
  inset:0;
  opacity:.34;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(650px 420px at 50% 18%, black 35%, transparent 75%);
}

.scanlines{
  position:absolute;
  inset:0;
  opacity:.09;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.06) 0px,
    rgba(255,255,255,.06) 1px,
    transparent 2px,
    transparent 6px
  );
  mix-blend-mode: overlay;
  animation: scan 8s linear infinite;
}
@keyframes scan{
  0%{transform:translateY(0)}
  100%{transform:translateY(24px)}
}

.parallaxSheen{
  position:absolute;
  inset:-30% -30%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.08), transparent 50%);
  opacity:.40;
  filter: blur(2px);
  transform: translateZ(0);
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen{
  0%,100%{transform:translate3d(-1.2%, -0.8%, 0)}
  50%{transform:translate3d(1.2%, 0.8%, 0)}
}

.wrap{
  position:relative;
  max-width:580px;
  margin:0 auto;
  padding:36px 18px 44px;
}

/* =======================
   MAIN CARD (LESS MILKY)
   ======================= */
.card{
  position:relative;
  border-radius: 28px;
  padding: 20px 18px 18px;

  /* dark tinted glass base + your colors */
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(153,94,205,.22), transparent 58%),
    radial-gradient(900px 420px at 95% 18%, rgba(94,204,196,.18), transparent 60%),
    radial-gradient(900px 420px at 55% 115%, rgba(94,204,134,.14), transparent 60%),
    linear-gradient(180deg, rgba(10,6,18,.78), rgba(8,5,14,.62));

  border: 1px solid rgba(255,255,255,.18);

  box-shadow:
    0 22px 70px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.06) inset;

  /* less blur, more saturation/contrast = clearer “hi rez” */
  backdrop-filter: blur(5px) saturate(165%) contrast(112%);
  -webkit-backdrop-filter: blur(5px) saturate(165%) contrast(112%);

  overflow:hidden;
}

.card:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(700px 260px at 20% 10%, rgba(94,204,196,.30), transparent 60%),
    radial-gradient(700px 260px at 80% 0%, rgba(153,94,205,.34), transparent 62%),
    radial-gradient(700px 260px at 55% 120%, rgba(94,204,134,.22), transparent 60%);
  filter: blur(10px);
  opacity:.90;
  z-index:0;
}

.card:after{
  content:"";
  position:absolute;
  inset:-55% -65%;
  background:
    linear-gradient(
      120deg,
      transparent 40%,
      rgba(255,255,255,.22),
      transparent 60%
    );
  transform: rotate(18deg);
  animation: shimmer 9s ease-in-out infinite;
  opacity:.16;
  z-index:0;
}
@keyframes shimmer{
  0%,100%{transform:translate3d(-2%, -1%, 0) rotate(18deg)}
  50%{transform:translate3d(2%, 1%, 0) rotate(18deg)}
}
.card > *{ position:relative; z-index:1; }

.cardEdge{
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 0 22px rgba(94,204,196,.22),
    0 0 28px rgba(153,94,205,.18);
  mix-blend-mode: screen;
}

/* Header */
.top{
  display:flex;
  gap:14px;
  align-items:center;
  padding: 4px 4px 10px;
}

.avatar{
  width:88px; height:88px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 34px rgba(0,0,0,.38);
  background: rgba(255,255,255,.06);
  overflow:hidden;
  flex:0 0 auto;
  position:relative;
}
.avatar:after{
  content:"";
  position:absolute; inset:-1px;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 32px rgba(94,204,196,.20),
    0 0 34px rgba(153,94,205,.22),
    0 0 26px rgba(94,204,134,.14);
  pointer-events:none;
  z-index:3;
}

.halo{
  position:absolute;
  inset:-18px;
  border-radius: 28px;
  z-index:1;
  background:
    radial-gradient(circle at 20% 20%, rgba(94,204,196,.38), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(153,94,205,.44), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(94,204,134,.22), transparent 60%);
  filter: blur(10px);
  opacity:.92;
  animation: haloPulse 3.4s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events:none;
}
@keyframes haloPulse{
  0%,100%{ transform: scale(1); opacity:.82; }
  50%{ transform: scale(1.10); opacity:1; }
}

.avatar img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  position:relative;
  z-index:2;
}

.title{min-width:0}
.nameRow{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
h1{
  margin:0;
  font-size: 1.42rem;
  line-height:1.1;
  font-weight:800;
  letter-spacing:.2px;
}

/* LIVE PILL */
.livePill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.6px;
  text-transform:uppercase;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  transition: box-shadow .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
  transform: translateZ(0);
}
.livePill .dot{
  width:8px;
  height:8px;
  border-radius:999px;
  transition: box-shadow .18s ease, background .18s ease, transform .18s ease, opacity .18s ease;
}

.livePill.offline{
  opacity: .86;
  border-color: rgba(255,255,255,.12);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 10px 24px rgba(0,0,0,.22);
}
.livePill.offline .dot{
  background: rgba(255,255,255,.42);
  box-shadow: none;
  transform: scale(1);
  opacity: .9;
  animation: none;
}

.livePill.live{
  opacity: 1;
  border-color: rgba(94,204,196,.26);
  box-shadow:
    0 0 0 1px rgba(94,204,196,.14) inset,
    0 0 18px rgba(94,204,196,.22),
    0 0 22px rgba(153,94,205,.20),
    0 12px 26px rgba(0,0,0,.25);
}
.livePill.live .dot{
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,.95);
  animation: pulseDot 1.0s ease-in-out infinite;
}
@keyframes pulseDot{
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.45); opacity:.7; }
}

.handle{
  margin-top:6px;
  color: rgba(245,246,255,.82);
  font-size:.95rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.badge{
  font-size:.78rem;
  color:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  padding:7px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.badge b{font-weight:900}
.badge.p{box-shadow:0 0 0 1px rgba(153,94,205,.18) inset}
.badge.t{box-shadow:0 0 0 1px rgba(94,204,196,.18) inset}
.badge.m{box-shadow:0 0 0 1px rgba(94,204,134,.16) inset}

.hero{
  margin-top: 12px;
  padding: 12px 6px 8px;
  color: rgba(245,246,255,.88);
  font-size: .96rem;
  line-height:1.55;
}

/* FEATURED */
.spotlight{
  margin-top: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.20);
  background:
    radial-gradient(800px 260px at 20% 10%, rgba(94,204,196,.28), transparent 60%),
    radial-gradient(800px 260px at 85% 120%, rgba(153,94,205,.32), transparent 60%),
    linear-gradient(135deg, rgba(12,6,22,.85), rgba(18,8,32,.65));
  padding: 14px;
  box-shadow:
    0 26px 54px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.08) inset;
  position:relative;
  overflow:hidden;
}

.spotThumb{
  position:absolute;
  inset:0;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .28;
  filter: saturate(1.06) contrast(1.06);
  z-index:0;
}

.spotVignette{
  position:absolute;
  inset:0;
  border-radius: 22px;
  background:
    radial-gradient(900px 320px at 15% 10%, rgba(153,94,205,.28), transparent 62%),
    radial-gradient(900px 320px at 85% 120%, rgba(94,204,196,.22), transparent 62%),
    linear-gradient(135deg, rgba(0,0,0,.45), rgba(0,0,0,.10));
  z-index:1;
  pointer-events:none;
}

.spotlight:before{
  content:"";
  position:absolute;
  inset:-70% -50%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.18), transparent 65%);
  transform: rotate(12deg);
  opacity:.55;
  animation: sweepSlow 3.8s ease-in-out infinite;
  pointer-events:none;
  z-index:2;
}
@keyframes sweepSlow{
  0%,100%{ transform: translateX(-18%) rotate(12deg); opacity:.35; }
  50%{ transform: translateX(18%) rotate(12deg); opacity:.65; }
}

.spotRow{
  position:relative;
  display:flex;
  gap:12px;
  align-items:flex-start;
  z-index:3;
}
.spotIcon{
  width:44px;
  height:44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.20), transparent 55%),
    linear-gradient(135deg, rgba(94,204,196,.26), rgba(153,94,205,.24));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 26px rgba(0,0,0,.30);
  flex: 0 0 auto;
}
.spotText{min-width:0}
.spotKicker{
  font-size:.72rem;
  letter-spacing:.6px;
  font-weight:900;
  color: rgba(245,246,255,.74);
  text-transform:uppercase;
}
.spotTitle{
  margin-top:2px;
  font-size: 1.04rem;
  font-weight:900;
  line-height:1.25;
}
.spotSub{
  margin-top:6px;
  color: rgba(245,246,255,.78);
  font-size:.82rem;
  line-height:1.35;
}
.spotActions{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.chipBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:900;
  font-size:.82rem;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 24px rgba(0,0,0,.24);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
  position:relative;
  overflow:hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.chipBtn:before{
  content:"";
  position:absolute;
  inset:-60% -40%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.16), transparent 60%);
  transform: translateX(-30%) rotate(12deg);
  opacity:0;
  transition: opacity .14s ease;
}
.chipBtn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.24);
}
.chipBtn:hover:before{
  opacity:1;
  animation: sweep .7s ease both;
}

/* =======================
   LINK BUTTONS (LESS MILKY)
   ======================= */
.links{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding: 10px 2px 4px;
}

a.btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-decoration:none;
  color: var(--ink);
  padding: 14px;
  border-radius: 20px;

  background:
    radial-gradient(700px 220px at 18% 0%, rgba(153,94,205,.16), transparent 62%),
    radial-gradient(700px 220px at 92% 15%, rgba(94,204,196,.12), transparent 64%),
    linear-gradient(180deg, rgba(12,6,22,.62), rgba(9,5,16,.42));

  border: 1px solid rgba(255,255,255,.16);

  box-shadow:
    0 16px 34px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.05) inset;

  backdrop-filter: blur(4px) saturate(165%) contrast(112%);
  -webkit-backdrop-filter: blur(4px) saturate(165%) contrast(112%);

  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
  position:relative;
  overflow:hidden;

  transform-style: preserve-3d;
  will-change: transform;
}

a.btn:before{
  content:"";
  position:absolute;
  inset:-60% -40%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.16), transparent 60%);
  transform: translateX(-30%) rotate(12deg);
  opacity:0;
  transition: opacity .14s ease;
}

a.btn:hover{
  border-color: rgba(255,255,255,.24);
  box-shadow:
    0 22px 46px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.07) inset,
    0 0 18px rgba(94,204,196,.16),
    0 0 18px rgba(153,94,205,.14);
}
a.btn:hover:before{
  opacity:1;
  animation: sweep .7s ease both;
}

@keyframes sweep{
  from { transform: translateX(-35%) rotate(12deg); }
  to   { transform: translateX(35%) rotate(12deg); }
}

.left{display:flex; align-items:center; gap:12px; min-width:0;}

.ico{
  width:42px; height:42px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  flex: 0 0 auto;

  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(135deg, rgba(153,94,205,.34), rgba(94,204,196,.26));

  box-shadow:
    0 12px 24px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 16px rgba(153,94,205,.12);

  border: 1px solid rgba(255,255,255,.10);
}

a.btn[data-brand="twitch"]   .ico { background: linear-gradient(135deg, rgba(153,94,205,.55), rgba(94,204,196,.18)); }
a.btn[data-brand="youtube"]  .ico { background: linear-gradient(135deg, rgba(153,94,205,.40), rgba(94,204,196,.18)); }
a.btn[data-brand="discord"]  .ico { background: linear-gradient(135deg, rgba(94,204,196,.42), rgba(153,94,205,.22)); }
a.btn[data-brand="tiktok"]   .ico { background: linear-gradient(135deg, rgba(94,204,196,.40), rgba(94,204,134,.26)); }
a.btn[data-brand="instagram"].ico { background: linear-gradient(135deg, rgba(153,94,205,.40), rgba(94,204,134,.22)); }
a.btn[data-brand="x"]        .ico { background: linear-gradient(135deg, rgba(0,0,0,.58), rgba(255,255,255,.10)); }
a.btn[data-brand="throne"]   .ico { background: linear-gradient(135deg, rgba(94,204,134,.30), rgba(153,94,205,.20)); }
a.btn[data-brand="merch"]    .ico { background: linear-gradient(135deg, rgba(94,204,196,.22), rgba(153,94,205,.18)); }

.icon{
  width:22px; height:22px;
  display:block;
  color: rgba(255,255,255,.95);
  fill: currentColor;
}

.label{min-width:0;}
.name{font-weight:900; font-size: 1rem; line-height:1.1;}
.sub{
  color: rgba(245,246,255,.72);
  font-size: .78rem;
  margin-top: 3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.arrow{
  opacity:.65;
  font-size: 1.2rem;
  flex: 0 0 auto;
  transform: translateY(-1px);
}

a.btn.primary{
  border-color: rgba(255,255,255,.20);
  background:
    radial-gradient(900px 220px at 30% 10%, rgba(94,204,196,.24), transparent 60%),
    radial-gradient(900px 220px at 90% 110%, rgba(94,204,134,.14), transparent 60%),
    linear-gradient(135deg, rgba(153,94,205,.34), rgba(94,204,196,.18));
}
a.btn.primary:hover{
  background:
    radial-gradient(900px 220px at 30% 10%, rgba(94,204,196,.30), transparent 60%),
    radial-gradient(900px 220px at 90% 110%, rgba(94,204,134,.18), transparent 60%),
    linear-gradient(135deg, rgba(153,94,205,.44), rgba(94,204,196,.26));
}

.divider{
  margin: 12px 2px 0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  opacity:.9;
}

.tiny{
  margin-top: 14px;
  text-align:center;
  color: rgba(245,246,255,.55);
  font-size: .78rem;
}

@media (prefers-reduced-motion: reduce){
  .rift, .scanlines, .parallaxSheen, .card:after, .halo, .livePill.live .dot, .spotlight:before { animation:none }
  a.btn, .chipBtn, .livePill { transition:none }
  a.btn:before, .chipBtn:before { display:none }
}
