@font-face {
    font-family: "GothicWar";
    src: url("../gothic-war.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

/* ══════════════════════════════════════
   BACKGROUND — gothic webcore / liminal
   ══════════════════════════════════════ */

html,
body {
    background: #030303;
}

/* CRT scanlines */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 16;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.22) 2px,
        rgba(0, 0, 0, 0.22) 4px
    );
    opacity: 0.45;
}

/* film grain */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.6;
    animation: grainShift 8s steps(10) infinite;
}

#vignette {
    position: fixed;
    inset: 0;
    z-index: 16;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(0, 0, 0, 0.6) 65%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

#liminalFog {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 80%, rgba(60, 10, 40, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 0, 50, 0.25) 0%, transparent 45%);
}

#bgTint {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: rgba(20, 0, 30, 0.35);
    mix-blend-mode: multiply;
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -1%); }
    30% { transform: translate(1%, 2%); }
    50% { transform: translate(-1%, 1%); }
    70% { transform: translate(2%, -2%); }
    90% { transform: translate(-1%, -1%); }
}

/* ══════════════════════════════════════
   ORIGINAL UI (unchanged)
   ══════════════════════════════════════ */

body {
  user-select: none;
  margin: 0;
  height: 100vh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: monospace, monospace;
  cursor: default;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  filter: blur(10px) grayscale(50%) contrast(1.15) brightness(0.45) saturate(0.5);
  transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.click-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0);
  color: white;
  font-size: 2vw;
  z-index: 10;
  cursor: pointer;
  user-select: none;
}

.container {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0);
  border: 2px solid rgba(255, 255, 255, 0);
  box-shadow: 0px 0px 30px rgba(255, 255, 255, 0);
  width: clamp(260px, 30vw, 520px);
  aspect-ratio: 4 / 2.5;
  border-radius: 15px;
  box-sizing: border-box;
  gap: 0.5rem;
  padding: 1rem;
  overflow: hidden;
  z-index: 5;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.container.visible {
  opacity: 1;
  pointer-events: auto;
}

.banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0.4;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.profile {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.profile img {
  width: clamp(50px, 6vw, 120px);
  height: auto;
  border-radius: 50%;
  display: block;
}

.username {
  position: absolute;
  left: 51.5%; /* default: 50 */
  top: 50%; /* default: 60 */
  transform: translate(-50%, -50%);
  color: rgb(0, 0, 0); /* default: (255, 184, 223) */
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: bold;
  font-family: "GothicWar", serif;
  white-space: nowrap;
  letter-spacing: 0.2em;
  z-index: 2;
  text-shadow: 0px 4px 5px black,
               0px -4px 5px black,
               4px 0px 5px black,
               -4px 0px 5px black;
  user-select: none;
}

.socials {
  position: relative;
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  justify-content: center;
  align-items: center;
  margin-top: 40%;
  z-index: 2;
}

.social-btn {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.social-btn img {
  width: clamp(30px, 4vw, 50px);
  height: auto;
  border-radius: 50%;
  display: block;
  transition: transform 0.2s ease-in-out;
}

.social-btn:hover img {
  transform: scale(1.1);
}

.social-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.social-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.mute-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 20;
  padding: 8px 12px;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.mute-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.mute-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
