/* ============================================================
   BASE
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Outfit', sans-serif;
  --mono:   'Geist Mono', monospace;
  --white:  rgba(255,255,255,0.88);
  --white-mid: rgba(255,255,255,0.45);
  --white-dim: rgba(255,255,255,0.22);
  --white-ghost: rgba(255,255,255,0.10);
}
::selection { background: rgba(255,255,255,0.15); color: #fff; }
html { scroll-behavior: smooth; }
body { background: #080a09; color: var(--white); font-family: var(--sans); overflow-x: hidden; min-height: 100vh; }
::-webkit-scrollbar { width: 0; }

/* ============================================================
   BACKGROUND
============================================================ */
#bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(30,45,60,.8) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 110%, rgba(20,30,50,.6) 0%, transparent 55%),
    linear-gradient(180deg, #0b0f13 0%, #080a09 55%, #060809 100%);
}
#bg::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,8,10,.38) 0%, rgba(6,8,10,.18) 35%, rgba(6,8,10,.48) 68%, rgba(6,8,10,.88) 100%);
}
#bg::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background-image: radial-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 28px 28px;
}
#bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.4s ease;
  pointer-events: none; z-index: 0;
}

/* ============================================================
   ENTRY OVERLAY
============================================================ */
#overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  background: #080a09;
  cursor: pointer;
  transition: opacity .9s cubic-bezier(.4,0,.2,1), visibility .9s;
}
#overlay.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.ov-ring {
  width: 88px; height: 88px; border-radius: 50%; padding: 2px;
  background: conic-gradient(rgba(255,255,255,.45) 0deg, rgba(255,255,255,.05) 90deg, rgba(255,255,255,.3) 180deg, rgba(255,255,255,.05) 270deg, rgba(255,255,255,.45) 360deg);
  animation: ring-spin 8s linear infinite;
}
.ov-ring img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid rgba(8,10,9,.8); background: #1a1e22; }
.ov-name { font-family: var(--serif); font-size: 2.2rem; font-weight: 300; font-style: italic; letter-spacing: -.02em; color: rgba(255,255,255,.88); }
.ov-spinner { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.06); border-top-color: rgba(255,255,255,.55); animation: spin 1s linear infinite; }
.ov-hint { font-family: var(--mono); font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.22); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.22} 50%{opacity:.7} }

/* ============================================================
   LAYOUT — SECTIONS
============================================================ */
section { position: relative; z-index: 10; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; }
#hero { gap: 16px; }
#about { padding: 80px 20px 120px; }

/* ============================================================
   HERO — AVATAR
============================================================ */
.hero-av { position: relative; width: 148px; height: 148px; }
.hero-av-ring {
  width: 148px; height: 148px; border-radius: 50%; padding: 2px;
  background: conic-gradient(rgba(255,255,255,.45) 0deg, rgba(255,255,255,.05) 90deg, rgba(255,255,255,.3) 180deg, rgba(255,255,255,.05) 270deg, rgba(255,255,255,.45) 360deg);
  animation: ring-spin 8s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.hero-av-ring img { width: 144px; height: 144px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid rgba(8,10,9,.8); background: #1a1e22; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.hero-av:hover .hero-av-ring img { transform: scale(1.04); }

/* ============================================================
   HERO — NAME & SOCIALS
============================================================ */
.hero-name {
  font-family: var(--serif); font-size: clamp(2.8rem,9vw,4.6rem);
  font-weight: 300; font-style: italic; letter-spacing: -.02em; line-height: 1;
  color: rgba(255,255,255,.88); text-shadow: 0 2px 50px rgba(255,255,255,.06);
  cursor: pointer; user-select: none;
}
.hero-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-socials { display: flex; gap: 18px; justify-content: center; }
.slink { color: var(--white-dim); text-decoration: none; transition: color .2s, transform .2s; display: flex; align-items: center; font-size: 17px; }
.slink:hover { color: rgba(255,255,255,.75); transform: translateY(-3px); }

/* ============================================================
   SCROLL HINT
============================================================ */
.scroll-hint {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--white-mid); font-size: .6rem; letter-spacing: 4px; text-transform: uppercase;
  font-family: var(--mono); animation: scroll-hint 2.5s ease-in-out infinite; pointer-events: none;
}
@keyframes scroll-hint { 0%,100%{opacity:.5;transform:translateX(-50%) translateY(0)} 50%{opacity:1;transform:translateX(-50%) translateY(5px)} }
.scroll-hint.hidden { opacity: 0; animation: none; }

/* ============================================================
   ABOUT — LAYOUT
============================================================ */
.about-inner { max-width: 760px; width: 100%; display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.about-row.solo { grid-template-columns: 1fr; }

/* ============================================================
   INFO CARDS (Discord + Activity)
============================================================ */
.info-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; backdrop-filter: blur(10px); transition: background .2s; min-width: 0;
}
.info-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }

