* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
body {
  font-family: 'Montserrat', sans-serif;
  background: #0a0118;
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}
canvas { position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none; }

.content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh; width: 100%; padding: 60px 0;
}
.brand { margin-bottom: 40px; text-align: center; opacity: 0; transform: translateY(20px); animation: fadeIn 1s ease-out forwards; }
.brand h1 { font-size: 4rem; letter-spacing: 4px; color: #fff; text-shadow: 0 0 15px rgba(180, 80, 255, 0.7); margin-bottom: 15px; }
.brand p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.8); }

.vouches-window {
  position: relative; margin-top: 20px;
  background: rgba(20, 5, 40, 0.72);
  border: 2px solid rgba(180, 80, 255, 0.4);
  border-radius: 22px;
  box-shadow: 0 0 30px rgba(180, 80, 255, 0.25);
  width: 700px; max-width: 90vw; min-height: 350px;
  padding: 38px 24px; z-index: 2; backdrop-filter: blur(6px);
  transition: box-shadow 0.2s;
  display: flex; flex-direction: column; align-items: center;
}
.vouches-window h2 {
  font-size: 2.4rem; letter-spacing: 3px; color: #ff00c1;
  margin-bottom: 10px; text-shadow: 0 0 8px rgba(255, 0, 193, 0.18);
}

.vouches-count {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  letter-spacing: .3px;
}

.filters {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  margin: 8px 0 22px; flex-wrap: wrap;
}
.filter-btn {
  appearance: none; border: 2px solid rgba(220, 140, 255, 0.6);
  background: rgba(180, 80, 255, 0.18); color: #fff; font-weight: 700;
  padding: 8px 14px; border-radius: 12px; letter-spacing: .3px;
  transition: transform .06s, box-shadow .2s, background-color .2s, border-color .2s, opacity .2s;
  cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 8px;
}
.filter-btn:hover { box-shadow: 0 0 14px rgba(220, 140, 255, 0.55); transform: translateY(-1px); }
.filter-btn:active { transform: translateY(0); }
.filter-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 0, 193, 0.55); }
.filter-btn.is-active { background: rgba(220, 140, 255, 0.35); border-color: rgba(255, 0, 193, 0.9); }

.vouches-list { width: 100%; display: flex; flex-direction: column; gap: 20px; margin-bottom: 12px; }
.vouch {
  background: rgba(180, 80, 255, 0.1);
  border: 1.5px solid rgba(180, 80, 255, 0.25);
  border-radius: 13px; color: #fff; padding: 15px;
  box-shadow: 0 2px 10px rgba(100, 20, 180, 0.08);
  font-size: 1.1rem; transition: border-color .2s;
  display: flex; align-items: flex-start; gap: 15px;
}
.vouch-author-pfp {
  width: 45px; height: 45px; border-radius: 50%;
  border: 2px solid #b450ff; object-fit: cover; transition: transform .2s;
}
.vouch-author-pfp:hover { transform: scale(1.1); cursor: pointer; }
.vouch-content { flex: 1; }
.vouch .author { font-weight: 700; color: #b450ff; display: block; margin-bottom: 5px; }

.mention {
  display: inline-block; padding: 0 6px; border-radius: 6px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #ddd;
}
.mention-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 10px; border-radius: 999px;
  background: rgba(0, 255, 170, 0.12);
  border: 1px solid rgba(0, 255, 170, 0.35);
  color: #00ffb4; font-weight: 800; line-height: 1.7;
  text-decoration: none; white-space: nowrap;
}
.mention-chip:hover { text-decoration: underline; }
.chip-text { display: inline-block; }
.chip-tag  { display: inline-flex; align-items: center; gap: 6px; }
.chip-emoji { width: 16px; height: 16px; border-radius: 4px; flex: 0 0 auto; }

.vouch-images {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.vouch-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(180, 80, 255, 0.35);
  border-radius: 12px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vouch-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .15s ease, box-shadow .2s ease;
  cursor: pointer;
  border-radius: 10px;
}
.vouch-thumb img:hover { transform: translateY(-1px) scale(1.01); box-shadow: 0 0 16px rgba(180, 80, 255, 0.35); }

