/* Vaga Coach — mascote do dashboard (Flash, Missões, ritual, último duelo) */

body.dashboard.dash-mascot-on > .card.dashboard-main-card.dashboard-hero > #dashContextCard,
body.dashboard.dash-mascot-on > .card.dashboard-main-card.dashboard-hero > #dailyRitualCard {
  display: none !important;
}

.pv-header-inner--mascot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding-inline: 14px;
}

.pv-header-title--center {
  grid-column: 2;
  text-align: center;
  justify-self: center;
  min-width: 0;
}

.pv-header-inner--mascot .dashboard-title {
  font-size: clamp(1.3rem, 3.4vw, 1.55rem);
  letter-spacing: -0.03em;
}

.pv-header-inner--mascot .pv-header-actions {
  grid-column: 3;
  justify-self: end;
}

.pnv-mascot-header-wrap {
  position: relative;
  grid-column: 1;
  justify-self: start;
  margin-left: 10px;
  z-index: 2;
}

@media (max-width: 760px) {
  .pv-header-inner--mascot .pv-header-title--center {
    transform: translateX(-3px);
  }

  .pnv-mascot-header-wrap {
    margin-left: 8px;
  }
}

/* Botão mascote no header */
.pnv-mascot-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  overflow: visible;
  background: linear-gradient(145deg, #6366f1, #8b5cf6);
  box-shadow:
    0 4px 14px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: pnv-mascot-idle 3.6s ease-in-out infinite;
}

.pnv-mascot-btn:hover {
  transform: translateY(-2px);
  animation-play-state: paused;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.42);
}

.pnv-mascot-btn:active {
  transform: scale(0.96);
}

.pnv-mascot-btn--talking {
  animation: pnv-mascot-talk 0.45s ease-in-out 3;
}

@keyframes pnv-mascot-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes pnv-mascot-talk {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-4deg) translateY(-2px);
  }
  75% {
    transform: rotate(4deg) translateY(-2px);
  }
}

.pnv-mascot-btn__ring {
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  border: 2px solid rgba(139, 92, 246, 0.45);
  animation: pnv-mascot-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.pnv-mascot-btn--urgent .pnv-mascot-btn__ring {
  border-color: rgba(245, 158, 11, 0.85);
  animation-duration: 1.1s;
}

@keyframes pnv-mascot-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

.pnv-mascot-btn__avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.18));
  -webkit-text-fill-color: initial;
  background: none !important;
}

.pnv-mascot-btn__badge {
  position: absolute;
  top: -2px;
  right: -8px;
  z-index: 3;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
  pointer-events: none;
}

