:root{
    --bg:#050505;
  --bg-alt:#0b0707;
  --surface:#120a0a;
  --border:rgba(255,255,255,.08);
  --border-strong:rgba(255,60,70,.35);
  --text:#f3efe9;
  --text-dim:#a08e8e;
  --text-faint:#5c4d4d;
  --accent:#b3182f;
  --accent-2:#7a0f22;
  --accent-3:#ff3b52;
  --glow-accent: 0 0 26px rgba(179,24,47,.45);
  --radius:14px;
  --transition:.5s cubic-bezier(.19,1,.22,1);
  --online:#43b581;
  --idle:#faa61a;
  --dnd:#f04747;
  --offline:#747f8d;
  --font-display:'Cinzel', serif;
  --font-mono:'JetBrains Mono', monospace;
  --font-script:'Cormorant Garamond', serif;
  --font-signature:'Alex Brush', cursive;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-mono);
  overflow:hidden;
  height:100vh;
  height:100dvh;
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
}
img, svg{ -webkit-user-drag:none; user-drag:none; }
::selection{ background:var(--accent-3); color:#000; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
.display{ font-family:var(--font-display); font-weight:500; text-transform:uppercase; letter-spacing:.06em; }
.display.accent{ color:var(--accent-3); }
.script{ font-family:var(--font-script); font-style:italic; }

.stars{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.stars .star{ position:absolute; background:var(--text); border-radius:50%; animation:twinkle var(--tw-dur, 4s) ease-in-out infinite, drift var(--dr-dur, 9s) ease-in-out infinite alternate; }
@keyframes twinkle{ 0%,100%{ opacity:.12; } 50%{ opacity:.9; } }
@keyframes drift{ from{ transform:translate(0,0); } to{ transform:translate(var(--dx, 12px), var(--dy, -16px)); } }

#splash{
  position:fixed; inset:0; z-index:1000;
  background:#000;
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:2.2rem;
  cursor:pointer;
  transition:opacity .9s ease, visibility .9s ease;
}
#splash.hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.ascii-art{
  position:relative; z-index:1;
  font-family:var(--font-mono);
  color:var(--accent-3);
  text-shadow:0 0 12px var(--accent), 0 0 34px rgba(255,59,82,.45);
  line-height:1.15;
  white-space:pre;
  text-align:center;
  max-width:96vw;
  overflow:hidden;
}
.splash-hint{
  position:relative; z-index:1;
  font-family:var(--font-mono); font-size:.75rem; letter-spacing:.35em; text-transform:uppercase;
  color:var(--text-dim);
  animation:pulseFade 2.4s ease-in-out infinite;
  transition:opacity .4s ease;
}
.splash-hint.hidden{ opacity:0; }
@keyframes pulseFade{ 0%,100%{ opacity:.35; } 50%{ opacity:1; } }
.cursor-blink{ display:inline-block; width:.55em; background:var(--accent-3); margin-left:2px; animation:blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }

