@font-face {
  font-family: TopazPlus;
  src: url("../fonts/TopazPlus.ttf");
}

:root {
  --red: #e63946;
  --dark-red: #b5212d;
  --white: #f1f1f1;
  --grey: #888;
  --dark-grey: #333;
  --faint: #1a1a1a;
  --bg: #0a0a0a;
  --card: #111;
  --border: #222;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow: hidden;
  height: 100vh;
}

body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: var(--bg);
  font-family: TopazPlus, "Courier New", monospace;
  font-size: 15px;
  line-height: 1.6;
  color: var(--white);
  cursor: none;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--dark-grey);
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header {
  text-align: center;
  padding-bottom: 24px;
}

.logo-wrap {
  display: inline-block;
  position: relative;
  animation: logo-glow 3s ease-in-out infinite;
}

.logo {
  max-width: 340px;
  width: 100%;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.4s;
}

.logo:hover {
  opacity: 1;
}

@keyframes logo-glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

.bleed-drips {
  position: absolute;
  bottom: 0;       /* anchor to bottom of image */
  left: 0;
  width: 100%;
  height: 50px;    /* keep original height */
  pointer-events: none;
  overflow: visible;
}

.drip {
  position: absolute;
  top: 0;          /* start at top of container */
  width: 3px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(
    180deg,       /* gradient flows downward */
    var(--red) 0%,
    var(--dark-red) 60%,
    transparent 100%
  );
  opacity: 0;
  transform-origin: top center; /* grow downward from top */
  animation: drip-fall 4s ease-in infinite;
}

@keyframes drip-fall {
  0% {
    opacity: 0;
    transform: scaleY(0);
  }
  10% {
    opacity: 0.8;
    transform: scaleY(0.1);
  }
  50% {
    opacity: 0.6;
    transform: scaleY(1);
  }
  80% {
    opacity: 0.2;
    transform: scaleY(1);
  }
  100% {
    opacity: 0;
    transform: scaleY(1);
  }
}

/* Responsive tweaks for smaller screens */
@media screen and (max-width: 640px) {
  .drip {
    width: 2px;
  }
}

@media screen and (max-width: 400px) {
  .drip {
    width: 2px;
  }
}

.section {
  padding: 20px 0;
}

.section-title {
  font-family: TopazPlus, "Courier New", monospace;
  font-size: 11px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--red);
  margin-bottom: 16px;
  text-align: center;
}

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--dark-grey) 30%,
    var(--red) 50%,
    var(--dark-grey) 70%,
    transparent 100%
  );
  margin: 16px 0;
  opacity: 0.5;
}

.tagline {
  text-align: center;
}

.tagline p {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.8;
}

.accent {
  color: var(--red);
}

a {
  text-decoration: none;
  color: var(--grey);
  cursor: none !important;
  transition: color 0.2s;
}

a:hover {
  color: var(--white);
}

a,
button,
[data-member] {
  cursor: none !important;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
  position: relative;
}

.member-row:last-child {
  border-bottom: none;
}

.member-row::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 60%;
  background: var(--red);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s;
  opacity: 0;
}

.member-row:hover::before {
  transform: translateY(-50%) scaleY(0.5);
  opacity: 0.3;
}

.member-row.active::before {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
}

.member-row .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dark-grey);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

.member-row .dot.active {
  background: var(--red);
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.6);
  transform: scale(1.4);
}

.member-name-link {
  color: var(--grey);
  font-size: 14px;
  padding: 0;
  display: inline;
  letter-spacing: 1px;
  transition: color 0.25s, letter-spacing 0.3s;
}

.member-name-link:hover {
  color: var(--white);
  letter-spacing: 1.5px;
}

.member-name-link.active {
  color: var(--red);
}

#member-info {
  text-align: center;
  padding: 0;
  overflow: hidden;
}

#member-info:empty {
  padding: 0;
}

.member-profile {
  text-align: center;
  padding: 28px 0 8px;
  position: relative;
}

.member-profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--red);
  opacity: 0;
  animation: line-reveal 0.5s 0.1s ease forwards;
}

