/* REV Section - Matching MATCH layout exactly */

.rev-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050505;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  overflow-y: auto;
}

.rev-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Sepia overlay */
.rev-overlay::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(112, 66, 20, 0.20);
  pointer-events: none;
  z-index: 1;
}

.rev-section {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Close button */
.rev-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #050505;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
}

/* Title */
.rev-title-inline {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 5rem;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  margin: 0 0 40px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.rev-title-inline:hover {
  opacity: 0.8;
}

/* Manifesto */
.rev-manifesto {
  font-family: 'Syne Mono', monospace;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 60px;
}

.rev-manifesto.rev-closing {
  margin-top: 60px;
  margin-bottom: 0;
}

.rev-line {
  font-family: 'Syne Mono', monospace;
  margin: 0.6em 0;
  opacity: 0;
  transform: translateY(16px);
}

.rev-line.rev-finisher {
  font-family: 'Syne Mono', monospace;
  margin-top: 2em;
  font-weight: 700;
  letter-spacing: 0.15em;
}

@keyframes revFadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Audio section (replaces table in MATCH) */
.rev-audio-section {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 60px 40px;
  text-align: center;
}

.rev-display {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 8rem;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  margin: 0;
  user-select: none;
  opacity: 0;
  transform: translateY(36px);
}

.rev-display.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.52s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.52s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rev-display:hover {
  opacity: 0.8;
}

.rev-instruction {
  font-family: 'Syne Mono', monospace;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
}

.rev-instruction.visible {
  opacity: 1;
  transition: opacity 0.5s ease 0.3s;
}

/* Mobile */
@media (max-width: 860px) {
  .rev-title-inline {
    font-size: 3rem;
  }

  .rev-display {
    font-size: 4rem;
  }

  .rev-audio-section {
    padding: 40px 20px;
  }
}
