/* Fuel gate modal (nav badge styles live in nav-auth.css) */

.fuel-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.fuel-gate-modal.hidden {
  display: none !important;
}

.fuel-gate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.fuel-gate-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  padding: 1.35rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--feed-border, #e5e5e5);
  background: var(--feed-bg, #fafaf8);
  color: var(--feed-fg, #1a1a1a);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

body.challenge-theme .fuel-gate-modal__card {
  border-color: var(--challenge-border, #222);
  background: var(--challenge-bg, #0a0a0a);
  color: var(--challenge-fg, #e8e8e8);
}

.fuel-gate-modal__card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 1.35rem;
  line-height: 1.25;
}

.fuel-gate-modal__card p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--feed-muted, #64748b);
}

body.challenge-theme .fuel-gate-modal__card p {
  color: var(--challenge-muted, #888);
}

.fuel-gate-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.fuel-gate-modal__actions a,
.fuel-gate-modal__actions .btn-fuel-primary {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-mono, 'Space Mono', ui-monospace, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  min-height: 44px;
  line-height: 1.3;
  box-sizing: border-box;
}

.fuel-gate-modal__actions .btn-fuel-primary {
  background: #f59e0b;
  color: #111;
  border: 1px solid #d97706;
}

.fuel-gate-modal__actions .btn-fuel-secondary {
  background: transparent;
  color: #6366f1;
  border: 1px solid #6366f1;
}

.fuel-gate-modal__actions .btn-fuel-dismiss {
  background: transparent;
  color: inherit;
  border: 1px solid var(--feed-border, #e5e5e5);
  cursor: pointer;
  font-family: var(--font-mono, 'Space Mono', ui-monospace, monospace);
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
  min-height: 44px;
  border-radius: 6px;
}

body.challenge-theme .fuel-gate-modal__actions .btn-fuel-dismiss {
  border-color: var(--challenge-border, #222);
}

.deb-fuel-hint {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e5e5);
  background: #f8fafc;
  font-family: var(--font-mono, 'Space Mono', ui-monospace, monospace);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--body-text, #374151);
}

.deb-fuel-hint.is-empty {
  border-color: rgba(204, 31, 31, 0.35);
  background: #fef2f2;
  color: #991b1b;
}

.deb-fuel-hint a {
  color: #6366f1;
  font-weight: 700;
}

.lab-widget .lw-fuel-remaining {
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0.35rem 0 0;
}
