/* Card de instalação do PWA no dashboard (docs/pwa-plan.md Fase 3).
   O chrome do card (border/radius/padding/shadow) vem do .arena-card — aqui
   só o que é específico. */

.pwa-install-card {
  position: relative;
  background: var(--green-wash, #eef5f1);
}

.pwa-install-dismiss {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: none;
  border: 0;
  padding: 0.25rem;
  color: var(--text-muted, #6b7a72);
  cursor: pointer;
  line-height: 0;
}

.pwa-install-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-deep, #1B4332);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.pwa-install-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.pwa-install-sub {
  font-size: 0.82rem;
  color: var(--text-muted, #6b7a72);
  margin-bottom: 0.8rem;
}

.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-deep, #1B4332);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.pwa-install-btn:active { transform: scale(0.98); }

/* Dark theme: --green-deep vira verde CLARO (#A7D5B8) — texto branco sumiria.
   Botão e ícone trocam pra texto escuro sobre o verde claro. */
[data-theme="dark"] .arena-body .pwa-install-btn,
[data-theme="dark"] .arena-body .pwa-install-icon {
  color: #10231b;
}

/* ── Tutorial iOS (bottom sheet) ── */

.pwa-install-tutorial {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.pwa-install-tutorial-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.pwa-install-tutorial-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-deep, #fff);
  border-radius: 18px 18px 0 0;
  padding: 1.4rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}

.pwa-install-tutorial-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.pwa-install-tutorial-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.pwa-install-tutorial-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pwa-install-tutorial-steps svg { vertical-align: -2px; }

.pwa-install-tutorial-step {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-deep, #1B4332);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .arena-body .pwa-install-tutorial-step {
  color: #10231b;
}

.pwa-install-tutorial-close {
  width: 100%;
  background: var(--green-deep, #1B4332);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

[data-theme="dark"] .arena-body .pwa-install-tutorial-close {
  color: #10231b;
}

/* ── Botão "Me avisa" no game bar (Fase 4a) ── */

.game-bar-remind-btn {
  align-self: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted, #6b7a72);
  cursor: pointer;
  white-space: nowrap;
}

.game-bar-remind-btn:disabled {
  opacity: 0.7;
  cursor: default;
}
