/* ============================================
   MIDNIGHT SPEAKERS — Main Stylesheet
   Dark Gothic Aesthetic
   ============================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-input: #1a1a1a;
  --text-primary: #e8e8e8;
  --text-secondary: #999999;
  --text-muted: #666666;
  --accent: #8b0000;
  --accent-hover: #a50000;
  --accent-glow: rgba(139, 0, 0, 0.3);
  --border-color: #222222;
  --border-subtle: #1a1a1a;
  --crimson: #dc143c;
  --crimson-dark: #8b0000;
  --font-gothic: 'UnifrakturMaguntia', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 800px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Spacing ---------- */
section {
  padding: 60px 0;
}

/* ---------- Gothic Headers ---------- */
.gothic-title {
  font-family: var(--font-gothic);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header .gothic-title {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.section-header .subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 300;
}


/* ============================================
   HERO SECTION — Full-screen banner
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: #0a0a0a;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: brightness(0.65) contrast(1.1);
}

/* On narrow viewports: auto height based on image aspect ratio, no black gap */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;  /* hero-banner.png is roughly square */
  }

  .hero-image-wrapper img {
    object-fit: cover;
    object-position: center center; /* center keeps Parental Advisory badge visible on mobile */
  }

  .hero-content {
    padding: 0 16px 48px;
  }
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-primary) 0%, rgba(10,10,10,0.5) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Cinematic edge fade — blends hero image into black background on all sides */
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to right,  #000 0%, transparent 22%),
    linear-gradient(to left,   #000 0%, transparent 22%),
    linear-gradient(to bottom, #000 0%, transparent 20%),
    linear-gradient(to top,    #000 0%, transparent 30%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 80px;
}

/* ---------- Live Platform Sync Counter ---------- */
.listener-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.listener-dot {
  width: 6px;
  height: 6px;
  background: var(--crimson);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 8px 3px rgba(220, 20, 60, 0.2); }
}

.listener-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------- Platform Data Info Panel ---------- */
.listener-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0.55;
  transition: opacity 0.25s ease, color 0.25s ease;
  padding: 4px;
  margin: -4px -4px -4px 0;
}

.listener-info svg {
  width: 11px;
  height: 11px;
  display: block;
  flex-shrink: 0;
}

.listener-info:hover,
.listener-info:focus,
.listener-info.active {
  opacity: 1;
  color: var(--text-secondary);
  outline: none;
}

.listener-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  max-width: calc(100vw - 32px); /* prevent overflow on narrow mobile screens */
  box-sizing: border-box;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  padding: 10px 13px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  z-index: 100;
}

.listener-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #2e2e2e;
}

.listener-info:hover .listener-tooltip,
.listener-info:focus .listener-tooltip,
.listener-info.active .listener-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ---------- Scroll Arrow ---------- */
.scroll-arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text-muted);
  opacity: 0.6;
  animation: bounce-arrow 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.scroll-arrow:hover {
  opacity: 1;
  color: var(--text-primary);
}

.scroll-arrow svg {
  width: 28px;
  height: 28px;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* ============================================
   TRACKS SECTION
   ============================================ */
.tracks-section {
  padding-top: 40px;
}

.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: var(--transition);
}

.track-card:hover {
  border-color: #333;
}

.track-card-inner {
  display: flex;
  flex-direction: row;
}

/* ---------- Track Thumbnail ---------- */
.track-thumbnail {
  width: 200px;
  min-height: 200px;
  flex-shrink: 0;
  overflow: hidden;
}

.track-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.track-card:hover .track-thumbnail img {
  filter: brightness(1) contrast(1.08);
  transform: scale(1.03);
}

/* ---------- Track Info ---------- */
.track-info {
  flex: 1;
  padding: 24px 28px;
  min-width: 0;
}

.track-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.track-title {
  font-family: var(--font-gothic);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 2px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.track-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

/* ---------- Custom Audio Player ---------- */
.audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 12px;
}

.play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #333;
  background: var(--bg-input);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.play-btn:hover {
  border-color: #555;
  background: rgba(255, 255, 255, 0.06);
}

.play-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.play-btn.loading {
  opacity: 0.7;
  cursor: wait;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.play-btn .spin {
  animation: spin 0.9s linear infinite;
  display: block;
}

.player-progress-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: #222;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #888;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-bar:hover .progress-fill {
  background: var(--accent-hover);
}

