/* ===== DIMENSION GATE BUTTON =====
 * Appears after About section fully loads.
 * Flashing border + glow to signal interactivity.
 */

#gate-wrapper {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 4vh;
  opacity: 0;
  pointer-events: none;
}

#gate-wrapper.is-active #gate-btn {
  pointer-events: auto;
}

/* Horizontal accent lines flanking the button */
.gate-line {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-50), transparent);
  animation: gate-line-pulse 2.4s ease-in-out infinite;
}

/* The button */
#gate-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 56px;
  margin: 20px 0;
  background: rgb(var(--accent) / 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-40);
  color: var(--accent-hex);
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
  animation: gate-flash 2s ease-in-out infinite;
}

#gate-btn:hover,
#gate-btn:focus-visible {
  box-shadow:
    0 0 30px rgb(var(--accent) / 0.25),
    0 0 60px rgb(var(--accent) / 0.1),
    inset 0 0 20px rgb(var(--accent) / 0.06);
}

#gate-btn:hover {
  background: rgb(var(--accent) / 0.12);
  border-color: var(--accent-hex);
  transform: scale(1.04);
}

#gate-btn:focus-visible {
  outline: 2px solid var(--accent-hex);
  outline-offset: 4px;
}

/* Label */
.gate-label {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgb(var(--accent) / 0.5);
}

/* Hint text */
.gate-hint {
  font-family: var(--font-headline);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgb(var(--accent) / 0.5);
  animation: gate-hint-blink 1.2s step-end infinite;
}

/* Corner accents: see .btn-bracketed in effects.css */

/* Flashing animation — pulses the border and glow */
@keyframes gate-flash {
  0%, 100% {
    border-color: var(--accent-35);
    box-shadow:
      0 0 10px rgb(var(--accent) / 0.08),
      0 0 30px rgb(var(--accent) / 0.04);
  }
  50% {
    border-color: var(--accent-hex);
    box-shadow:
      0 0 24px rgb(var(--accent) / 0.2),
      0 0 60px rgb(var(--accent) / 0.1),
      0 0 100px rgb(var(--accent) / 0.04);
  }
}

/* Blinking hint text */
@keyframes gate-hint-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Lines pulse in sync with button */
@keyframes gate-line-pulse {
  0%, 100% { opacity: 0.4; width: 200px; }
  50% { opacity: 1; width: 240px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #gate-btn {
    animation: none;
    border-color: var(--accent-50);
    box-shadow: 0 0 20px rgb(var(--accent) / 0.15);
  }
  .gate-hint { animation: none; }
  .gate-line { animation: none; }
}