@keyframes line-reveal {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 40px;
    opacity: 0.6;
  }
}

.profile-avatar {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid transparent;
  margin-bottom: 14px;
  opacity: 0;
  transform: scale(0.85);
  filter: blur(4px);
  animation: avatar-reveal 0.5s 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: border-color 0.3s;
}

.profile-avatar:hover {
  border-color: var(--red);
}

@keyframes avatar-reveal {
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.profile-ring {
  display: inline-block;
  position: relative;
  margin-bottom: 14px;
}

.profile-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--red);
  opacity: 0;
  animation: ring-pulse 0.6s 0.3s ease forwards;
}

@keyframes ring-pulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
}

.profile-name {
  color: var(--white);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(6px);
  animation: text-reveal 0.4s 0.3s ease forwards;
}

.profile-desc {
  color: var(--dark-grey);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  animation: text-reveal 0.4s 0.4s ease forwards;
}

@keyframes text-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  opacity: 0;
  animation: text-reveal 0.4s 0.55s ease forwards;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--dark-grey);
  background: none;
  border: none;
  border-radius: 50%;
  transition: color 0.2s, transform 0.2s;
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.social-icon:hover {
  color: var(--red);
  transform: translateY(-2px);
}

#controls {
  display: none;
}

#song-title {
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
}

.overlay.hidden {
  display: none;
}

.overlay-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.overlay-label {
  font-size: 32px;
  color: var(--white);
  letter-spacing: 8px;
  text-transform: lowercase;
}

.overlay-cta {
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 3px;
  text-transform: lowercase;
  transition: color 0.3s;
}

.overlay:hover .overlay-cta {
  color: var(--red);
}

.matrix-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.04;
}

.custom-cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  transition: transform 0.12s ease, background-color 0.12s ease, opacity 0.12s ease, border-color 0.12s ease;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.6);
  background-color: rgba(230, 57, 70, 0.08);
  opacity: 0.8;
}

.custom-cursor.flash {
  border-color: var(--white);
  transform: translate(-50%, -50%) scale(2);
}

.cursor-dot {
  position: fixed;
  width: 3px;
  height: 3px;
  background: var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}

.cursor-toggle {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 9998;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.cursor-toggle:hover {
  opacity: 1;
}

body.default-cursor {
  cursor: auto !important;
}

body.default-cursor a,
body.default-cursor button,
body.default-cursor [data-member] {
  cursor: pointer !important;
}

@keyframes glitch {
  0%   { transform: translate(0); }
  20%  { transform: translate(-0.5px, 0.5px); }
  40%  { transform: translate(-0.5px, -0.5px); }
  60%  { transform: translate(0.5px, 0.5px); }
  80%  { transform: translate(0.5px, -0.5px); }
  100% { transform: translate(0); }
}

.glitch {
  animation: glitch 0.08s infinite;
}

@keyframes glitch-hover {
  0%   { transform: translate(0); }
  25%  { transform: translate(-1px, 1px); }
  50%  { transform: translate(1px, -1px); }
  75%  { transform: translate(-1px, -1px); }
  100% { transform: translate(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.blink-fast {
  animation: blink 0.12s infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}


.konami-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card);
  padding: 24px 40px;
  border: 1px solid var(--red);
  border-radius: 8px;
  z-index: 9999;
  text-align: center;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 2px;
}

@media screen and (max-width: 640px) {
  .container {
    padding: 24px 16px 48px;
  }

  .logo {
    max-width: 260px;
  }

  .bleed-drips {
    height: 36px;
  }

  .drip {
    width: 2px;
  }

  .member-row {
    padding: 9px 0;
    gap: 10px;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
  }

  .overlay-label {
    font-size: 24px;
  }
}

@media screen and (max-width: 400px) {
  .container {
    padding: 16px 12px 40px;
  }

  .logo {
    max-width: 200px;
  }

  .member-name-link {
    font-size: 13px;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
  }

  .profile-socials {
    gap: 12px;
  }
}
