:root{
  --bg:#080808;
  --text:#ffffff;
  --text-muted:rgba(255,255,255,.6);
  --text-dim:rgba(255,255,255,.4);
  --container-bg:rgba(27,27,27,.5);
  --container-gradient:linear-gradient(25deg, rgba(7,76,97,.55), rgba(0,39,51,.55));
  --container-border:rgba(255,255,255,.28);
  --container-radius:20px;
  --button-bg:rgba(255,255,255,.1);
  --button-bg-hover:rgba(255,255,255,.2);
  --button-border:rgba(255,255,255,.14);
  --glow:0 0 16px rgba(255,255,255,.55);
  --accent:#0aa9d6;
}

*{ box-sizing:border-box; margin:0; padding:0; }
/* custom cursor is applied from js/config.js (SITE_CONFIG.cursor) at runtime */

html,body{
  height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:'Onest', sans-serif;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }

/* ---------- background ---------- */
.bg{
  position:fixed; inset:0;
  /* background-image is set from js/config.js (SITE_CONFIG.background) at runtime */
  background-size:cover;
  background-position:center;
  filter:saturate(1.05);
  z-index:0;
}
.bg-overlay{
  position:fixed; inset:0;
  background:
    radial-gradient(circle at 50% 20%, rgba(8,8,8,.35), rgba(8,8,8,.75) 60%, rgba(8,8,8,.92) 100%);
  z-index:1;
}

/* ---------- enter splash ---------- */
.enter-screen{
  position:fixed; inset:0;
  z-index:50;
  display:flex; align-items:center; justify-content:center;
  background:rgba(8,8,8,.55);
  backdrop-filter:blur(6px);
  cursor:pointer;
  transition:opacity .5s ease, visibility .5s ease;
}
.enter-screen.hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.enter-text{
  font-weight:700;
  font-size:clamp(20px,4vw,30px);
  letter-spacing:.5px;
  text-shadow:var(--glow);
  animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:.55; }
  50%{ opacity:1; }
}

/* ---------- page / card ---------- */
.page{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:14px;
  padding:40px 16px 120px;
  opacity:0;
  transform:translateY(12px);
  transition:opacity .6s ease, transform .6s ease;
}
.page.visible{
  opacity:1;
  transform:translateY(0);
}

.card{
  width:min(40rem, 92vw);
  padding:35px 28px;
  border-radius:var(--container-radius);
  background:var(--container-gradient), var(--container-bg);
  border:2px solid var(--container-border);
  backdrop-filter:blur(28px);
  -webkit-backdrop-filter:blur(28px);
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:14px;
}

