/* Signal Run beta gate // desktop prototype access screen */

.development-gate {
  position: absolute;
  inset: 0;
  z-index: 48;
  display: none;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(87, 255, 154, 0.12), transparent 34%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 4px
    ),
    rgba(0, 6, 10, 0.88);
  pointer-events: auto;
}

.development-gate.is-active {
  display: grid;
}

.signal-game-modal.development-gate-active #ui,
.signal-game-modal.development-gate-active #questionPanel,
.signal-game-modal.development-gate-active #overlay,
.signal-game-modal.development-gate-active #landingScreen,
.signal-game-modal.development-gate-active .boss-banner,
.signal-game-modal.development-gate-active .choice-reaction-window {
  pointer-events: none;
}

.development-gate-card {
  width: min(92%, 560px);
  padding: 24px;
  border: 1px solid rgba(125, 249, 255, 0.56);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(5, 18, 28, 0.97), rgba(1, 5, 9, 0.98));
  box-shadow:
    0 0 32px rgba(125, 249, 255, 0.14),
    inset 0 0 24px rgba(87, 255, 154, 0.08);
  text-align: center;
}

.development-gate-kicker {
  margin: 0 0 8px;
  color: #ffd86d;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.development-gate-card h3 {
  margin: 0 0 16px;
  color: #7df9ff;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(1.05rem, 3vw, 1.55rem);
  line-height: 1.25;
  text-shadow: 0 0 12px rgba(125, 249, 255, 0.4);
}

.development-gate-copy,
.development-gate-note,
.development-gate-status,
.development-gate-message {
  margin: 8px auto;
  max-width: 44ch;
  color: #e9f7ff;
  font-family: "Share Tech Mono", "Courier New", monospace;
  line-height: 1.35;
}

.development-gate-status {
  display: inline-block;
  margin: 12px auto 16px;
  padding: 6px 10px;
  border: 1px solid rgba(87, 255, 154, 0.45);
  border-radius: 999px;
  color: #57ff9a;
  background: rgba(87, 255, 154, 0.08);
}

.development-gate-label {
  display: block;
  margin: 8px 0 6px;
  color: #ffd86d;
  font-family: "Share Tech Mono", "Courier New", monospace;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.development-gate-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(125, 249, 255, 0.52);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(0, 8, 14, 0.92);
  color: #e9f7ff;
  font: 1rem/1.2 "Share Tech Mono", "Courier New", monospace;
  letter-spacing: 0.06em;
  outline: none;
  box-shadow: inset 0 0 16px rgba(125, 249, 255, 0.06);
}

.development-gate-input:focus {
  border-color: #57ff9a;
  box-shadow:
    0 0 0 2px rgba(87, 255, 154, 0.18),
    inset 0 0 16px rgba(125, 249, 255, 0.08);
}

.development-gate-message {
  min-height: 1.35em;
  color: #ffd6dd;
}

.development-gate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.development-gate-actions button {
  min-height: 44px;
  border: 1px solid rgba(125, 249, 255, 0.55);
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(30, 79, 126, 0.92), rgba(3, 18, 34, 0.96));
  color: #e9f7ff;
  font: 0.86rem/1.15 "Press Start 2P", "Courier New", monospace;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: inset 0 0 18px rgba(125, 249, 255, 0.08);
}

.development-gate-actions button:hover,
.development-gate-actions button:focus {
  border-color: #ffd86d;
  color: #ffd86d;
}

.development-gate-return {
  background: rgba(0, 8, 14, 0.92) !important;
}

@media (max-width: 680px) {
  .development-gate-card {
    width: 100%;
    padding: 18px;
  }

  .development-gate-actions {
    grid-template-columns: 1fr;
  }
}


/* v1 safe high-score note:
   The gate only receives pointer events while .is-active is present.
   When the gate is hidden, it is display:none and cannot cover the high-score button. */
.development-gate[hidden] {
  display: none !important;
  pointer-events: none !important;
}