#user-id-popup {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(10, 1, 24, 0.9); color: #fff; padding: 20px 30px;
  border: 2px solid #b450ff; border-radius: 15px; box-shadow: 0 0 25px rgba(180, 80, 255, 0.5);
  z-index: 10001; backdrop-filter: blur(10px); display: none; text-align: center;
}
#user-id-popup p { margin: 0; font-size: 1.2rem; color: rgba(255,255,255,0.8); }
#user-id-popup span {
  font-weight: bold; color: #ff00c1; background: rgba(255,255,255,0.1);
  padding: 5px 10px; border-radius: 8px; margin-top: 10px; display: inline-block;
  font-family: 'Courier New', Courier, monospace;
}
#popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: none; }

#img-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10002;
  padding: 4vmin;
}
#img-lightbox[aria-hidden="false"] { display: flex; }
#img-lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(0,0,0,0.6), 0 0 30px rgba(180,80,255,0.25) inset;
}
#img-lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent; color: #fff; font-size: 22px; line-height: 28px;
  cursor: pointer; display: grid; place-items: center;
}

.author-link {
  color: #e4b5ff;
  text-decoration: none;
  font-weight: 800;
}
.author-link:hover { text-decoration: underline; }
.clan-tag { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 999px;
  background: rgba(0, 255, 170, 0.12); border: 1px solid rgba(0, 255, 170, 0.35);
  color: #00ffb4; font-weight: 800; line-height: 1.6; vertical-align: middle; }
.clan-emoji { width: 18px; height: 18px; border-radius: 4px; display: inline-block; }
.clan-text  { font-size: 0.95em; }

.cursor { position: fixed; width: 16px; height: 16px; border: 2px solid #ff00c1; border-radius: 50%; background: transparent; mix-blend-mode: difference; pointer-events: none; transform: translate(-50%, -50%); z-index: 9999; transition: transform .1s, border-color .2s; animation: cursorPulse 1.5s infinite; }
@keyframes cursorPulse { 0%{transform:translate(-50%,-50%) scale(1); opacity:1;} 50%{transform:translate(-50%,-50%) scale(1.34); opacity:.7;} 100%{transform:translate(-50%,-50%) scale(1); opacity:1;} }
.cursor-trail { position: fixed; width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle at center, rgba(255, 0, 255, 0.5) 0%, rgba(255, 0, 255, 0) 80%); pointer-events: none; transform: translate(-50%, -50%); z-index: 9998; filter: blur(8px); transition: width .3s, height .3s; }

@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 800px) {
  .brand h1 { font-size: 2.3rem; }
  .vouches-window { width: 96vw; padding: 22px 7vw; }
}
@media (max-width: 768px) {
  .vouches-list { gap: 13px; }
  .brand h1 { font-size: 1.6rem; }
  .cursor, .cursor-trail { display: none; }
  .vouches-window { border-radius: 13px; padding: 17px 3vw; }
}

.btn-homepage {
  position: fixed; top: 20px; right: 20px; z-index: 10000;
  background: rgba(180, 80, 255, 0.45); color: white;
  border: 2px solid rgba(220, 140, 255, 0.9); border-radius: 12px;
  padding: 10px 16px; font-weight: 600; font-size: 1rem; text-decoration: none;
  backdrop-filter: blur(5px); transition: background-color .3s, box-shadow .3s;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.btn-homepage:hover { background: rgba(220, 140, 255, 0.85); box-shadow: 0 0 18px rgba(220, 140, 255, 0.85); color: #fff; }

body.lightbox-open, body.lightbox-open * { cursor: default !important; }
body.lightbox-open .cursor, body.lightbox-open .cursor-trail { display: none !important; }
body.lightbox-open { overflow: hidden; }
#img-lightbox-close { cursor: pointer !important; }
#img-lightbox      { cursor: default !important; }