.player-time {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ---------- Track Buttons (Spotify + Lyrics) — stacked vertically ---------- */
.track-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

/* ---------- Spotify Button ---------- */
.spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #333;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  transition: var(--transition);
  margin-bottom: 0;
  text-decoration: none;
}

.spotify-btn:hover {
  border-color: #1DB954;
  color: #1DB954;
}

.spotify-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* ---------- Lyrics Toggle ---------- */
.lyrics-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  padding: 6px 0;
  transition: var(--transition);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lyrics-toggle:hover {
  color: var(--text-secondary);
}

.lyrics-toggle .arrow {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.lyrics-toggle.active .arrow {
  transform: rotate(180deg);
}

.lyrics-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}

.lyrics-content.open {
  max-height: 4000px;
  opacity: 1;
}

.lyrics-text {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-word;       /* Firefox mobile: prevent long words overflowing */
  overflow-wrap: break-word;    /* Standard property — same fix for all browsers */
  line-height: 1.5;
  white-space: normal;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
  font-style: italic;
}

.lyrics-text .stanza {
  margin: 0 0 1.4em 0;
  line-height: 1.5;
}

.lyrics-text .stanza.last {
  margin-bottom: 0;
}


/* ============================================
   CONFESSIONS SECTION
   ============================================ */
.confessions-section {
  padding: 50px 0;
}

.confessions-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 360px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2a var(--bg-card);
}

.confessions-box::-webkit-scrollbar {
  width: 4px;
}

.confessions-box::-webkit-scrollbar-track {
  background: var(--bg-card);
}

.confessions-box::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 2px;
}

.confession-entry {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.confession-entry:last-child {
  border-bottom: none;
}

.confession-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.confession-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}



/* ============================================
   MIDNIGHT SPEAKERS RELICS — Minimal link + lightbox
   ============================================ */

/* Wrapper: centered, subtle spacing between signup and footer */
.merch-link-wrap {
  text-align: center;
  padding: 28px 0 20px;
}

/* The minimal text link — looks like a quiet footnote */
.merch-text-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.merch-text-link:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* Primary label: the brand name */
.merch-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

/* Sublabel: 'Merch' — smaller, more muted, acts as a category hint */
.merch-sublabel {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  line-height: 1;
}

/* Merch Overlay / Lightbox */
.merch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.merch-overlay.active {
  opacity: 1;
  visibility: visible;
}

.merch-overlay-content {
  position: relative;
  max-width: 480px;
  width: 90%;
  padding: 48px 40px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}

.merch-overlay.active .merch-overlay-content {
  transform: translateY(0);
}

.merch-overlay-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.merch-overlay-close:hover {
  color: var(--text-primary);
}

.merch-overlay-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: 0.03em;
}


/* ============================================
   SUBTLE LINKS — Vault, Lore (shared styles)
   ============================================ */
.subtle-link-wrap {
  text-align: center;
  padding: 24px 0 16px;
}

.subtle-text-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.25s ease, color 0.25s ease;
  line-height: 1;
}

.subtle-text-link:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* Subtle Overlay / Lightbox (shared by Vault & Lore) */
.subtle-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.subtle-overlay.active {
  opacity: 1;
  visibility: visible;
}

.subtle-overlay-content {
  position: relative;
  max-width: 440px;
  width: 90%;
  padding: 48px 40px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}

.subtle-overlay.active .subtle-overlay-content {
  transform: translateY(0);
}

.subtle-overlay-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.subtle-overlay-close:hover {
  color: var(--text-primary);
}

.subtle-overlay-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: 0.03em;
  font-style: italic;
}

.subtle-overlay-attr {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.1em;
}


/* ============================================
   SÉANCES SECTION
   ============================================ */
.seances-section {
  padding: 50px 0;
}

.seances-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-style: italic;
  margin-top: 6px;
  line-height: 1.7;
}

.seances-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-card);
}

.seances-list {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.seance-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.seance-row:last-child {
  border-bottom: none;
}

.seance-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.seance-row.past {
  opacity: 0.45;
}

.seance-row.cancelled {
  opacity: 0.35;
}

.seance-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 90px;
  flex-shrink: 0;
}

