/* =========================================================
   Dashboard sellability — declutter + first-win + foco
   Escopo: body.dashboard. Não toca PvP/matchmaking.
========================================================= */

/* -- Menos ruído no 1º viewport -- */
body.dashboard .combat-mode-rail__kicker {
  display: none;
}

/* Mantém badge Free/Premium/Key; esconde só o chip de Sabedoria (ruído). */
body.dashboard .player-hero__sabedoria {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}

body.dashboard .player-hero__plan-sab {
  gap: 8px;
  align-items: center;
}

body.dashboard #sabedoriaBox {
  display: none;
}

body.dashboard .player-hero__actions .account-cta-btn {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: none;
  opacity: 0.92;
}

/* Contexto do último duelo: uma linha, sem placar denso */
body.dashboard .dash-context-card .dash-context-series,
body.dashboard .dash-context-card .dash-context-limit {
  display: none;
}

body.dashboard .dash-context-card {
  padding: 12px 14px 12px;
  margin-bottom: 10px;
}

body.dashboard .dash-context-headline {
  font-size: 15px;
}

body.dashboard .dash-context-subline {
  font-size: 13px;
  margin-top: 4px;
}

/* Ritual + treino: menos padding competindo */
body.dashboard .daily-ritual {
  margin-bottom: 10px;
}

body.dashboard .training-refine-label {
  font-size: 11px;
  opacity: 0.75;
}

/* Banner de instalar: não compete com first-win */
body.dashboard:has(#pnvFirstWinGuide:not([hidden])) #installAppBanner {
  display: none !important;
}

/* Spotlight: host vazio não empurra o hero */
body.dashboard .pnv-rank-spotlight-host:empty + #installAppBanner + #setPasswordBanner + .card.dashboard-main-card,
body.dashboard .pnv-rank-spotlight-host:empty ~ .card.dashboard-main-card.dashboard-hero {
  margin-top: 50px;
}

/* Próximo movimento (leve + soft minimize) */
.pnv-prox {
  position: relative;
  margin: 0 0 12px;
  padding: 12px 36px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background: linear-gradient(180deg, #ffffff, #fafbff);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.pnv-prox__dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
}

.pnv-prox__kicker {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6366f1;
  opacity: 0.9;
}

.pnv-prox__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pnv-prox__row {
  margin: 0;
}

.pnv-prox__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  text-decoration: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pnv-prox__action--primary {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(251, 191, 36, 0.12);
  color: #92400e;
}

.pnv-prox__action--primary:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
}

.pnv-prox__action--ghost {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: transparent;
  color: #4338ca;
}

.pnv-prox__action--ghost:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.28);
}

.pnv-prox__action-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.pnv-prox__action-detail {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.72;
  line-height: 1.3;
}

.pnv-prox__row--meta {
  padding: 2px 4px 0;
}

.pnv-prox__meta {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}

.pnv-prox-mini .pnv-soft-mini__label {
  color: #4f46e5;
}

/* -- First-win (guia <2 min) -- */
.pnv-first-win {
  position: relative;
  margin: 0 0 12px;
  padding: 14px 40px 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(20, 184, 166, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  animation: pnvFirstWinIn 0.35s ease;
}

@keyframes pnvFirstWinIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pnv-first-win__kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f766e;
}

.pnv-first-win__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
}

.pnv-first-win__lead {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.68);
  font-weight: 600;
}

.pnv-first-win__cta {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
}

.pnv-first-win__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pnv-first-win__actions .pnv-first-win__cta {
  width: auto;
  flex: 1 1 140px;
  margin-top: 8px;
  text-align: center;
}

.pnv-first-win__cta--secondary {
  color: #0f766e;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.35);
  box-shadow: none;
}

.pnv-first-win__cta:active {
  transform: translateY(1px);
}

/* Minimizar ✕ compartilhado (first-win, foco) */
.pnv-soft-dismiss,
.pnv-first-win__dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  color: #475569;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.pnv-soft-dismiss:hover,
.pnv-first-win__dismiss:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

/* Barra fina quando minimizado — clique expande */
.pnv-soft-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: #0f172a;
  font: inherit;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.pnv-soft-mini:hover {
  border-color: rgba(100, 116, 139, 0.5);
  background: #f1f5f9;
}

.pnv-soft-mini__label {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  color: #334155;
}

.pnv-soft-mini__chev {
  flex-shrink: 0;
  font-size: 12px;
  color: #64748b;
}

.pnv-first-win-mini {
  border-color: rgba(15, 118, 110, 0.28);
}

.pnv-first-win-mini .pnv-soft-mini__label {
  color: #0f766e;
}

.pnv-focus-progress-mini {
  border-color: rgba(180, 83, 9, 0.28);
}

.pnv-focus-progress-mini .pnv-soft-mini__label {
  color: #92400e;
}

/* -- Foco / progresso real -- */
.pnv-focus-progress {
  position: relative;
  margin: 0 0 12px;
  padding: 12px 40px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.pnv-focus-progress__kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b45309;
}

.pnv-focus-progress__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
}

.pnv-focus-progress__meta {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.62);
}

.pnv-focus-progress__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(180, 83, 9, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.pnv-focus-progress__cta:hover {
  background: rgba(245, 158, 11, 0.18);
}

/* -- Share card (modal conteúdo) -- */
.pnv-share-card {
  text-align: left;
  padding: 4px 0 0;
}

.pnv-share-card__visual {
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(13, 148, 136, 0.16), transparent 50%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  margin-bottom: 12px;
}

.pnv-share-card__brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 8px;
}

.pnv-share-card__headline {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.pnv-share-card__sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.85;
}

.pnv-share-card__link {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  word-break: break-all;
  font-family: ui-monospace, monospace;
  opacity: 0.9;
}

.pnv-share-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pnv-share-card__btn {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.pnv-share-card__btn--wa {
  background: #25d366;
  color: #fff;
}

.pnv-share-card__btn--copy {
  background: #0f172a;
  color: #fff;
}

.pnv-share-card__btn--ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #334155;
}

@media (prefers-reduced-motion: reduce) {
  .pnv-first-win {
    animation: none;
  }
}
