/* ─── Club pages ──────────────────────────────────────────── */

.history-content { position: relative; }

.history-easter-egg {
  position: absolute;
  top: .35rem;
  right: max(1.5rem, calc((100vw - 1180px) / 2 + 1.5rem));
  z-index: 2;
  width: 2.75rem;
  padding: .35rem;
  border: 0;
  background: transparent;
  color: #c2ac80;
  cursor: pointer;
  opacity: .62;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

.history-easter-egg:hover,
.history-easter-egg:focus-visible {
  color: var(--gold);
  opacity: 1;
  outline: 2px solid currentColor;
  outline-offset: 4px;
  transform: scale(1.08);
}

.history-easter-egg svg { display: block; width: 100%; height: auto; }

.history-crawl-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020204;
  color: #f5c94f;
  perspective: 22rem;
}

.history-crawl-overlay[hidden] { display: none; }

.history-crawl-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 2;
  border: 1px solid rgba(245, 201, 79, .7);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  color: #f5c94f;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.history-crawl-close:hover,
.history-crawl-close:focus-visible { background: rgba(245, 201, 79, .15); }

.history-crawl {
  width: 100vw;
  max-width: 90rem;
  padding: 0;
  transform: rotateX(25deg) translateY(100vh) scale(1.15);
  transform-origin: 50% 10%;
  text-align: center;
  font-weight: 400;
  animation: history-crawl 240s linear forwards;
}

.history-crawl-intro {
  margin-bottom: 2.5rem;
  text-align: center;
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-crawl-entry {
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}
.history-crawl-entry h2 {
  margin-bottom: 1rem;
  color: inherit;
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}
.history-crawl-entry p {
  color: inherit;
  font-size: clamp(1.35rem, 2.6vw, 2.4rem);
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

@keyframes history-crawl {
  from { transform: rotateX(25deg) translateY(100vh) scale(1.15); }
  to { transform: rotateX(25deg) translateY(-260%) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .history-crawl { animation: none; transform: rotateX(25deg) scale(1.15); max-height: 80vh; overflow-y: auto; }
}

.club-shield-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .club-shield-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #clubschild,
  #clublied { padding: 3rem 0 !important; }

  #clubschild > .container > div[style*="grid-template-columns"],
  #clublied > .container > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
  }

  #clubschild .card,
  #clublied .card {
    padding: 1.25rem !important;
  }

  #clubschild .timeline { padding-left: 1.5rem; }
  #clubschild .timeline-item { padding: 1.1rem; }
  #clubschild .timeline-item > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .9rem !important;
  }
  #clubschild .timeline-item img { justify-self: center; }

  #clublied .song-meta { gap: .5rem; }
  #clublied .song-meta span {
    max-width: 100%;
    font-size: .75rem;
    letter-spacing: .03em;
    overflow-wrap: anywhere;
  }

  #clublied .lyrics-block {
    padding: 1.1rem;
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }
}