/* Discord avatar */
.ic-av { position: relative; flex-shrink: 0; width: 56px; height: 56px; }
.ic-av-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; background: #1a1e22; }
.ic-dot { position: absolute; bottom: 1px; right: 1px; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid #080a09; }
.ic-dot.online  { background: #23a55a; }
.ic-dot.idle    { background: #f0b232; }
.ic-dot.dnd     { background: #f23f43; }
.ic-dot.offline { background: #80848e; }

/* Discord info text */
.ic-info { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.ic-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 1px; }
.ic-name-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.ic-name { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-sub { font-size: .7rem; color: var(--white-mid); }

/* Add friend button */
.add-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); transition: all .25s; text-decoration: none; font-size: 10px;
}
.add-btn:hover { background: rgba(255,255,255,.2); color: #fff; transform: scale(1.15); border-color: rgba(255,255,255,.3); }

/* Clan tag */
.clan-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px 2px 4px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: 20px;
  font-size: .62rem; font-weight: 600; color: rgba(255,255,255,.55);
  letter-spacing: .03em; font-family: var(--sans); white-space: nowrap; transition: all .2s;
}
.clan-tag:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.clan-badge { width: 14px; height: 14px; border-radius: 50%; object-fit: contain; }

/* Badges */
.discord-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.dbadge-wrap { position: relative; display: inline-flex; }
.dbadge { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 0 3px rgba(255,255,255,.08)); transition: transform .25s cubic-bezier(.34,1.56,.64,1), filter .2s; cursor: default; }
.dbadge:hover { transform: scale(1.5) translateY(-4px); filter: drop-shadow(0 0 8px rgba(255,255,255,.45)); }
.dbadge-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(6,8,7,.96); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 5px 10px; font-size: .64rem; font-weight: 500;
  color: #fff; white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity .18s, transform .18s; z-index: 50; backdrop-filter: blur(12px);
}
.dbadge-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: rgba(255,255,255,.1); }
.dbadge-wrap:hover .dbadge-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   BIO
============================================================ */
.sec-label { font-family: var(--mono); font-size: .6rem; letter-spacing: 5px; text-transform: uppercase; color: var(--white-dim); margin-bottom: 12px; display: block; text-align: center; }
.bio-text { font-family: var(--serif); font-size: clamp(1.2rem,4vw,1.7rem); font-weight: 300; font-style: italic; color: rgba(255,255,255,.55); line-height: 1.6; min-height: 36px; text-align: center; }
.bio-text::after { content: '|'; animation: blink 1s step-end infinite; margin-left: 2px; opacity: .3; }
@keyframes blink { 0%,100%{opacity:.3} 50%{opacity:0} }

/* ============================================================
   ACTIVITY CARD
============================================================ */
.acts-grid { display: flex; flex-direction: column; align-items: center; width: 100%; height: 56px; overflow: hidden; position: relative; }
.acard { display: flex; gap: 12px; align-items: center; flex: 0 0 56px; height: 56px; width: 100%; transition: opacity .3s ease; }
.acard.act-hidden  { opacity: 0; position: absolute; pointer-events: none; }
.acard.act-visible { opacity: 1; position: relative; }
.acts-dots { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.act-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .3s; cursor: pointer; }
.act-dot.active { background: rgba(255,255,255,.8); }
.act-nav { width: 20px; height: 20px; background: transparent; border: none; color: rgba(255,255,255,.4); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.act-nav:hover { color: #fff; }
.act-nav svg { width: 10px; height: 10px; fill: currentColor; }
.aicon-wrap { flex-shrink: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; position: relative; }
.aicon-large { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; }
.aicon-small { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; position: absolute; bottom: -2px; right: -2px; border: 2px solid #080a09; background: #080a09; }
.ainfo { flex: 1; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.act-type    { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white-dim); }
.aname       { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adetails    { font-size: .68rem; color: var(--white-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   MUSIC PLAYER
============================================================ */
.music-inner { max-width: 500px; width: 100%; display: flex; flex-direction: row; align-items: center; gap: 16px; }
.music-art-wrap { position: relative; flex-shrink: 0; width: 68px; height: 68px; cursor: pointer; }
.music-art {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid rgba(255,255,255,.12); box-shadow: 0 0 0 5px rgba(255,255,255,.03);
  background: #1a1e22; display: flex; align-items: center; justify-content: center;
}
.music-art.spin { animation: art-spin 14s linear infinite; }
@keyframes art-spin { to { transform: rotate(360deg); } }
.viz-wrap { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; align-items: flex-end; height: 9px; }
.vbar { width: 2px; border-radius: 2px; background: rgba(255,255,255,.3); animation: vb .75s ease-in-out infinite alternate; }
.vbar:nth-child(2){animation-delay:.1s} .vbar:nth-child(3){animation-delay:.2s} .vbar:nth-child(4){animation-delay:.3s}
.vbar:nth-child(5){animation-delay:.15s} .vbar:nth-child(6){animation-delay:.25s} .vbar:nth-child(7){animation-delay:.05s}
@keyframes vb { from{height:2px;opacity:.18} to{height:9px;opacity:.7} }
.viz-wrap.paused .vbar { animation-play-state: paused; height: 2px; opacity: .1; }
.music-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.music-label { font-family: var(--mono); font-size: .54rem; letter-spacing: 4px; text-transform: uppercase; color: var(--white-dim); }
.music-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 300; font-style: italic; color: rgba(255,255,255,.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar-row { display: flex; align-items: center; gap: 8px; }
.tme { font-family: var(--mono); font-size: .6rem; color: var(--white-dim); min-width: 26px; }
.pbar { flex: 1; height: 2px; background: rgba(255,255,255,.1); border-radius: 10px; cursor: pointer; }
.pfill { height: 100%; background: rgba(255,255,255,.62); border-radius: 10px; width: 0%; transition: width .1s linear; }
.music-ctrl { display: flex; align-items: center; gap: 5px; }
.abtn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: rgba(255,255,255,.4); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .25s; }
.abtn svg { width: 12px; height: 12px; fill: currentColor; }
.abtn:hover { background: rgba(255,255,255,.1); color: #fff; transform: scale(1.12); }
.abtn.play { width: 34px; height: 34px; background: rgba(255,255,255,.08); color: #fff; }
.vol-row { display: flex; align-items: center; gap: 7px; flex: 1; }
.vol-slider { -webkit-appearance: none; flex: 1; height: 2px; border-radius: 10px; background: rgba(255,255,255,.1); outline: none; cursor: pointer; }
.vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; }

/* ============================================================
   CORNER STATS
============================================================ */
.corner-stats { position: fixed; bottom: 18px; left: 18px; display: flex; align-items: center; gap: 14px; z-index: 50; }
.cstat { display: flex; align-items: center; gap: 5px; color: var(--white-dim); font-size: .65rem; font-family: var(--mono); }
.cstat svg { width: 11px; height: 11px; fill: currentColor; }

/* ============================================================
   FADE-IN UTILITY
============================================================ */
.fin { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.fin.v { opacity: 1; transform: translateY(0); }

/* ============================================================
   TOAST
============================================================ */
#toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(14,16,14,.96); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 8px 18px; z-index: 9999;
  font-size: .78rem; font-family: var(--mono); color: #fff;
  white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none;
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 600px) {
  section { padding: 48px 16px; }
  #about  { padding: 60px 16px 100px; }

  /* hero */
  .hero-av, .hero-av-ring { width: 120px; height: 120px; }
  .hero-av-ring img { width: 116px; height: 116px; }

  /* about row — stack vertically */
  .about-row { grid-template-columns: 1fr; gap: 12px; }

  /* cards: tighten padding, smaller avatar */
  .info-card { padding: 12px 13px; gap: 11px; border-radius: 14px; }
  .ic-av, .ic-av-img { width: 46px; height: 46px; }
  .ic-dot { width: 11px; height: 11px; }
  .ic-name { font-size: .85rem; }
  .ic-sub  { font-size: .67rem; }

  /* activity icons */
  .acts-grid { height: 50px; }
  .acard { height: 50px; flex: 0 0 50px; gap: 10px; }
  .aicon-wrap { width: 50px; height: 50px; }
  .aicon-large { width: 50px; height: 50px; border-radius: 10px; }
  .aicon-small { width: 18px; height: 18px; }
  .aname { font-size: .82rem; }
  .adetails { font-size: .64rem; }

  /* music player */
  .music-inner { flex-direction: row; gap: 14px; }
  .music-art-wrap { width: 58px; height: 58px; }
  .music-art { width: 58px; height: 58px; }
  .music-title { font-size: .95rem; }
  .abtn { width: 30px; height: 30px; }
  .abtn.play { width: 36px; height: 36px; }

  /* hide vol slider on tiny screens, keep icon */
  .vol-slider { display: none; }

  /* corner stats — move slightly so they don't clash with home bar */
  .corner-stats { bottom: 22px; left: 14px; gap: 12px; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ANTI-CLONE PROTECTIONS
============================================================ */
/* Disable text selection site-wide */
body, section, .hero-name, .bio-text, .ic-name, .ic-sub,
.aname, .adetails, .music-title, .act-type {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Prevent image dragging */
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* Pointer events re-enabled only for interactive images */
.abtn img, .slink img, .music-art-wrap img, .ic-av img,
.hero-av-ring img, .ov-ring img {
  pointer-events: auto;
}

/* Overlay that activates when DevTools is detected (toggled via JS) */
#devtools-block {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #080a09;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: rgba(255,255,255,.3);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}
#devtools-block.active {
  display: flex;
}