/* Mute no FAB — ON = neutro “som ligado”; muted = âmbar/vermelho + OFF */
.pnv-mascot-fab-mute {
  position: absolute;
  right: -4px;
  bottom: -4px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    width 0.15s ease,
    padding 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.pnv-mascot-fab-mute:hover {
  background: #e2e8f0;
  color: #334155;
}

.pnv-mascot-fab-mute:active {
  transform: scale(0.94);
}

.pnv-mascot-fab-mute.is-muted {
  width: auto;
  min-width: 26px;
  height: 26px;
  padding: 0 5px 0 4px;
  gap: 2px;
  background: linear-gradient(145deg, #f59e0b 0%, #dc2626 100%);
  color: #fff;
  border-color: #fff;
  box-shadow:
    0 0 0 1px rgba(185, 28, 28, 0.35),
    0 3px 10px rgba(220, 38, 38, 0.45);
}

.pnv-mascot-fab-mute.is-muted:hover {
  background: linear-gradient(145deg, #fbbf24 0%, #ef4444 100%);
  color: #fff;
}

.pnv-mascot-fab-mute__icon {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.pnv-mascot-fab-mute.is-muted .pnv-mascot-fab-mute__icon {
  width: 13px;
  height: 13px;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.25));
}

.pnv-mascot-fab-mute__icon[hidden] {
  display: none !important;
}

.pnv-mascot-fab-mute__off {
  display: none;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.pnv-mascot-fab-mute.is-muted .pnv-mascot-fab-mute__off {
  display: block;
}

/* Mute FAB — mobile: mesmo espírito da engrenagem do avatar (redondinho na ponta);
   ao mutar pode crescer um pouco para caber o OFF. */
@media (max-width: 640px) {
  .pnv-mascot-fab-mute {
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    max-width: 22px;
    min-height: 22px;
    max-height: 22px;
    aspect-ratio: 1;
    padding: 0;
    border: none;
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow:
      0 2px 8px rgba(15, 23, 42, 0.22),
      0 0 0 1.5px #fff;
  }

  .pnv-mascot-fab-mute.is-muted {
    width: auto;
    min-width: 22px;
    max-width: none;
    height: 22px;
    min-height: 22px;
    max-height: 22px;
    aspect-ratio: auto;
    padding: 0 6px 0 5px;
    gap: 2px;
    border-radius: 999px;
    overflow: visible;
    box-shadow:
      0 2px 8px rgba(220, 38, 38, 0.4),
      0 0 0 1.5px #fff;
  }

  .pnv-mascot-fab-mute__icon,
  .pnv-mascot-fab-mute.is-muted .pnv-mascot-fab-mute__icon {
    width: 11px;
    height: 11px;
  }

  .pnv-mascot-fab-mute.is-muted .pnv-mascot-fab-mute__off {
    display: block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
  }
}

/* Balão de dicas — fixed no body (fora do .pv-header com backdrop-filter) */
.pnv-mascot-bubble {
  position: fixed;
  display: block;
  left: 12px;
  top: 110px;
  transform: none;
  width: min(300px, calc(100vw - 28px));
  /* Extra bottom room so absolute mute stays near corner without stretching text */
  padding: 12px 36px 28px 12px;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 48%, #ede9fe 100%);
  border: 1px solid rgba(139, 92, 246, 0.38);
  box-shadow:
    0 14px 34px rgba(99, 102, 241, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: pnv-mascot-bubble-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  /* Acima do boot (#bootLoading 999999), ticker, header e banners */
  z-index: 1000001;
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  isolation: isolate;
}

.pnv-mascot-bubble[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.pnv-mascot-bubble__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pnv-mascot-bubble__avatar {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.pnv-mascot-bubble__name {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6d28d9;
  flex: 1;
  min-width: 0;
}

.pnv-mascot-bubble__brain {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-right: 2px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

/* display:inline-flex acima vence o [hidden] do UA — sem isto o cérebro aparece em todo balão */
.pnv-mascot-bubble__brain[hidden] {
  display: none !important;
}

.pnv-mascot-bubble__brain-art {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background-image: url("/frontend/assets/brand/brain-fab-prata.png?v=4");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.2));
}

/* Skill baixo — Bronze */
.pnv-mascot-bubble__brain--bad .pnv-mascot-bubble__brain-art {
  background-image: url("/frontend/assets/brand/brain-fab-bronze.png?v=4");
  filter: drop-shadow(0 2px 6px rgba(205, 127, 50, 0.45));
}

.pnv-mascot-bubble__brain--neutral .pnv-mascot-bubble__brain-art {
  background-image: url("/frontend/assets/brand/brain-fab-ouro.png?v=4");
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.45));
}

.pnv-mascot-bubble__brain--good .pnv-mascot-bubble__brain-art {
  background-image: url("/frontend/assets/brand/brain-fab-elite.png?v=4");
  filter: drop-shadow(0 2px 6px rgba(0, 229, 255, 0.45));
}

/* Dica educativa de patamar — mesmo asset do FAB */
.pnv-mascot-bubble__brain--by-tier .pnv-mascot-bubble__brain-art,
.pnv-mascot-bubble__brain--by-tier[data-brain-tier="Prata"] .pnv-mascot-bubble__brain-art {
  background-image: url("/frontend/assets/brand/brain-fab-prata.png?v=4");
  filter: drop-shadow(0 2px 6px rgba(148, 163, 184, 0.45));
}

.pnv-mascot-bubble__brain--by-tier[data-brain-tier="Bronze"] .pnv-mascot-bubble__brain-art {
  background-image: url("/frontend/assets/brand/brain-fab-bronze.png?v=4");
  filter: drop-shadow(0 2px 6px rgba(205, 127, 50, 0.45));
}

.pnv-mascot-bubble__brain--by-tier[data-brain-tier="Ouro"] .pnv-mascot-bubble__brain-art {
  background-image: url("/frontend/assets/brand/brain-fab-ouro.png?v=4");
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.45));
}

.pnv-mascot-bubble__brain--by-tier[data-brain-tier="Elite"] .pnv-mascot-bubble__brain-art {
  background-image: url("/frontend/assets/brand/brain-fab-elite.png?v=4");
  filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.5));
}