.seance-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.seance-city {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.seance-venue {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.seance-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.seance-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.seance-status--announced {
  color: var(--text-secondary);
  border: 1px solid #333;
  background: transparent;
}

.seance-status--sold-out {
  color: #aaa;
  border: 1px solid #444;
  background: #1a1a1a;
}

.seance-status--cancelled {
  color: var(--text-muted);
  border: 1px solid #2a2a2a;
  background: transparent;
  text-decoration: line-through;
}

.seance-status--past {
  color: var(--text-muted);
  border: 1px solid #222;
  background: transparent;
}

.seance-ticket-btn {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid #444;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.seance-ticket-btn:hover {
  border-color: #888;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 640px) {
  .seance-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 18px;
  }

  .seance-date {
    min-width: auto;
    width: 100%;
  }

  .seance-details {
    flex: 1;
  }

  .seance-right {
    width: 100%;
    justify-content: flex-start;
  }
}


/* ============================================
   SURRENDER — EMAIL SIGNUP
   ============================================ */
.signup-section {
  padding: 50px 0;
}

.signup-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
}

/* Signup box heading is now a plain paragraph — no gothic title */

.signup-heading {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.signup-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto 12px;
}

.signup-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  /* Set to 16px (1rem) to prevent iOS auto-zoom on input focus. */
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.signup-form input:focus {
  border-color: #444;
}

.signup-form input::placeholder {
  color: var(--text-muted);
}

/* ---------- Surrender button wrapper (holds SVG EKG overlay) ---------- */
.surrender-btn-wrap {
  position: relative;
  /* block so it doesn't shrink the button — button fills its natural width */
  display: block;
  flex-shrink: 0;
}

/* The SVG is absolutely positioned over the button, pointer-events none */
.ekg-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* overflow visible so the EKG spikes can poke outside the button bounds */
  overflow: visible;
  z-index: 2;
}

/* Faint static track — always visible, very dim */
.ekg-track {
  fill: none;
  stroke: rgba(139, 0, 0, 0.15);
  stroke-width: 1;
}

/*
  EKG pulse path animation.

  The <path> traces the full button perimeter (top → right → bottom → left)
  with an EKG spike pattern embedded in the top edge.

  Path total length ≈ 510px (480px rect perimeter + ~30px from the spike excursions).

  stroke-dasharray: [visible segment] [gap]
    - Visible segment = 55px  (covers one full spike cycle: flat + spike + flat)
    - Gap = 455px             (rest of path is invisible)
  So only one spike burst is visible at any time, traveling continuously.

  stroke-dashoffset animates from 510 → 0 (one full loop).
*/
.ekg-pulse {
  fill: none;
  stroke: #8b0000;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 70 641;
  stroke-dashoffset: 711;
  animation: ekg-trace 3.2s linear infinite;
  filter: drop-shadow(0 0 2.5px rgba(139, 0, 0, 0.8));
}

@keyframes ekg-trace {
  0%   { stroke-dashoffset: 711; }
  100% { stroke-dashoffset: 0; }
}

/* On hover: brighter crimson, faster, larger glow, flicker */
.surrender-btn-wrap:hover .ekg-pulse {
  stroke: #dc143c;
  stroke-dasharray: 80 631;
  filter: drop-shadow(0 0 5px rgba(220, 20, 60, 0.95));
  animation: ekg-trace 1.8s linear infinite, flicker 0.3s infinite alternate;
}

.signup-form button {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 0 4px 4px 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.signup-form button:hover {
  background: #2a2a2a;
  border-color: #666;
}

@keyframes flicker {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 0.9; }
}

.signup-fine-print {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

.signup-success {
  display: none;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

.signup-success.visible {
  display: block;
}


/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 50px 0;
}

.about-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.about-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 40px 0 30px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  opacity: 0.7;
  border-radius: 50%;       /* circular shape */
  mix-blend-mode: screen;   /* black background becomes transparent on dark bg */
  transition: opacity 0.3s ease;
  display: block;
}

.footer-logo-img:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-copyright {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}


/* Subtle About page link in footer */
.footer-about-link {
  margin-top: 8px;
}

.footer-subtle-link {
  font-size: 0.62rem;
  color: var(--text-muted);
  opacity: 0.35;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transition: opacity 0.3s ease;
}

.footer-subtle-link:hover {
  opacity: 0.65;
  text-decoration: none;
}


/* ============================================
   FADE-IN ANIMATION
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .section-header .gothic-title {
    font-size: 2rem;
  }

  .track-card-inner {
    flex-direction: column;
  }

  .track-thumbnail {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .track-info {
    padding: 20px;
  }

  .track-title {
    font-size: 1.5rem;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input {
    border-right: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 8px;
  }

  .signup-form button {
    border-radius: 4px;
  }

  .scroll-arrow svg {
    width: 24px;
    height: 24px;
  }
}


/* ============================================
   GOTHIC HEART PUZZLE CAPTCHA
   ============================================ */

