.lead-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  background:
    linear-gradient(90deg, rgba(255, 138, 0, 0.16), rgba(217, 74, 156, 0.16), rgba(74, 106, 224, 0.16)),
    rgba(10, 8, 14, 0.82);
  color: #1A1815;
}

.lead-gate[hidden] {
  display: none;
}

.lead-gate__panel {
  width: min(720px, 100%);
  padding: clamp(26px, 5vw, 44px);
  box-sizing: border-box;
  background: #F8F1E7;
  border: 1px solid rgba(26, 24, 21, 0.2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  font-family: var(--font-jp, 'LINE Seed Sans', 'Noto Sans JP', system-ui, sans-serif);
}

.lead-gate__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D94A9C;
}

.lead-gate__panel h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.28;
  letter-spacing: 0;
  color: #1A1815;
}

.lead-gate__lead {
  margin: 20px 0 0;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.85;
  color: #3D362D;
}

.lead-gate__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.lead-gate__facts span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(26, 24, 21, 0.18);
  padding: 6px 10px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.35);
}

.lead-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 30px 0 0;
}

.lead-gate__primary,
.lead-gate__secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.lead-gate__primary {
  padding: 13px 22px;
  border: 1px solid #1A1815;
  background: #1A1815;
  color: #F8F1E7;
}

.lead-gate__primary:hover {
  background: transparent;
  color: #1A1815;
}

.lead-gate__secondary {
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #3D362D;
  cursor: pointer;
}

.lead-gate__secondary:hover {
  color: #D94A9C;
}

.lead-gate__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(26, 24, 21, 0.58);
}

.lead-gate-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482501;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 8, 14, 0.82);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  pointer-events: none;
}

body.lead-gate-open deck-stage {
  filter: brightness(0.52);
}

@media (max-width: 640px) {
  .lead-gate {
    padding: 16px;
    align-items: end;
  }

  .lead-gate__panel {
    padding: 24px 20px;
  }

  .lead-gate__actions {
    align-items: stretch;
  }

  .lead-gate__primary,
  .lead-gate__secondary {
    width: 100%;
  }

  .lead-gate-badge {
    right: 12px;
    bottom: 12px;
  }
}

@media print {
  .lead-gate,
  .lead-gate-badge {
    display: none !important;
  }

  deck-stage > section:nth-of-type(n + 6) {
    display: none !important;
  }
}