.avatar-wrap{ margin-bottom:4px; }
.avatar{
  width:84px; height:84px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:34px; font-weight:700;
  background:linear-gradient(160deg, var(--accent), #062733);
  border:2px solid rgba(27,27,27,.4);
  box-shadow:0 0 22px rgba(10,169,214,.45);
}

.identity{ display:flex; flex-direction:column; gap:6px; align-items:center; }

.username{
  font-weight:700;
  font-size:clamp(26px,5vw,34px);
  text-shadow:var(--glow);
  display:flex; align-items:baseline; gap:8px; justify-content:center;
}
.uid{
  font-size:11px;
  font-weight:500;
  color:var(--text-dim);
  text-shadow:none;
}

.bio{
  font-weight:500;
  font-size:16px;
  color:rgba(255,255,255,.85);
}

.location{
  display:flex; align-items:center; gap:5px;
  font-size:13px;
  color:var(--text-muted);
}

.discord-pill{
  margin-top:10px;
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px;
  border-radius:999px;
  background:var(--button-bg);
  border:1px solid var(--button-border);
  font-size:13.5px;
  font-weight:500;
  cursor:pointer;
  transition:background .2s ease, transform .15s ease;
}
.discord-pill:hover{ background:var(--button-bg-hover); }
.discord-pill:active{ transform:scale(.97); }
.discord-pill.copied{ color:#7CFFB2; }

.socials{
  margin-top:14px;
  display:flex; gap:12px;
}
.social-icon{
  width:42px; height:42px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:var(--button-bg);
  border:1px solid var(--button-border);
  transition:background .2s ease, transform .15s ease, filter .2s ease;
}
.social-icon svg{ filter:drop-shadow(0 0 6px rgba(255,255,255,.5)); }
.social-icon:hover{
  background:var(--button-bg-hover);
  transform:translateY(-3px);
}
.social-icon.is-empty{
  opacity:.35;
  cursor:not-allowed;
}
.social-icon.is-empty:hover{
  background:var(--button-bg);
  transform:none;
}

.avatar.has-image{
  background:none;
  padding:0;
  overflow:hidden;
}
.avatar.has-image img{
  width:100%; height:100%;
  object-fit:cover;
  border-radius:50%;
}

/* ---------- audio player ---------- */
.audio-player{
  position:fixed;
  right:16px; bottom:16px;
  z-index:40;
  display:flex; align-items:center; gap:10px;
  padding:10px 14px 10px 10px;
  border-radius:16px;
  background:rgba(20,20,20,.55);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  max-width:260px;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .5s ease .3s, transform .5s ease .3s;
}
.audio-player.visible{ opacity:1; transform:translateY(0); }

.audio-cover{
  width:38px; height:38px;
  border-radius:8px;
  object-fit:cover;
  flex-shrink:0;
}
.audio-info{ min-width:0; flex:1; }
.audio-title{
  font-size:12.5px;
  font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.audio-progress{
  margin-top:6px;
  height:3px;
  border-radius:2px;
  background:rgba(255,255,255,.2);
  overflow:hidden;
}
.audio-progress-fill{
  height:100%; width:0%;
  background:#fff;
}
.audio-btn{
  flex-shrink:0;
  width:30px; height:30px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,.15);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:background .2s ease;
}
.audio-btn:hover{ background:rgba(255,255,255,.28); }

/* ---------- projects bar ---------- */
.projects-bar{
  width:min(40rem, 92vw);
  box-sizing:border-box;
  display:flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius:16px;
  background:var(--container-gradient), var(--container-bg);
  border:2px solid var(--container-border);
  backdrop-filter:blur(28px);
  -webkit-backdrop-filter:blur(28px);
  box-shadow:0 12px 40px rgba(0,0,0,.4);
  opacity:0;
  transform:translateY(10px);
  transition:opacity .5s ease .35s, transform .5s ease .35s;
}
.projects-bar.visible{ opacity:1; transform:translateY(0); }

.projects-label{
  flex-shrink:0;
  font-size:12.5px;
  font-weight:600;
  color:rgba(255,255,255,.85);
  padding-right:10px;
  border-right:1px solid rgba(255,255,255,.15);
  white-space:nowrap;
}

.projects-list{
  display:flex; flex-wrap:wrap; gap:8px;
  min-width:0;
}

.project-item{
  display:flex; align-items:center;
  max-width:100%;
  height:34px;
  padding:0 8px;
  border-radius:10px;
  background:var(--button-bg);
  border:1px solid var(--button-border);
  overflow:hidden;
  transition:background .2s ease, transform .15s ease;
}
.project-item:hover{
  background:var(--button-bg-hover);
  transform:translateY(-3px);
}

.project-icon{
  width:18px; height:18px;
  flex-shrink:0;
  border-radius:5px;
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:700;
  background:linear-gradient(160deg, var(--accent), #062733);
  overflow:hidden;
}
.project-icon img{ width:100%; height:100%; object-fit:cover; }

.project-name{
  max-width:0;
  margin-left:0;
  opacity:0;
  font-size:12.5px;
  font-weight:500;
  white-space:nowrap;
  overflow:hidden;
  transition:max-width .28s ease, opacity .2s ease, margin-left .28s ease;
}
.project-item:hover .project-name{
  max-width:160px;
  margin-left:8px;
  opacity:1;
}

@media (max-width:480px){
  .card{ padding:28px 18px; }
  .audio-player{ max-width:none; left:16px; right:16px; }
}