#app{ opacity:0; transition:opacity .8s ease .1s; }
#app.ready{ opacity:1; }
nav{
  position:fixed; top:1rem; left:50%; transform:translateX(-50%); z-index:200;
  display:flex; align-items:center; gap:1.6rem;
  width:fit-content; max-width:94vw;
  padding:.5rem .5rem .5rem 1.1rem;
  border-radius:999px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--bg-alt) 94%, transparent));
  border:1px solid var(--border-strong);
  box-shadow:0 14px 34px rgba(0,0,0,.5), 0 0 40px rgba(179,24,47,.14);
  backdrop-filter:blur(12px);
}
.logo{ font-size:1.05rem; display:flex; align-items:center; }
.logo-img{ height:26px; width:auto; object-fit:contain; vertical-align:middle; }
.navlinks{ display:flex; align-items:center; gap:.15rem; font-size:.6rem; letter-spacing:.09em; text-transform:uppercase; }
.navlinks a{
  color:var(--text-dim); font-weight:600; white-space:nowrap;
  padding:.55rem .95rem; border-radius:999px;
  transition:color .25s ease, background .25s ease;
}
.navlinks a:hover{ color:var(--text); background:rgba(255,255,255,.05); }
.navlinks a.active{ color:var(--text); background:color-mix(in srgb, var(--accent) 30%, transparent); box-shadow:inset 0 0 0 1px rgba(255,90,105,.35); }
.nav-cta{
  display:flex; align-items:center; gap:.35rem; white-space:nowrap;
  font-family:var(--font-mono); font-size:.6rem; letter-spacing:.12em; text-transform:uppercase; font-weight:700;
  color:var(--text); background:linear-gradient(180deg, var(--accent), var(--accent-2));
  border:1px solid var(--accent-3); border-radius:999px; padding:.6rem 1.15rem;
  transition:transform .2s ease, box-shadow .25s ease;
}
.nav-cta:hover{ transform:translateY(-1px); box-shadow:0 0 22px rgba(255,59,82,.45); }
@media (max-width: 900px){
  nav{ gap:.8rem; padding:.5rem .5rem .5rem .9rem; max-width:96vw; overflow-x:auto; scrollbar-width:none; }
  nav::-webkit-scrollbar{ display:none; }
  .navlinks{ gap:.05rem; }
  .navlinks a{ padding:.5rem .65rem; }
}

main{ position:relative; z-index:1; }
.page{
  position:relative;
  display:none;
  height:100vh; height:100dvh;
  overflow-y:auto; overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent;
  padding-top:6rem; padding-bottom:2.5rem;
  background-repeat:no-repeat; background-position:center; background-size:cover;
  transition:opacity .5s ease;
  isolation:isolate;
}
.page::before{
  content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:rgba(3,2,2,.62);
}
.page::-webkit-scrollbar{ width:8px; }
.page::-webkit-scrollbar-thumb{ background:var(--border-strong); border-radius:999px; }
.page::-webkit-scrollbar-track{ background:transparent; }
.page.active{
  display:flex; flex-direction:column; justify-content:center;
  justify-content:safe center;
  animation:fadeUp .7s cubic-bezier(.19,1,.22,1);
}
@keyframes fadeUp{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:translateY(0);} }
.glow-bg{ position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:0; }
.glow-bg::before{
  content:''; position:absolute; top:50%; left:50%; width:900px; height:900px; transform:translate(-50%,-50%);
  background:radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 70%); filter:blur(10px);
}

.threat-block{
  position:relative;
  z-index:1;
  padding:6.5rem 1.5rem;
}
@media (max-width:640px){ .threat-block{ padding:4.5rem 1.2rem; } }

#bigthreats.page.active{ justify-content:flex-start; }
.threat-bg-stack{
  position:fixed; inset:0;
  z-index:-1;
  overflow:hidden;
  pointer-events:none;
}
.threat-bg-layer{
  position:absolute; inset:0;
  background-repeat:no-repeat; background-position:center; background-size:cover;
  opacity:0;
  will-change:opacity;
}

.divider-label{
  position:relative; z-index:1;
  display:inline-flex; align-items:center; gap:.8rem;
  font-family:var(--font-mono); font-size:.6rem; letter-spacing:.25em; text-transform:uppercase;
  color:var(--text-dim);
  text-shadow:0 2px 6px rgba(0,0,0,.9);
}
.divider-label::before, .divider-label::after{ content:''; width:40px; height:1px; }
.divider-label::before{ background:linear-gradient(90deg, transparent, var(--border-strong)); }
.divider-label::after{ background:linear-gradient(90deg, var(--border-strong), transparent); }
@media (max-width:520px){ .divider-label::before, .divider-label::after{ width:26px; } }

#home .hero{
  position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:1.5rem;
}
.hero h1{
  font-size:clamp(2rem, 5.5vw, 3.6rem); font-weight:500;
  background:linear-gradient(100deg, var(--text) 20%, var(--accent-3) 50%, var(--accent) 65%, var(--text) 85%);
  background-size:220% auto; -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:shimmer 7s linear infinite;
  filter:drop-shadow(0 2px 10px rgba(0,0,0,.8));
}
@keyframes shimmer{ to{ background-position:220% center; } }
.hero .divider-label{ margin-top:1.4rem; }