.pnv-mascot-bubble__brain--by-tier[data-brain-tier="Lendário"] .pnv-mascot-bubble__brain-art {
  background-image: url("/frontend/assets/brand/brain-fab-lendario.png?v=4");
  filter: drop-shadow(0 2px 8px rgba(255, 23, 68, 0.5));
}

.pnv-mascot-bubble__brain-tier {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  border: 1.5px solid #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 11px;
  text-align: center;
  color: #fff;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}

.pnv-mascot-bubble::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -8px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #fff 0%, #ede9fe 100%);
  border-left: 1px solid rgba(139, 92, 246, 0.3);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  transform: rotate(135deg);
}

@keyframes pnv-mascot-bubble-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pnv-mascot-bubble__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 600;
  color: #334155;
}

.pnv-mascot-bubble__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 8px 14px;
  min-height: auto;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 760px) {
  body.dashboard .pnv-mascot-bubble__action {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* Canto inferior direito — não participa do fluxo (mobile não infla a altura) */
.pnv-mascot-bubble__mute {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  display: inline-block;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 2px 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.625rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(148, 163, 184, 0.55);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pnv-mascot-bubble__mute:hover {
  color: #64748b;
  text-decoration-color: rgba(100, 116, 139, 0.7);
}

@media (max-width: 520px) {
  .pnv-mascot-bubble__mute {
    right: 8px;
    bottom: 6px;
    font-size: 0.5625rem;
  }
}

.pnv-mascot-bubble__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pnv-mascot-bubble__close:hover {
  background: rgba(237, 233, 254, 0.95);
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
}

@media (min-width: 521px) {
  .pnv-mascot-bubble {
    width: min(300px, 42vw);
  }
}

@media (max-width: 520px) {
  .pnv-mascot-bubble {
    width: min(300px, calc(100vw - 28px));
  }
}

.pv-header-quick-btns--ghost {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Painel do mascote — sheet claro (tema anterior, não coach-duel dark) */
.pnv-mascot-panel[hidden],
.pnv-mascot-backdrop[hidden] {
  display: none !important;
  pointer-events: none;
  visibility: hidden;
}

body.pnv-mascot-open {
  overflow: hidden;
}

/*
 * Sheet do Coach acima da dock de atalhos (z-index 9998).
 * Mobile/TWA: card flutuante com rodapé completo (não “cortado”) —
 * clearance = padding-bottom de body.dashboard (~94px + safe-area).
 */
.pnv-mascot-backdrop:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: pnv-mascot-backdrop-in 0.28s ease;
}

@keyframes pnv-mascot-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pnv-mascot-panel:not([hidden]) {
  --pnv-mascot-fab-clearance: calc(94px + env(safe-area-inset-bottom, 0px));
  display: flex;
  position: fixed;
  z-index: 10050;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--pnv-mascot-fab-clearance) + 10px);
  top: auto;
  transform: none;
  width: auto;
  max-height: min(
    calc(100dvh - var(--pnv-mascot-fab-clearance) - 28px),
    calc(92vh - 100px),
    720px
  );
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  /* Quatro cantos: sheet pousado, não guilhotinado na dock */
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 68%, #f1f5f9 100%);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 -6px 28px rgba(15, 23, 42, 0.1),
    0 14px 36px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  padding: 0;
  animation: pnv-mascot-panel-slide 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fade suave no pé — dissolve no canto arredondado (sem roubar clique) */
.pnv-mascot-panel:not([hidden])::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  z-index: 4;
  pointer-events: none;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(
    to top,
    rgba(241, 245, 249, 0.96) 0%,
    rgba(248, 250, 252, 0.55) 42%,
    rgba(248, 250, 252, 0) 100%
  );
}

@keyframes pnv-mascot-panel-slide {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pnv-mascot-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.pnv-mascot-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
  /* Respiro abaixo do último duelo / revanche — acima do fade */
  padding: 14px 16px 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.pnv-mascot-panel__body::-webkit-scrollbar {
  width: 6px;
}

.pnv-mascot-panel__body::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.pnv-mascot-panel__body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.pnv-mascot-panel__body:hover::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.38);
}

