@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg: #080808;
  --text: #f0f0f0;
  --muted: rgba(255,255,255,.55);
  --faint: rgba(255,255,255,.3);
  --border: rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.16);
  --card: rgba(255,255,255,.03);
  --card-hover: rgba(255,255,255,.06);
  --radius: 12px;
  --green: #23a55a;
  --yellow: #f0b232;
  --red: #f23f43;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

body::-webkit-scrollbar { display: none; }

/* INTRO */
#intro {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  transition: opacity 1s ease;
}

#intro h1 {
  font-size: 11px;
  color: white;
  letter-spacing: .25em;
  opacity: .4;
  font-weight: 400;
  text-transform: lowercase;
}

#intro.fade {
  opacity: 0;
  pointer-events: none;
}

/* WRAP */
.bio-wrap {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 1.1rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* HEADER */
.bio-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 14px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.bio-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bio-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.bio-handle {
  font-size: 11px;
  color: var(--muted);
}

.bio-sub {
  font-size: 10px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.bio-sub .dot { opacity: .4; }

/* TAG ROW */
.bio-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 4px;
}

.bio-tag,
.visitor-counter {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.bio-tag { color: var(--muted); }

.visitor-counter {
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 5px;
}

.visitor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* SECTION LABEL */
.section-label {
  width: 100%;
  margin: 1.6rem 0 .5rem;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--faint);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* CARD */
.card {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  transition: border-color .2s, background .2s;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
}

/* STATUS */
.status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}

.status.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status.idle { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.status.dnd { background: var(--red); box-shadow: 0 0 6px var(--red); }

.info { flex: 1; min-width: 0; }

.name {
  font-size: 12px;
  font-weight: 500;
}

.desc {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

.roblox-avatar {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.activity-img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.activity-type {
  font-size: 9px;
  color: var(--faint);
  letter-spacing: .08em;
  text-transform: lowercase;
  flex-shrink: 0;
}

button {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  letter-spacing: .05em;
}

button:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* LINKS */
.link {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  transition: border-color .2s, background .2s;
}

.link:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
}

.link-text { flex: 1; }

.title {
  font-size: 12px;
  font-weight: 500;
}

.announcements {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 6px;
}

.announcement {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color .2s, background .2s;
}

.announcement:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
}

.ann-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ann-badge {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: .05em;
}

.ann-date {
  font-size: 10px;
  color: var(--faint);
}

.ann-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

/* FOOTER */
.footer {
  margin-top: 2.5rem;
  font-size: 9px;
  color: rgba(255,255,255,.15);
  letter-spacing: .15em;
}

#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  padding: 8px 18px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  z-index: 9997;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* FADE IN ON SCROLL */
.card, .link, .mp {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}

.card.visible, .link.visible, .mp.visible {
  opacity: 1;
  transform: translateY(0);
}

.music-widget {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 3px 6px;
  gap: 0;
  z-index: 999;
  transition: border-color .2s;
}

.music-widget:hover {
  border-color: rgba(255,255,255,.18);
}

.vol-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 14px;
  height: 14px;
}
.vol-btn:hover { color: #fff; }

.mw-hover {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
}

.mw-hover input[type=range] { width: 55px; accent-color: rgba(255,255,255,.7); cursor: pointer; }
.mw-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 20px;
  touch-action: none;
}
.mw-slider-wrap input[type=range] {
  width: 55px;
  height: 20px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  touch-action: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  accent-color: rgba(255,255,255,.7);
}
.mw-slider-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  margin-top: -4px;
}
.mw-slider-wrap input[type=range]::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(255,255,255,.25);
  border-radius: 2px;
}
.mw-slider-wrap input[type=range]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}
.mw-slider-wrap input[type=range]::-moz-range-track {
  height: 2px;
  background: rgba(255,255,255,.25);
  border-radius: 2px;
}
.mw-divider { width: 1px; height: 10px; background: rgba(255,255,255,.12); flex-shrink: 0; }
.mw-track { font-size: 9px; color: rgba(255,255,255,.6); white-space: nowrap; letter-spacing: .04em; }
.mw-next {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  padding: 0;
  transition: color .15s;
}
.mw-next:hover { color: #fff; }

@media (max-width: 480px) {
  .mw-slider-wrap { display: none; }
  .mw-divider { display: none; }
}

@media (min-width: 700px) {
  .bio-wrap {
    max-width: 680px;
    padding: 3.5rem 2rem 5rem;
  }

  /* header gets bigger */
  .avatar {
    width: 90px;
    height: 90px;
  }

  .bio-name { font-size: 20px; }
  .bio-handle { font-size: 13px; }
  .bio-sub { font-size: 11px; }

  /* cards and links go 2 column */
  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .grid-2 .card,
  .grid-2 .link {
    margin-bottom: 0;
  }

  .name { font-size: 13px; }
  .desc { font-size: 11px; }
  .title { font-size: 13px; }

  .section-label {
    font-size: 10px;
    margin: 2rem 0 .6rem;
  }

  .mp { padding: 14px 16px; }
  .mp-btn { width: 30px; height: 30px; font-size: 13px; }
  .mp-title { font-size: 12px; }
  .time { font-size: 10px; }
}

@media (min-width: 1000px) {
  .bio-wrap {
    max-width: 860px;
    padding: 4rem 2.5rem 6rem;
  }

  /* 3 column extras */
  .grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .grid-3 .card {
    margin-bottom: 0;
  }
}