.sec-head{ text-align:center; padding:0 1.5rem .5rem; position:relative; z-index:1; flex:none; }
.sec-head h2{ font-size:clamp(1.4rem,3.2vw,2rem); text-shadow:0 2px 10px rgba(0,0,0,.85); }
.sec-head .divider-label{ margin-top:.7rem; }
#bigthreats .sec-head .divider-label{ color:var(--accent); }

.main-threats-row{
  display:flex; flex-wrap:wrap; justify-content:center; gap:1.8rem 2rem;
  max-width:1000px; margin:0 auto; padding:1rem 2.5rem; position:relative; z-index:1;
}

.main-card{ position:relative; width:150px; height:186px; }
.main-card-inner{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:150px; height:186px;
  border-radius:26px;
  background:transparent;
  border:1px solid transparent;
  cursor:pointer;
  transition:width .5s cubic-bezier(.19,1,.22,1), height .5s cubic-bezier(.19,1,.22,1),
             border-radius .5s ease, background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.main-card:hover .main-card-inner{
  width:310px; height:122px;
  border-radius:24px;
  background:linear-gradient(180deg, var(--surface), var(--bg-alt));
  border-color:var(--border-strong);
  box-shadow:0 24px 55px rgba(0,0,0,.55), var(--glow-accent);
  z-index:6;
}

.main-collapsed{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.75rem;
  opacity:1; transform:scale(1);
  transition:opacity .3s ease, transform .35s ease;
}
.main-card:hover .main-collapsed{ opacity:0; transform:scale(.9); pointer-events:none; }

.main-avatar-wrap{ position:relative; width:96px; height:96px; flex:none; }
.main-avatar-wrap .main-avatar-fallback, .main-avatar-wrap .main-avatar-img{
  width:96px; height:96px; border-radius:50%; object-fit:cover;
  background:var(--bg);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:1.4rem; color:var(--text-faint);
  transition:filter .3s ease;
}
.main-card:hover .main-avatar-wrap .main-avatar-fallback,
.main-card:hover .main-avatar-wrap .main-avatar-img{ filter:brightness(1.12); }
.main-avatar-img, .mini-avatar-img, .profile-modal-avatar-img{ animation:avatarFadeIn .5s ease; }
@keyframes avatarFadeIn{ from{ opacity:0; transform:scale(.9); } to{ opacity:1; transform:scale(1); } }
.main-status-dot{
  position:absolute; right:1px; bottom:1px; width:17px; height:17px; border-radius:50%;
  background:var(--offline); border:3px solid var(--surface);
  transition:background .3s ease, box-shadow .3s ease;
}
.main-status-dot[data-status="online"]{ background:var(--online); box-shadow:0 0 0 4px rgba(67,181,129,.25), 0 0 10px rgba(67,181,129,.6); }
.main-status-dot[data-status="idle"]{ background:var(--idle); }
.main-status-dot[data-status="dnd"]{ background:var(--dnd); }

.main-id-row{ font-family:var(--font-mono); font-size:.68rem; letter-spacing:.03em; }
.main-id-name{ color:#fff; text-transform:lowercase; text-shadow:0 2px 6px rgba(0,0,0,.95), 0 0 18px rgba(0,0,0,.7); }

.main-expanded{
  position:absolute; inset:0;
  display:flex; align-items:center;
  padding:0 1.3rem;
  opacity:0; transform:scale(.94);
  pointer-events:none;
  transition:opacity .25s ease, transform .3s ease;
}
.main-card:hover .main-expanded{
  opacity:1; transform:scale(1); pointer-events:auto;
  transition:opacity .35s ease .18s, transform .4s cubic-bezier(.19,1,.22,1) .14s;
}
.main-expanded-avatar{ position:relative; flex:none; width:80px; height:80px; }
.main-expanded-avatar .main-avatar-fallback, .main-expanded-avatar .main-avatar-img{
  width:80px; height:80px; border-radius:50%; object-fit:cover;
  background:var(--bg);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:1.25rem; color:var(--text-faint);
}
.main-status-dot-lg{
  position:absolute; right:0; bottom:0; width:17px; height:17px; border-radius:50%;
  background:var(--offline); border:3px solid var(--surface);
  transition:background .3s ease, box-shadow .3s ease;
}
.main-status-dot-lg[data-status="online"]{ background:var(--online); box-shadow:0 0 0 4px rgba(67,181,129,.25), 0 0 10px rgba(67,181,129,.6); }
.main-status-dot-lg[data-status="idle"]{ background:var(--idle); }
.main-status-dot-lg[data-status="dnd"]{ background:var(--dnd); }

.main-expanded-info{ margin-left:1.1rem; display:flex; flex-direction:column; gap:.5rem; overflow:hidden; }
.main-expanded-name{
  font-family:var(--font-display); font-size:.95rem; font-weight:600; letter-spacing:.04em;
  text-transform:uppercase; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.main-status-line{ display:flex; align-items:center; gap:.45rem; }
.main-mini-dot{ width:8px; height:8px; border-radius:50%; background:var(--offline); flex:none; transition:background .3s ease; }
.main-mini-dot[data-status="online"]{ background:var(--online); }
.main-mini-dot[data-status="idle"]{ background:var(--idle); }
.main-mini-dot[data-status="dnd"]{ background:var(--dnd); }
.main-status-text{
  font-family:var(--font-mono); font-size:.66rem; color:var(--text-dim);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:170px;
}

@media (max-width:640px){
  .main-card{ width:128px; height:168px; }
  .main-card-inner{ width:128px; height:168px; }
  .main-card:hover .main-card-inner{ width:270px; height:112px; }
}

.big-threats-grid{
  display:grid; grid-template-columns:repeat(5, 1fr); gap:1.8rem 1.6rem;
  max-width:1000px; margin:0 auto; padding:1rem 1.5rem; position:relative; z-index:1;
}
@media (max-width:900px){ .big-threats-grid{ grid-template-columns:repeat(5,1fr); gap:1.2rem 1rem; } }
@media (max-width:600px){ .big-threats-grid{ grid-template-columns:repeat(5,1fr); gap:.8rem .6rem; } .mini-avatar-wrap{ width:52px; height:52px; } .mini-avatar-fallback, .mini-avatar-img{ width:52px; height:52px; font-size:.8rem; } }

.mini-badge{ display:flex; flex-direction:column; align-items:center; gap:.55rem; cursor:pointer; }
.mini-avatar-wrap{ position:relative; width:76px; height:76px; transition:transform .25s ease; }
.mini-badge:hover .mini-avatar-wrap{ transform:translateY(-3px); }
.mini-avatar-fallback, .mini-avatar-img{
  width:76px; height:76px; border-radius:50%; object-fit:cover;
  background:var(--bg);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:1.05rem; color:var(--text-dim);
  transition:filter .25s ease;
}
.mini-badge:hover .mini-avatar-fallback, .mini-badge:hover .mini-avatar-img{ filter:brightness(1.15); }
.mini-status-dot{
  position:absolute; right:0; bottom:1px; width:12px; height:12px; border-radius:50%;
  background:var(--offline); border:3px solid var(--bg);
  transition:background .3s ease, box-shadow .3s ease;
}
.mini-status-dot[data-status="online"]{ background:var(--online); box-shadow:0 0 0 3px rgba(67,181,129,.25), 0 0 8px rgba(67,181,129,.6); }
.mini-status-dot[data-status="idle"]{ background:var(--idle); }
.mini-status-dot[data-status="dnd"]{ background:var(--dnd); }
.mini-name{ font-family:var(--font-mono); font-size:.6rem; letter-spacing:.06em; text-transform:lowercase; color:#fff; text-shadow:0 2px 6px rgba(0,0,0,.95), 0 0 16px rgba(0,0,0,.7); }

.mini-tooltip{
  position:absolute; left:50%; bottom:calc(100% + 14px); z-index:5;
  min-width:150px; padding:.65rem .85rem; border-radius:12px;
  background:var(--surface); border:1px solid var(--border-strong);
  box-shadow:0 18px 40px rgba(0,0,0,.55);
  opacity:0; pointer-events:none;
  transform:translate(-50%, 6px) scale(.94);
  transition:opacity .25s ease, transform .3s cubic-bezier(.19,1,.22,1);
}
.mini-tooltip::after{
  content:''; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  border:6px solid transparent; border-top-color:var(--border-strong);
}
.mini-badge:hover .mini-tooltip{ opacity:1; transform:translate(-50%, 0) scale(1); }
.mini-tooltip-name{
  font-family:var(--font-display); font-size:.7rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.05em; color:var(--text); white-space:nowrap;
}
.mini-tooltip-status{ display:flex; align-items:center; gap:.45rem; margin-top:.4rem; }
.mini-tooltip-dot{ width:8px; height:8px; border-radius:50%; background:var(--offline); flex:none; transition:background .3s ease; }
.mini-tooltip-dot[data-status="online"]{ background:var(--online); }
.mini-tooltip-dot[data-status="idle"]{ background:var(--idle); }
.mini-tooltip-dot[data-status="dnd"]{ background:var(--dnd); }
.mini-tooltip-status-text{
  font-family:var(--font-mono); font-size:.62rem; letter-spacing:.02em; color:var(--text-dim);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:180px;
}

.decoration{ position:absolute; pointer-events:none; }

#about .about-body{ max-width:1760px; margin:0 auto; padding:0 1rem; position:relative; z-index:1; text-align:center; }
.tag-script{ font-size:1.6rem; color:var(--accent-3); margin:0 0 .8rem; display:inline-block; }
.terminal{
  position:relative; text-align:left;
  background:color-mix(in srgb, var(--surface) 58%, transparent);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border:1px solid var(--border-strong);
  border-radius:12px; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.terminal::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0px, rgba(255,255,255,.035) 1px, transparent 1px, transparent 3px);
  mix-blend-mode:overlay; opacity:.6;
}
.term-bar{
  display:flex; align-items:center; gap:.8rem; padding:.9rem 1.2rem; border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, color-mix(in srgb, var(--bg-alt) 65%, transparent), color-mix(in srgb, var(--bg-alt) 55%, transparent));
}
.term-dot{ width:13px; height:13px; border-radius:50%; box-shadow:0 1px 1px rgba(0,0,0,.4) inset; }
.term-dot.r{ background:#ff5f56; } .term-dot.y{ background:#ffbd2e; } .term-dot.g{ background:#27c93f; }
.term-title{ margin-left:.5rem; font-family:var(--font-mono); font-size:.75rem; color:var(--text-faint); letter-spacing:.06em; }
.term-body{
  padding:1.8rem 2rem 2rem; font-size:.83rem; line-height:1.7;
  font-family:var(--font-mono);
  text-shadow:0 1px 4px rgba(0,0,0,.85);
}
.term-body .ln{ opacity:0; }
.term-body .ln.show{ opacity:1; }
.term-body .ln.spacer{ height:1.1em; }
.term-body .prompt{ color:var(--accent-3); }
.term-body .chevron{ color:var(--text-faint); margin-right:.6em; }
.term-body .out{ color:var(--text); }
.term-body .divider{ color:var(--text-faint); }
.term-body .quote{ color:var(--accent-3); font-style:italic; }
.term-body .shout-name{ color:var(--text-dim); }
@media (max-width:640px){ .term-body{ font-size:.7rem; padding:1.3rem 1.4rem 1.6rem; line-height:1.65; } }

.discord-invite{
  max-width:340px; margin:1.5rem auto 0;
  border:1px solid var(--border-strong); border-radius:var(--radius);
  background:var(--surface); overflow:hidden; position:relative; z-index:1;
  box-shadow:0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.discord-invite-banner{
  position:relative; height:92px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg, color-mix(in srgb, var(--accent) 26%, var(--bg-alt)), var(--bg-alt) 75%);
  background-size:cover; background-position:center;
}
.discord-invite-banner.has-image::after{ background:linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.15) 60%); }
.discord-invite-banner::after{
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle at 50% 130%, rgba(255,59,82,.35), transparent 65%);
}
.discord-invite-banner-text{
  position:relative; z-index:1;
  font-family:var(--font-display); font-weight:600; font-style:italic;
  font-size:clamp(1.15rem,2.6vw,1.45rem); letter-spacing:.04em;
  color:var(--text); text-shadow:0 0 20px rgba(255,59,82,.5);
}
.discord-invite-body{
  position:relative; padding:2.7rem 1.5rem 1.5rem;
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:.25rem;
}
.discord-invite-icon-wrap{
  position:absolute; top:-30px; left:50%; transform:translateX(-50%);
  width:60px; height:60px; border-radius:50%;
  border:4px solid var(--surface); background:var(--bg-alt);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  box-shadow:0 10px 22px rgba(0,0,0,.55);
}
.discord-invite-icon{ width:100%; height:100%; object-fit:cover; }
.discord-invite-icon-fallback{ font-family:var(--font-display); font-size:1rem; color:var(--text-dim); }
.discord-invite-name{
  margin-top:1.3rem; font-family:var(--font-display); font-size:.9rem; font-weight:600;
  letter-spacing:.04em; text-transform:uppercase; color:var(--text);
}
.discord-invite-members{ font-family:var(--font-mono); font-size:.65rem; letter-spacing:.04em; color:var(--text-dim); }
.discord-invite-btn{
  margin-top:1.1rem; width:100%; max-width:260px;
  display:inline-flex; align-items:center; justify-content:center;
  padding:.72rem 1rem; border-radius:999px;
  background:var(--text); color:#0a0a0a;
  font-family:var(--font-mono); font-size:.64rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  transition:transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.discord-invite-btn:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(255,59,82,.35); background:var(--accent-3); color:#fff; }

.aff-grid{
  max-width:1300px; margin:0 auto; padding:0 1.5rem;
  display:grid; grid-template-columns:repeat(4, 1fr); gap:2.4rem 1.3rem;
  position:relative; z-index:1;
}
.aff-card{
  position:relative;
  background:var(--surface); border:1px solid var(--border-strong); border-radius:16px;
  overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.aff-card:hover{ transform:translateY(-4px); box-shadow:0 20px 44px rgba(0,0,0,.4); border-color:var(--accent); }
.aff-plus{ position:absolute; font-size:.9rem; color:var(--text-faint); z-index:2; pointer-events:none; }
.aff-plus.tl{ top:.6rem; left:.7rem; } .aff-plus.tr{ top:.6rem; right:.7rem; }
.aff-plus.bl{ bottom:.6rem; left:.7rem; } .aff-plus.br{ bottom:.6rem; right:.7rem; }
.aff-banner{
  position:relative; height:130px;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  font-family:var(--font-display); font-size:1.7rem; letter-spacing:.05em; color:var(--text);
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, var(--bg-alt)), var(--bg-alt));
}
.aff-banner-img{ width:100%; height:100%; object-fit:cover; }
.aff-info{ padding:1.1rem 1.3rem 1.3rem; text-align:left; }
.aff-info h3{ font-family:var(--font-display); font-size:1rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; }
.aff-info p{ margin-top:.4rem; font-size:.74rem; color:var(--text-dim); line-height:1.6; }
.aff-join{
  display:inline-flex; align-items:center; gap:.3rem; margin-top:.6rem;
  font-family:var(--font-mono); font-size:.62rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--accent-3); transition:color .25s ease, transform .25s ease;
}
.aff-join:hover{ color:var(--text); transform:translateX(3px); }
@media (max-width:1100px){ .aff-grid{ grid-template-columns:repeat(3, 1fr); } }
@media (max-width:820px){ .aff-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:520px){ .aff-grid{ grid-template-columns:1fr; max-width:360px; } }

