/* =====================================================================
   pratique-engine.css — Estilos do Motor de Missões F5
   Versão: 1.0.0 — 25/08/2026
   Identidade: laboratório digital energético — azul-marinho + ciano + amarelo F5
   ===================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────── */
.pe-root {
  --pe-bg         : #0a0f1e;
  --pe-surface    : #111827;
  --pe-surface2   : #1a2235;
  --pe-border     : rgba(56, 189, 248, 0.14);
  --pe-blue       : #0ea5e9;
  --pe-cyan       : #22d3ee;
  --pe-yellow     : #facc15;
  --pe-green      : #22c55e;
  --pe-red        : #f87171;
  --pe-text       : #f0f6ff;
  --pe-text-muted : #8ba3c0;
  --pe-radius     : 12px;
  --pe-radius-sm  : 8px;
  --pe-shadow     : 0 4px 24px rgba(0,0,0,.45);
  --pe-transition : 0.22s ease;
  --pe-font       : 'Barlow', system-ui, sans-serif;
}

/* ── Reset / container ──────────────────────────────────────────────── */
.pe-root,
.pe-root *,
.pe-root *::before,
.pe-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.pe-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--pe-bg);
  color: var(--pe-text);
  font-family: var(--pe-font);
  font-size: 1rem;
  line-height: 1.55;
  padding-bottom: 2rem;
}

/* Quando em tela cheia via Fullscreen API */
.pe-root:fullscreen,
.pe-root:-webkit-full-screen,
.pe-root:-moz-full-screen {
  overflow-y: auto;
}

/* ── Barra superior ─────────────────────────────────────────────────── */
.pe-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--pe-surface);
  border-bottom: 1px solid var(--pe-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.pe-topbar-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pe-title-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pe-cyan);
  letter-spacing: 0.02em;
}

.pe-subtitle-text {
  font-size: 0.78rem;
  color: var(--pe-text-muted);
}

.pe-topbar-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Cronômetro ─────────────────────────────────────────────────────── */
.pe-timer {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pe-text-muted);
  min-width: 3rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Botões do topbar ───────────────────────────────────────────────── */
.pe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--pe-radius-sm);
  cursor: pointer;
  font-family: var(--pe-font);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--pe-transition), color var(--pe-transition), opacity var(--pe-transition);
  text-decoration: none;
  white-space: nowrap;
}

.pe-btn:focus-visible {
  outline: 2px solid var(--pe-cyan);
  outline-offset: 2px;
}

.pe-btn-icon {
  width: 36px;
  height: 36px;
  background: var(--pe-surface2);
  color: var(--pe-text-muted);
  padding: 0;
}

.pe-btn-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pe-btn-icon:hover,
.pe-btn-icon:focus-visible {
  background: var(--pe-surface2);
  color: var(--pe-cyan);
}

.pe-btn-icon.is-muted {
  color: var(--pe-red);
}

.pe-btn-exit {
  padding: 0.4rem 0.9rem;
  background: transparent;
  color: var(--pe-text-muted);
  border: 1px solid var(--pe-border);
}

.pe-btn-exit:hover,
.pe-btn-exit:focus-visible {
  background: rgba(248,113,113,.12);
  color: var(--pe-red);
  border-color: var(--pe-red);
}

/* Botões de ação grandes */
.pe-btn-primary {
  padding: 0.75rem 1.5rem;
  background: var(--pe-yellow);
  color: #0a0f1e;
  border-radius: var(--pe-radius);
  font-size: 0.95rem;
}

.pe-btn-primary:hover,
.pe-btn-primary:focus-visible {
  background: #fde047;
}

.pe-btn-secondary {
  padding: 0.75rem 1.5rem;
  background: var(--pe-surface2);
  color: var(--pe-text);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius);
  font-size: 0.95rem;
}

.pe-btn-secondary:hover,
.pe-btn-secondary:focus-visible {
  border-color: var(--pe-cyan);
  color: var(--pe-cyan);
}

.pe-btn-hint {
  padding: 0.55rem 1.1rem;
  background: transparent;
  color: var(--pe-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--pe-radius-sm);
}