/* Overlay */
#captcha-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
}

#captcha-overlay.captcha-visible {
  opacity: 1;
}

#captcha-overlay.captcha-fade-out {
  opacity: 0;
}

/* Modal */
.captcha-modal {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 36px 28px 28px;
  max-width: 420px;
  width: calc(100vw - 32px);
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

.captcha-shake {
  animation: captcha-shake 0.4s ease;
}

@keyframes captcha-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}

/* Header */
.captcha-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.captcha-title {
  font-family: var(--font-gothic);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.2;
}

.captcha-instruction {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0 0 24px;
  font-style: italic;
}

/* Arena — vertical layout: slots on top, pieces below */
.captcha-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

/* Slots container — 2 on top, 1 centered below = triangle */
.captcha-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  justify-items: center;
  width: 100%;
  max-width: 260px;
}

/* Individual drop slot */
.captcha-slot {
  position: relative;
  width: 110px;
  height: 80px;
  border: 1px dashed #2a2a2a;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  background: rgba(255, 255, 255, 0.01);
}

/* Bottom slot spans both columns, centered */
.captcha-slot:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
}

.captcha-slot .slot-svg {
  width: 90px;
  height: 65px;
}

.captcha-slot .slot-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: #333;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  transition: opacity 0.3s ease;
}

/* Slot highlight when piece is dragged near */
.captcha-slot.slot-highlight {
  border-color: #555;
  background: rgba(139, 26, 26, 0.06);
  box-shadow: 0 0 8px rgba(139, 26, 26, 0.15);
}

/* Slot filled state */
.captcha-slot.slot-filled {
  border-color: #3a1515;
  border-style: solid;
  background: rgba(139, 26, 26, 0.04);
}

/* Wrong slot shake */
.captcha-slot.slot-wrong {
  animation: slot-shake 0.4s ease;
  border-color: #4a1a1a;
}

@keyframes slot-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-4px); }
  40%       { transform: translateX(4px); }
  60%       { transform: translateX(-3px); }
  80%       { transform: translateX(3px); }
}

/* Slots complete — pulse glow on all slots */
.slots-complete .captcha-slot {
  border-color: #5a2020;
  animation: heart-pulse 1.2s ease infinite;
}

@keyframes heart-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 26, 26, 0.1); }
  50%       { box-shadow: 0 0 12px 4px rgba(139, 26, 26, 0.15); }
}

/* Pieces container — horizontal row below the slots */
.captcha-pieces {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.captcha-piece {
  cursor: grab;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 6px;
  background: #111;
  transition: border-color 0.2s ease, transform 0.15s ease, opacity 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.captcha-piece:hover {
  border-color: #555;
  transform: scale(1.06);
}

.captcha-piece:active {
  cursor: grabbing;
}

.captcha-piece .piece-svg {
  display: block;
  width: 70px;
  height: 52px;
}

/* Progress dots */
.captcha-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.captcha-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid #333;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.captcha-progress-dot.filled {
  background: #8b1a1a;
  border-color: #a02020;
}

/* Hint text */
.captcha-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.04em;
  margin: 0;
  min-height: 1.2em;
  transition: color 0.3s ease;
}


/* ============================================
   BLOOD PACT SUCCESS LIGHTBOX
   ============================================ */

#blood-pact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(6px);
}

#blood-pact-overlay.blood-pact-visible {
  opacity: 1;
}

#blood-pact-overlay.blood-pact-fade-out {
  opacity: 0;
}

.blood-pact-modal {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 48px 40px 40px;
  max-width: 360px;
  width: calc(100vw - 40px);
  text-align: center;
  position: relative;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
  animation: pact-entrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pact-entrance {
  0%   { transform: scale(0.85) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.blood-pact-heart {
  margin-bottom: 24px;
  animation: heart-beat 1.4s ease infinite;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.08); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.05); }
  56%       { transform: scale(1); }
}

.blood-pact-title {
  font-family: var(--font-gothic);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 14px;
  line-height: 1.25;
}

.blood-pact-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  line-height: 1.5;
}

.blood-pact-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.04em;
  margin: 0;
}

.blood-pact-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #444;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.2s ease;
}

.blood-pact-close:hover {
  color: #888;
}