.shame-grid{
  max-width:1500px; margin:0 auto; padding:0 1.5rem;
  display:grid; grid-template-columns:repeat(5, 1fr); gap:1.1rem;
  position:relative; z-index:1;
}
.shame-card{
  display:flex; flex-direction:column;
  border:1px solid var(--border-strong);
  background:var(--surface); overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.shame-card:hover{ transform:translateY(-4px); box-shadow:0 24px 50px rgba(0,0,0,.4); border-color:var(--accent); }
.shame-video-wrap{ position:relative; width:100%; aspect-ratio:9/16; background:#000; overflow:hidden; }
.shame-video{ width:100%; height:100%; object-fit:cover; display:block; }
.shame-video-empty{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:.66rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-faint); text-align:center; padding:1rem;
}
.shame-info{ padding:.8rem 1rem 1.05rem; display:flex; flex-direction:column; gap:.2rem; }
.shame-name{ font-family:var(--font-display); font-size:.9rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--text); }
.shame-discord{ font-family:var(--font-mono); font-size:.64rem; color:var(--text-dim); }
@media (max-width:1100px){ .shame-grid{ grid-template-columns:repeat(3, 1fr); } }
@media (max-width:640px){ .shame-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:420px){ .shame-grid{ grid-template-columns:1fr; max-width:340px; } }