.pnv-mascot-panel__body::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.52);
}

.pnv-mascot-panel__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #6366f1, #8b5cf6);
  box-shadow:
    0 6px 18px rgba(99, 102, 241, 0.38),
    0 0 16px rgba(99, 102, 241, 0.12);
}

.pnv-mascot-panel__spark {
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  border: 2px solid rgba(167, 139, 250, 0.4);
  animation: pnv-mascot-pulse 2.4s ease-in-out infinite;
}

.pnv-mascot-panel__avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.pnv-mascot-panel__intro {
  flex: 1;
  min-width: 0;
}

.pnv-mascot-panel__name {
  margin: 0;
  font-size: clamp(1rem, 3.6vw, 1.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #0f172a;
}

.pnv-mascot-panel__greeting {
  margin: 5px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.pnv-mascot-panel__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.pnv-mascot-panel__close:hover {
  background: #f1f5f9;
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
}

.pnv-mascot-panel__close:active {
  transform: scale(0.94);
}

/* Mute secundário no header do painel */
.pnv-mascot-panel__mute {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    width 0.15s ease,
    padding 0.15s ease,
    transform 0.12s ease;
}

.pnv-mascot-panel__mute:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.pnv-mascot-panel__mute:active {
  transform: scale(0.94);
}

.pnv-mascot-panel__mute.is-muted {
  width: auto;
  min-width: 36px;
  padding: 0 8px;
  gap: 4px;
  background: #fff7ed;
  border-color: #fb923c;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.25);
}

.pnv-mascot-panel__mute.is-muted:hover {
  background: #ffedd5;
  border-color: #f97316;
  color: #9a3412;
}

.pnv-mascot-panel__mute-icon[hidden] {
  display: none !important;
}

.pnv-mascot-panel__mute-off {
  display: none;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.pnv-mascot-panel__mute.is-muted .pnv-mascot-panel__mute-off {
  display: block;
}

.pnv-mascot-panel__mute-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pnv-mascot-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.pnv-mascot-quick__btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.pnv-mascot-quick__btn:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.pnv-mascot-quick__btn:active {
  transform: scale(0.98);
}

.pnv-mascot-quick__btn--flash {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9), rgba(255, 255, 255, 0.95));
}

.pnv-mascot-quick__btn--flash:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

.pnv-mascot-quick__btn--missions {
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.pnv-mascot-quick__btn--missions:hover {
  border-color: rgba(99, 102, 241, 0.45);
}

.pnv-mascot-quick__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 1.2rem;
  line-height: 1;
}

.pnv-mascot-quick__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pnv-mascot-quick__lbl {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.pnv-mascot-quick__sub {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
}

.pnv-mascot-quick__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 22px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.pnv-mascot-block {
  padding: 14px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 10px;
}

.pnv-mascot-block:last-child {
  margin-bottom: 0;
}

.pnv-mascot-block--duel {
  background: linear-gradient(145deg, rgba(254, 242, 242, 0.72), rgba(248, 250, 252, 0.98) 55%);
  border-color: rgba(248, 113, 113, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 20px rgba(15, 23, 42, 0.04);
}

.pnv-mascot-block__kicker {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6366f1;
}

.pnv-mascot-block__title {
  margin: 0 0 8px;
  font-size: clamp(0.95rem, 3.4vw, 1.05rem);
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.pnv-mascot-block__hint {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.pnv-mascot-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.pnv-mascot-progress__track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.95);
  overflow: hidden;
}

.pnv-mascot-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.35s ease;
}

.pnv-mascot-progress__count {
  font-size: 0.75rem;
  font-weight: 800;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.pnv-mascot-block__cta {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.pnv-mascot-block__cta:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.pnv-mascot-block__cta:active {
  transform: scale(0.98);
}

.pnv-mascot-block__cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.pnv-mascot-block__cta--outline {
  background: #fff;
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: none;
}

.pnv-mascot-block__cta--outline:hover {
  background: #f5f3ff;
  border-color: rgba(99, 102, 241, 0.5);
  filter: none;
}

.pnv-mascot-block--tip {
  border: 1px dashed rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.pnv-mascot-block__cta--ghost {
  background: transparent;
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.45);
  box-shadow: none;
}

.pnv-mascot-block__cta--ghost:hover {
  background: rgba(99, 102, 241, 0.08);
}

.pnv-mascot-block__cta--coach {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}

.pnv-mascot-duel-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pnv-mascot-duel-badge--win {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.pnv-mascot-duel-badge--loss {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.pnv-mascot-block--evo {
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.55), rgba(248, 250, 252, 0.95));
  border-color: rgba(99, 102, 241, 0.16);
}

.pnv-mascot-evo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.pnv-mascot-evo-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.pnv-mascot-evo-chip--new {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.28);
  animation: pnv-mascot-pulse 2.4s ease-in-out infinite;
}

.pnv-mascot-evo-chip--up {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.22);
}

@media (min-width: 640px) {
  .pnv-mascot-panel:not([hidden]) {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(440px, calc(100% - 32px));
    max-height: min(88vh, 680px);
    border-radius: 22px;
    padding: 0;
    box-shadow:
      0 24px 64px rgba(15, 23, 42, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    animation: pnv-mascot-panel-center 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes pnv-mascot-panel-center {
    from {
      opacity: 0;
      transform: translate(-50%, -46%) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }
}

body.dashboard .pnv-challenge-banner.is-cancelling {
  opacity: 0.85;
  pointer-events: none;
}

/* Duelo de treino — mascote pegando fogo */
.pnv-mascot-btn.pnv-mascot--duel-fire {
  background: linear-gradient(145deg, #fb923c, #ef4444 58%, #dc2626);
  box-shadow:
    0 4px 18px rgba(249, 115, 22, 0.5),
    0 0 22px rgba(239, 68, 68, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: pnv-mascot-duel-fire-idle 1.1s ease-in-out infinite;
}

.pnv-mascot-btn.pnv-mascot--duel-fire .pnv-mascot-btn__ring {
  border-color: rgba(253, 186, 116, 0.95);
  animation: pnv-mascot-duel-fire-ring 0.85s ease-in-out infinite;
}

.pnv-mascot-btn.pnv-mascot--duel-fire .pnv-mascot-btn__avatar {
  filter:
    drop-shadow(0 0 5px rgba(251, 191, 36, 0.85))
    drop-shadow(0 2px 4px rgba(15, 23, 42, 0.2));
}

.pnv-mascot-btn.pnv-mascot--duel-fire::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 34px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50% 50% 30% 30%;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(253, 224, 71, 0.9) 0%,
    rgba(249, 115, 22, 0.55) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 2;
  animation: pnv-mascot-duel-flames 0.65s ease-in-out infinite alternate;
}

.pnv-mascot-panel__avatar-wrap.pnv-mascot--duel-fire {
  background: linear-gradient(145deg, #fb923c, #ef4444 58%, #dc2626);
  box-shadow:
    0 6px 18px rgba(249, 115, 22, 0.45),
    0 0 16px rgba(239, 68, 68, 0.28);
  animation: pnv-mascot-duel-fire-idle 1.1s ease-in-out infinite;
}

.pnv-mascot-panel__avatar-wrap.pnv-mascot--duel-fire .pnv-mascot-panel__spark {
  border-color: rgba(253, 186, 116, 0.85);
  animation: pnv-mascot-duel-fire-ring 0.85s ease-in-out infinite;
}

.pnv-mascot-panel__avatar-wrap.pnv-mascot--duel-fire .pnv-mascot-panel__avatar {
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.75));
}

.pnv-mascot-bubble--duel-fire {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow:
    0 14px 34px rgba(249, 115, 22, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pnv-mascot-bubble--duel-fire .pnv-mascot-bubble__avatar {
  filter: drop-shadow(0 0 4px rgba(251, 146, 60, 0.85));
  animation: pnv-mascot-duel-fire-avatar 0.9s ease-in-out infinite;
}

.pnv-mascot-block--coach-duel-hot {
  border-color: rgba(249, 115, 22, 0.38);
  background:
    linear-gradient(135deg, rgba(254, 243, 199, 0.85), rgba(254, 226, 226, 0.45), rgba(255, 255, 255, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(251, 146, 60, 0.18),
    0 0 16px rgba(249, 115, 22, 0.1);
}

@keyframes pnv-mascot-duel-fire-idle {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

@keyframes pnv-mascot-duel-fire-ring {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes pnv-mascot-duel-flames {
  0% {
    opacity: 0.65;
    transform: translateX(-50%) scaleY(0.85);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1.12);
  }
}

@keyframes pnv-mascot-duel-fire-avatar {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Fala rotineira — brilho roxo curto ao abrir o balão */
.pnv-mascot-btn.pnv-mascot-btn--speak-burst {
  animation:
    pnv-mascot-speak-burst 1.1s ease-out 1,
    pnv-mascot-idle 3.6s ease-in-out 1.1s infinite;
}

.pnv-mascot-btn.pnv-mascot-btn--speak-burst .pnv-mascot-btn__ring {
  animation: pnv-mascot-speak-ring 1.1s ease-out 1;
}

@keyframes pnv-mascot-speak-burst {
  0% {
    box-shadow:
      0 4px 14px rgba(99, 102, 241, 0.35),
      0 0 0 0 rgba(139, 92, 246, 0.45);
  }
  45% {
    box-shadow:
      0 6px 20px rgba(99, 102, 241, 0.48),
      0 0 18px rgba(167, 139, 250, 0.42);
  }
  100% {
    box-shadow:
      0 4px 14px rgba(99, 102, 241, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}

@keyframes pnv-mascot-speak-ring {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.1);
    border-color: rgba(167, 139, 250, 0.75);
  }
}

/* Momentos quentes — fogo leve (~2s), sem loop infinito */
.pnv-mascot-btn.pnv-mascot--hot-burst {
  background: linear-gradient(145deg, #c084fc, #fb923c 62%, #f97316);
  box-shadow:
    0 4px 18px rgba(249, 115, 22, 0.42),
    0 0 20px rgba(251, 146, 60, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: pnv-mascot-hot-burst 2s ease-out 1;
}

.pnv-mascot-btn.pnv-mascot--hot-burst .pnv-mascot-btn__ring {
  border-color: rgba(253, 186, 116, 0.9);
  animation: pnv-mascot-hot-ring 2s ease-out 1;
}

.pnv-mascot-btn.pnv-mascot--hot-burst .pnv-mascot-btn__avatar {
  filter:
    drop-shadow(0 0 4px rgba(251, 191, 36, 0.75))
    drop-shadow(0 2px 4px rgba(15, 23, 42, 0.2));
}

.pnv-mascot-btn.pnv-mascot--hot-burst::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 28px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50% 50% 30% 30%;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(253, 224, 71, 0.85) 0%,
    rgba(249, 115, 22, 0.5) 45%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 2;
  animation: pnv-mascot-hot-flames 0.75s ease-out 2;
}

.pnv-mascot-bubble--hot-burst {
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow:
    0 14px 34px rgba(249, 115, 22, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@keyframes pnv-mascot-hot-burst {
  0% {
    filter: brightness(1);
    transform: scale(1);
  }
  25% {
    filter: brightness(1.1);
    transform: scale(1.04);
  }
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes pnv-mascot-hot-ring {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  35% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes pnv-mascot-hot-flames {
  0% {
    opacity: 0.5;
    transform: translateX(-50%) scaleY(0.75);
  }
  100% {
    opacity: 0.95;
    transform: translateX(-50%) scaleY(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pnv-mascot-btn,
  .pnv-mascot-btn__ring,
  .pnv-mascot-panel__spark,
  .pnv-mascot-evo-chip--new,
  .pnv-mascot--duel-fire,
  .pnv-mascot--duel-fire::after,
  .pnv-mascot--hot-burst,
  .pnv-mascot--hot-burst::after,
  .pnv-mascot-btn--speak-burst,
  .pnv-mascot-bubble--hot-burst,
  .pnv-mascot-bubble--duel-fire .pnv-mascot-bubble__avatar,
  .pnv-mascot-backdrop,
  .pnv-mascot-panel {
    animation: none !important;
  }

  .pnv-mascot-quick__btn,
  .pnv-mascot-panel__close,
  .pnv-mascot-panel__mute,
  .pnv-mascot-block__cta {
    transition: none;
  }
}