.pe-btn-hint:hover,
.pe-btn-hint:focus-visible {
  background: rgba(34, 211, 238, 0.08);
  border-color: var(--pe-cyan);
}

.pe-btn-restart {
  padding: 0.55rem 1.1rem;
  background: transparent;
  color: var(--pe-text-muted);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius-sm);
}

.pe-btn-restart:hover,
.pe-btn-restart:focus-visible {
  color: var(--pe-text);
  border-color: var(--pe-text-muted);
}

/* ── Barra de progresso ─────────────────────────────────────────────── */
.pe-progress-wrap {
  height: 4px;
  background: var(--pe-surface2);
  position: relative;
  overflow: hidden;
}

.pe-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pe-blue), var(--pe-cyan));
  transition: width 0.4s ease;
  border-radius: 0 2px 2px 0;
}

.pe-progress-label {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: var(--pe-text-muted);
  padding: 0.35rem 0;
  letter-spacing: 0.04em;
}

/* ── Área central (stage) ───────────────────────────────────────────── */
.pe-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.8rem 1.2rem;
  width: 100%;
  overflow-y: auto;
}

/* ── Card de questão ────────────────────────────────────────────────── */
.pe-question-card {
  width: 100%;
  max-width: 680px;
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius);
  padding: 1.1rem 1.4rem 1rem;
  box-shadow: var(--pe-shadow);
  margin: 0.2rem auto;
}

.pe-q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.pe-q-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pe-cyan);
  text-transform: uppercase;
}

.pe-q-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: #fef08a;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Timer por questão ──────────────────────────────────────────────── */
.pe-qtimer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.pe-qtimer-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.pe-qtimer-fill {
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: var(--pe-cyan);
  transition: width 0.9s linear, background-color 0.4s ease;
  transform-origin: left center;
}

/* Últimos 50% do tempo — amarelo */
.pe-qtimer-fill.pe-qtimer-warning {
  background: var(--pe-yellow);
}

/* Últimos 25% do tempo — vermelho pulsante */
.pe-qtimer-fill.pe-qtimer-urgent {
  background: var(--pe-red);
}

.pe-qtimer-num {
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--pe-text-muted);
  min-width: 2.6rem;
  text-align: right;
  transition: color 0.3s ease;
}

.pe-qtimer-num.pe-qtimer-num-warning {
  color: var(--pe-yellow);
}

.pe-qtimer-num.pe-qtimer-num-urgent {
  color: var(--pe-red);
  animation: pe-pulse-num 0.5s ease-in-out infinite alternate;
}