.section-loader{
  position:fixed; inset:0; z-index:500;
  background:#000;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .35s ease, visibility .35s ease;
}
.section-loader.visible{ opacity:1; visibility:visible; pointer-events:auto; }
.loader-ascii{
  font-family:var(--font-mono);
  color:var(--accent-3);
  text-shadow:0 0 10px var(--accent), 0 0 28px rgba(255,59,82,.4);
  white-space:pre; text-align:center; line-height:1.15;
  transform:scale(.96); transition:transform .35s ease;
}
.section-loader.visible .loader-ascii{ transform:scale(1); }

.about-ascii{
  font-family:var(--font-mono);
  color:var(--accent-3);
  text-shadow:0 0 10px var(--accent), 0 0 24px rgba(255,59,82,.35);
  white-space:pre; text-align:center; line-height:1.15;
  margin:0 auto .8rem; min-height:1.2em;
}

.profile-modal{
  position:fixed; inset:0; z-index:700;
  display:flex; align-items:center; justify-content:center;
  background:#050505 radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  background-size:cover; background-position:center;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .4s ease, visibility .4s ease;
}
.profile-modal.visible{ opacity:1; visibility:visible; pointer-events:auto; }
.profile-modal::before{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:rgba(0,0,0,0); transition:background .35s ease;
}
.profile-modal.has-image::before{ background:rgba(3,2,2,.6); }
.profile-modal-close{
  position:absolute; top:1.4rem; right:1.4rem; z-index:2;
  width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.4); border:1px solid var(--border-strong);
  color:var(--text); font-size:1.4rem; line-height:1;
  transition:background .25s ease, border-color .25s ease, transform .2s ease;
}
.profile-modal-close:hover{ background:var(--accent); border-color:var(--accent-3); transform:rotate(90deg); }
.profile-modal-trail-canvas{
  position:absolute; inset:0; z-index:5; pointer-events:none;
}
.profile-modal-content{
  position:relative; z-index:1; display:flex; flex-direction:column; align-items:center;
  text-align:center; padding:2rem;
  width:100%; max-width:560px;
  max-height:92vh; max-height:92dvh; overflow-y:auto; -webkit-overflow-scrolling:touch;
  animation:fadeUp .5s cubic-bezier(.19,1,.22,1);
}
.profile-modal-avatar-wrap{ position:relative; width:128px; height:128px; z-index:1; }
.profile-modal-avatar-fallback, .profile-modal-avatar-img{
  width:128px; height:128px; border-radius:50%; object-fit:cover;
  background:var(--surface);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:1.9rem; color:var(--text-faint);
  box-shadow:0 20px 60px rgba(0,0,0,.6);
}
.profile-modal-status-dot{
  position:absolute; right:5px; bottom:5px; width:20px; height:20px; border-radius:50%;
  background:var(--offline); border:3px solid #050505;
  transition:background .3s ease, box-shadow .3s ease;
}
.profile-modal-status-dot[data-status="online"]{ background:var(--online); box-shadow:0 0 0 4px rgba(67,181,129,.25), 0 0 12px rgba(67,181,129,.6); }
.profile-modal-status-dot[data-status="idle"]{ background:var(--idle); }
.profile-modal-status-dot[data-status="dnd"]{ background:var(--dnd); }
.profile-modal-name{
  position:relative; z-index:1;
  margin-top:1.15rem; font-size:clamp(1.2rem,3vw,1.9rem);
  color:#fff; text-shadow:0 4px 20px rgba(0,0,0,.9);
}
.profile-modal-music-card{
  position:relative; z-index:1; width:100%; max-width:450px;
  margin-top:1rem; border-radius:12px; overflow:hidden;
  background:#0a0505; border:1px solid var(--border-strong);
  opacity:0; max-height:0; transition:opacity .35s ease, max-height .35s ease, margin-top .35s ease;
}
.profile-modal-music-card.active{
  opacity:1; max-height:520px; margin-top:1rem;
  box-shadow:0 12px 40px rgba(0,0,0,.55);
}
.profile-modal-nowplaying{
  display:flex; align-items:center; justify-content:space-between; gap:.75rem;
  padding:.55rem .85rem; background:#0a0505;
  border-bottom:1px solid var(--border);
}
.now-playing-label{
  font-family:var(--font-mono); font-size:.6rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--text-dim); white-space:nowrap;
}
.now-playing-wave{
  display:flex; align-items:center; gap:2px; height:14px; flex:1;
  justify-content:flex-end; overflow:hidden;
}
.now-playing-wave span{
  display:block; width:2px; min-width:2px; height:100%;
  background:var(--accent-3); border-radius:1px; transform-origin:center;
  animation-name:nowPlayingBounce; animation-iteration-count:infinite; animation-timing-function:ease-in-out;
}
@keyframes nowPlayingBounce{
  0%, 100%{ transform:scaleY(.2); opacity:.55; }
  50%{ transform:scaleY(1); opacity:1; }
}
.profile-modal-spotify{ width:100%; }
.profile-modal-spotify iframe{ display:block; width:100%; border:0; }
@media (prefers-reduced-motion: reduce){
  .now-playing-wave span{ animation:none; transform:scaleY(.6); }
}
.profile-modal-role{
  position:relative; z-index:1;
  margin-top:.35rem; font-family:var(--font-mono); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent-3); text-shadow:0 2px 8px rgba(0,0,0,.9);
}
.profile-modal-status-text{
  position:relative; z-index:1;
  margin-top:.7rem; font-family:var(--font-mono); font-size:.64rem; letter-spacing:.04em;
  color:var(--text-dim); text-shadow:0 2px 8px rgba(0,0,0,.9);
}
.profile-modal-views{
  position:relative; z-index:1;
  display:flex; align-items:center; justify-content:center; gap:.4rem;
  margin-top:1rem; padding-top:.75rem; width:100%; max-width:220px;
  border-top:1px solid var(--border);
  font-family:var(--font-mono); font-size:.62rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--text-dim); text-shadow:0 2px 8px rgba(0,0,0,.9);
}
.profile-modal-views-icon{ display:inline-flex; align-items:center; color:var(--accent-3); }
.profile-modal-views-count{ color:var(--text); font-weight:600; letter-spacing:.02em; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}
a:focus-visible, button:focus-visible{ outline:2px solid var(--accent-3); outline-offset:3px; }