@keyframes pe-pulse-num {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* Feedback de tempo esgotado */
.pe-feedback--timeout {
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: #fdba74;
}

/* ── Bloco de destaque da pergunta ──────────────────────────────────── */
.pe-q-box {
  background: linear-gradient(145deg, #0e223d 0%, #081628 100%);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.pe-q-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--pe-cyan), var(--pe-yellow));
  border-radius: 4px 0 0 4px;
}

.pe-q-text {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ── Opções ─────────────────────────────────────────────────────────── */
.pe-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pe-option {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.15rem;
  background: rgba(13, 27, 49, 0.75);
  border: 1.5px solid rgba(56, 189, 248, 0.16);
  border-radius: 12px;
  color: #e2e8f0;
  font-family: var(--pe-font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.18s ease;
  min-height: 52px;
}

.pe-opt-letter {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--pe-cyan);
  font-weight: 800;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  transition: all 0.18s ease;
}

.pe-opt-text {
  flex: 1;
  line-height: 1.4;
}

.pe-option:hover:not(:disabled) {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateX(4px);
}

.pe-option:hover:not(:disabled) .pe-opt-letter {
  background: var(--pe-cyan);
  color: #08111e;
  border-color: var(--pe-cyan);
}

.pe-option:focus-visible {
  outline: 2px solid var(--pe-cyan);
  outline-offset: 2px;
}

.pe-option:disabled {
  cursor: default;
  opacity: 0.65;
}

.pe-option--correct {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: var(--pe-green) !important;
  color: #86efac !important;
  opacity: 1 !important;
}

.pe-option--correct .pe-opt-letter {
  background: var(--pe-green) !important;
  color: #08111e !important;
  border-color: var(--pe-green) !important;
  font-weight: 900;
}

.pe-option--wrong {
  background: rgba(248, 113, 113, 0.15) !important;
  border-color: var(--pe-red) !important;
  color: #fca5a5 !important;
  opacity: 1 !important;
}

.pe-option--wrong .pe-opt-letter {
  background: var(--pe-red) !important;
  color: #ffffff !important;
  border-color: var(--pe-red) !important;
  font-weight: 900;
}

/* ── Feedback ───────────────────────────────────────────────────────── */
.pe-feedback {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--pe-radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pe-feedback--correct {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.pe-feedback--wrong {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

/* ── Área de dica ───────────────────────────────────────────────────── */
.pe-hint-area {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pe-hint-text {
  display: block;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: var(--pe-radius-sm);
  color: #fef08a;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  line-height: 1.5;
}

/* ── Rodapé ─────────────────────────────────────────────────────────── */
.pe-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  flex-wrap: wrap;
}

/* ── Tela de resultado ──────────────────────────────────────────────── */
.pe-result {
  width: 100%;
  max-width: 620px;
  text-align: center;
  padding: 2.5rem 2rem;
}

.pe-result-badge {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 18px rgba(250,204,21,.5));
}

.pe-result-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--pe-yellow);
  margin-bottom: 0.5rem;
}

.pe-result-sub {
  color: var(--pe-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.pe-result-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pe-stat {
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 120px;
}

.pe-stat span {
  font-size: 0.78rem;
  color: var(--pe-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pe-stat strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pe-cyan);
}

.pe-result-skill {
  font-size: 0.95rem;
  color: var(--pe-text-muted);
  margin-bottom: 2rem;
  padding: 0.9rem 1.2rem;
  background: var(--pe-surface);
  border-radius: var(--pe-radius-sm);
  border: 1px solid var(--pe-border);
  display: inline-block;
}

.pe-result-skill strong {
  color: var(--pe-text);
}

.pe-result-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Responsivo — Tablet (≤ 768px) ──────────────────────────────────── */
@media (max-width: 768px) {
  .pe-stage {
    padding: 1.5rem 1rem;
    justify-content: flex-start;
    align-items: stretch;
  }

  .pe-question-card {
    max-width: 100%;
  }

  .pe-result {
    max-width: 100%;
    padding: 2rem 1rem;
  }

  .pe-result-stats {
    gap: 0.75rem;
  }

  .pe-result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pe-btn-primary,
  .pe-btn-secondary {
    text-align: center;
    justify-content: center;
  }
}

/* ── Responsivo — Mobile (≤ 520px) ──────────────────────────────────── */
@media (max-width: 520px) {

  /* Topbar: compacto, só o essencial */
  .pe-topbar {
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }

  .pe-topbar-title {
    flex: 1;
    min-width: 0;
  }

  .pe-title-text {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }

  .pe-subtitle-text { display: none; } /* economiza espaço */

  /* Esconde botão de tela cheia no mobile (irrelevante) */
  .pe-btn-icon[aria-label*="tela cheia"],
  .pe-btn-icon[aria-label*="Sair da tela"] {
    display: none;
  }

  /* Timer e botão sair menores */
  .pe-timer {
    font-size: 0.78rem;
    min-width: 2.2rem;
  }

  .pe-btn-exit {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  .pe-btn-icon {
    width: 32px;
    height: 32px;
  }

  /* Barra de progresso + label */
  .pe-progress-label {
    font-size: 0.68rem;
    padding: 0.25rem 0;
  }

  /* Stage */
  .pe-stage {
    padding: 1rem 0.85rem 0.5rem;
  }

  /* Card da questão */
  .pe-question-card {
    padding: 1.1rem 0.95rem 1rem;
    border-radius: 10px;
  }

  /* Badge */
  .pe-q-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Timer da questão */
  .pe-qtimer {
    margin-bottom: 0.85rem;
  }

  .pe-qtimer-bar { height: 7px; }

  .pe-qtimer-num {
    font-size: 0.75rem;
    min-width: 2.2rem;
  }

  /* Bloco de destaque da questão */
  .pe-q-box {
    padding: 1rem 1.1rem;
    margin-bottom: 1.1rem;
    border-radius: 12px;
  }

  .pe-q-text {
    font-size: 0.98rem;
    line-height: 1.48;
  }

  /* Opções — alvos grandes para toque (min 52px) */
  .pe-options {
    gap: 0.5rem;
  }

  .pe-option {
    font-size: 0.88rem;
    padding: 0.75rem 0.85rem;
    min-height: 52px;
    gap: 0.7rem;
    text-align: left;
    line-height: 1.4;
    /* Remove efeito de tilt no toque — não faz sentido sem hover */
    transform: none !important;
  }

  /* Feedback */
  .pe-feedback {
    font-size: 0.85rem;
    padding: 0.7rem 0.85rem;
    margin-top: 0.75rem;
  }

  /* Dica */
  .pe-hint-area {
    padding: 0 0.85rem;
  }

  .pe-hint-text {
    font-size: 0.85rem;
    padding: 0.7rem 0.85rem;
  }

  /* Rodapé — botões empilhados, full width */
  .pe-footer {
    padding: 0.85rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .pe-btn-hint,
  .pe-btn-restart {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 0.88rem;
  }

  /* Resultado */
  .pe-result {
    padding: 1.5rem 0.85rem;
    text-align: center;
  }

  .pe-result-badge { font-size: 2.8rem; }

  .pe-result-title { font-size: 1.5rem; }

  .pe-result-sub {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
  }

  .pe-result-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .pe-stat {
    flex: 1 1 calc(33% - 0.6rem);
    min-width: 90px;
    padding: 0.65rem 0.5rem;
  }

  .pe-stat span { font-size: 0.65rem; }
  .pe-stat strong { font-size: 1.1rem; }

  .pe-result-skill {
    font-size: 0.85rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1.25rem;
  }

  .pe-result-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .pe-btn-primary,
  .pe-btn-secondary {
    min-height: 52px;
    font-size: 0.95rem;
    justify-content: center;
  }
}

/* ── Responsivo — Mobile pequeno (≤ 360px) ───────────────────────────── */
@media (max-width: 360px) {
  .pe-title-text { max-width: 110px; }

  .pe-q-text { font-size: 0.92rem; }

  .pe-option {
    font-size: 0.85rem;
    padding: 0.8rem 0.85rem;
  }

  .pe-stat { flex: 1 1 100%; }
}


/* ── Redução de movimento ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pe-option,
  .pe-progress-fill,
  .pe-qtimer-fill,
  .pe-btn {
    transition: none !important;
    animation: none !important;
  }

  .pe-qtimer-fill.pe-qtimer-urgent,
  .pe-qtimer-num.pe-qtimer-num-urgent {
    animation: none !important;
  }
}

/* ── Modal Customizado de Confirmação ───────────────────────────────── */
.pe-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 8, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: peFadeIn 0.2s ease-out forwards;
}

.pe-modal-overlay.pe-modal-closing {
  animation: peFadeOut 0.2s ease-in forwards;
}

.pe-modal {
  background: #0d1a2d;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 211, 238, 0.1);
  transform: scale(0.95);
  animation: peScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pe-modal-closing .pe-modal {
  animation: peScaleDown 0.18s ease-in forwards;
}

.pe-modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.2);
}

.pe-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f0f6ff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.pe-modal-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 1.75rem;
}

.pe-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pe-modal-btn-stay {
  background: #facc15;
  color: #0a0f1e;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  box-shadow: 0 4px 15px rgba(250, 204, 21, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pe-modal-btn-stay:hover {
  background: #fde047;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
}

.pe-modal-btn-leave {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pe-modal-btn-leave:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fee2e2;
  border-color: rgba(239, 68, 68, 0.55);
}

@keyframes peFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes peFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes peScaleUp {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes peScaleDown {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.92); }
}
