@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
  --bg: #0a0e14;
  --surface: #141a22;
  --surface-2: #1a222c;
  --text: #e8ecef;
  --text-2: #8b96a3;
  --teal: #1d9e75;
  --teal-light: #5dcaa5;
  --energia: #378add;
  --energia-light: #85b7eb;
  --divida: #d85a30;
  --divida-light: #f0997b;
  --border: #232c38;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.mono { font-family: "JetBrains Mono", monospace; }
.display { font-family: "Space Grotesk", sans-serif; }

header.hf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

header.hf-header .logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
header.hf-header .logo span { color: var(--teal-light); }

.header-acoes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header.hf-header nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 16px;
  white-space: nowrap;
}
header.hf-header nav a:hover { color: var(--text); }

@media (max-width: 640px) {
  header.hf-header { padding: 10px 14px; gap: 8px; }
  .header-acoes { gap: 6px; }
  header.hf-header nav { display: none; } /* links promocionais somem primeiro num header apertado */
  .trofeu-btn span#contador-conquistas-btn { display: none; } /* mantém só o ícone, número cabia mal */
  .streak-tag { order: -1; } /* fogo do streak fica bem visível, primeiro item */
}

.era-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: 20px;
  padding: 2px 10px;
}

main.hub-3col {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  main.hub-3col { grid-template-columns: 200px minmax(0, 1fr); }
  main.hub-3col > section:nth-child(2) { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 800px) {
  main.hub-3col { grid-template-columns: 1fr; }
  main.hub-3col > section:nth-child(2) { order: -1; } /* palco primeiro */
  main.hub-3col > section:nth-child(3) { order: 0; }  /* loja/progresso em segundo */
  main.hub-3col > .coluna-cristais { order: 1; }       /* cristais por último */
}

/* ---------- Céu de Fagulhas: painel nunca fica vazio, cada fagulha vira uma
   estrela permanente no fundo, ao invés de sumir depois de coletada ---------- */
.ceu-painel {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(93,202,165,0.08), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 168px;
  margin-bottom: 16px;
  overflow: hidden;
}
.ceu-contador {
  position: absolute;
  top: 10px; left: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-light);
  z-index: 2;
}
.ceu-label { font-size: 0.6rem; color: var(--text-2); font-weight: 400; text-transform: uppercase; margin-left: 3px; }

.ceu-estrelas { position: absolute; inset: 0; z-index: 1; }
.estrela {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--teal-light);
  animation: estrela-cintilar var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--atraso, 0s);
}
@keyframes estrela-cintilar { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.6); } }
.estrela.nova { animation: estrela-nascer 0.6s ease-out, estrela-cintilar var(--dur, 3s) ease-in-out infinite 0.6s; }
@keyframes estrela-nascer { 0% { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(2.2); } 100% { transform: scale(1); } }

.fagulha-spot {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-light), var(--teal));
  color: #06120d;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  animation: fagulha-flutuar 2.2s ease-in-out infinite, fagulha-brilho 1.4s ease-in-out infinite;
}
.fagulha-spot svg { width: 22px; height: 22px; }
@keyframes fagulha-flutuar { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(8deg); } }
@keyframes fagulha-brilho { 0%, 100% { box-shadow: 0 0 12px 2px var(--teal-dim, rgba(29,158,117,0.4)); } 50% { box-shadow: 0 0 24px 6px var(--teal-dim, rgba(29,158,117,0.7)); } }

/* ---------- Auras: lista com pré-visualização de partícula, não grade de cor plana ---------- */
.auras-lista { display: flex; flex-direction: column; gap: 6px; }
.aura-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.aura-item:hover { background: var(--surface-hover, var(--surface-2)); }
.aura-item.ativa { border-color: var(--teal-light); box-shadow: 0 0 0 1px var(--teal-dim, rgba(29,158,117,0.3)); }
.aura-item.bloqueada { opacity: 0.5; cursor: default; }
.aura-amostra {
  position: relative;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  flex-shrink: 0;
}
.aura-amostra.tem-cor { background: var(--am-cor, var(--surface-2)); box-shadow: 0 0 8px 1px var(--am-luz, transparent); }
.aura-item .info { flex: 1; min-width: 0; }
.aura-item .nome { font-size: 0.78rem; font-weight: 500; }
.aura-item .custo { font-size: 0.66rem; color: var(--text-2); font-family: "JetBrains Mono", monospace; }
.aura-detalhe { font-size: 0.72rem; color: var(--text-2); line-height: 1.5; margin-top: 10px; min-height: 2.4em; font-style: italic; }

/* ---------- Pets (mesmo padrão visual das Auras) ---------- */
.pets-lista { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.pets-lista .aura-amostra { background: var(--surface-2); overflow: hidden; }
.pets-lista .aura-amostra img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pets-lista .buff-texto { font-size: 0.68rem; color: var(--teal-light); margin-top: 1px; }

/* ---------- partículas orbitando o avatar (a aura em si, aplicada de verdade) ---------- */
.aura-particulas {
  position: absolute;
  inset: -34px;
  z-index: 1;
  pointer-events: none;
  animation: aura-orbita var(--aura-vel, 6s) linear infinite;
}
.aura-particula {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--aura-luz, var(--teal-light));
  box-shadow: 0 0 8px 2px var(--aura-luz, var(--teal-light));
  transform: rotate(calc(360deg / var(--total, 1) * var(--i, 0))) translateX(58px);
}
@keyframes aura-orbita { to { transform: rotate(360deg); } }

/* aplicado no avatar quando uma aura está ativa (fora dos estados burnout/hiperfoco/sobrecarga) */
.avatar.aura-ativa {
  border-width: 4px;
  border-color: var(--aura-cor, var(--border));
  box-shadow: 0 0 22px 4px var(--aura-luz-dim, transparent);
}
.avatar-glow.aura-on {
  opacity: 1;
  background: radial-gradient(circle, var(--aura-luz-dim, transparent), transparent 70%);
  animation: pulse-glow 2.2s ease-in-out infinite;
}

.resource-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.bar-label {
  width: 90px;
  color: var(--text-2);
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 10px;
  background: var(--surface-2);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar-fill { height: 100%; transition: width 0.25s ease; }
.bar-fill.foco { background: linear-gradient(90deg, var(--teal), var(--teal-light)); }
.bar-fill.energia { background: linear-gradient(90deg, var(--energia), var(--energia-light)); }
.bar-fill.divida { background: linear-gradient(90deg, var(--divida), var(--divida-light)); }

.bar-value {
  width: 90px;
  text-align: right;
  flex-shrink: 0;
}

.game-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stage { position: relative; overflow: hidden; padding: 26px 20px 22px; }

.stage-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  transition: transform 0.15s ease-out;
}
/* a animação de zoom (kenburns) fica no filho, o parallax do mouse no pai —
   assim os dois transforms não brigam pela mesma propriedade */
.stage-bg-inner {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: saturate(0.8);
  transition: background-image 0.6s ease, opacity 0.6s ease;
  animation: kenburns 22s ease-in-out infinite alternate;
}
.stage-bg::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(20,26,34,0.3) 35%, rgba(20,26,34,0.3) 65%, var(--surface) 100%);
}

/* fundo vivo e evidente — blobs de cor grandes, sem detalhe, sempre em movimento */
.stage-aura {
  position: absolute;
  inset: -30px;
  z-index: 1;
  background:
    radial-gradient(circle at 22% 28%, var(--teal-light) 0%, transparent 42%),
    radial-gradient(circle at 78% 68%, var(--teal) 0%, transparent 46%),
    radial-gradient(circle at 50% 95%, #f0d98a 0%, transparent 38%);
  opacity: 0.5;
  mix-blend-mode: screen;
  filter: blur(30px);
  animation: aura-flutuar 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aura-flutuar {
  0%   { transform: translate(-4%, -3%) scale(1); }
  50%  { transform: translate(4%, 3%) scale(1.18); }
  100% { transform: translate(-3%, 4%) scale(1.08); }
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.combo-tag {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--teal-light);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 6;
}
.combo-tag.on { opacity: 1; transform: translateY(0); }

.avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 4px auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.avatar-glow {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,202,165,0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.avatar-glow.on { opacity: 1; animation: pulse-glow 1.8s ease-in-out infinite; }

/* ícone de ação temático (espada/teclado/faxina, conforme a Área) — pisca
   sobre o avatar a cada clique, como um golpe/ação de verdade acontecendo */
.avatar-acao {
  position: absolute;
  inset: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.avatar-acao svg { width: 72%; height: 72%; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)); }
.avatar-acao.golpear {
  animation: acao-golpe 0.4s cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes acao-golpe {
  0% { opacity: 0; transform: translate(-30%, 30%) rotate(-25deg) scale(0.6); }
  35% { opacity: 1; transform: translate(6%, -6%) rotate(4deg) scale(1.15); }
  70% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(20%, -20%) rotate(15deg) scale(0.9); }
}

/* ---------- pet ativo: sprite de verdade (2 imagens alternando), não filtro ---------- */
.pet-sprite {
  position: absolute;
  bottom: -6px;
  right: -14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  object-fit: cover;
  z-index: 2;
  box-shadow: 0 4px 10px -3px rgba(0,0,0,0.6);
  animation: pet-flutuar 3s ease-in-out infinite;
}
@keyframes pet-flutuar {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-5px) rotate(4deg); }
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.15); opacity: 1; }
}

.avatar {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  line-height: 1;
  transition: filter 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  animation: respirar 4.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
  background: var(--surface-2);
}
@keyframes respirar {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-6px) scale(1.035) rotate(-1.2deg); }
}
.avatar.low-energy {
  filter: grayscale(0.6) brightness(0.75);
  animation: avatar-cansado 3.2s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes avatar-cansado {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  50% { transform: translateY(4px) rotate(2.5deg); }
}
.avatar.high-debt {
  filter: hue-rotate(-15deg) saturate(1.4);
  border-color: var(--divida);
  animation: avatar-glitch 2.6s steps(1) infinite;
}
@keyframes avatar-glitch {
  0%, 92%, 100% { transform: translate(0, 0); clip-path: none; }
  93% { transform: translate(-3px, 1px); clip-path: inset(10% 0 60% 0); }
  94% { transform: translate(3px, -1px); clip-path: inset(60% 0 5% 0); }
  95% { transform: translate(-2px, 0); clip-path: inset(30% 0 40% 0); }
  96% { transform: translate(0, 0); clip-path: none; }
}
.avatar.hiperfoco { filter: saturate(1.2); border-color: var(--teal-light); animation: respirar 1.4s ease-in-out infinite; }

/* reação ao clicar em "Resolver tarefa" — squish rápido, some sozinho */
.avatar.reagindo { animation: avatar-clique 0.35s cubic-bezier(.34,1.56,.64,1) !important; }
@keyframes avatar-clique {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(0.88, 1.1) rotate(-3deg); }
  65% { transform: scale(1.08, 0.94) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.avatar-state {
  font-size: 0.75rem;
  color: var(--text-2);
  margin-bottom: 14px;
  min-height: 1em;
  position: relative;
  z-index: 2;
}

.hint-tecla {
  display: block;
  margin-top: 8px;
  font-size: 0.66rem;
  color: var(--text-2);
  opacity: 0.7;
  font-family: "JetBrains Mono", monospace;
  position: relative;
  z-index: 2;
}

/* ---------- modal de era ---------- */
.era-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 13, 0.78);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.era-modal.aberto { opacity: 1; pointer-events: auto; }
.era-modal-card {
  background: var(--surface);
  border: 1px solid var(--teal);
  border-radius: 16px;
  padding: 28px 30px 24px;
  text-align: center;
  max-width: 320px;
  transform: scale(0.9) translateY(10px);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.6);
}
.era-modal.aberto .era-modal-card { transform: scale(1) translateY(0); }
.era-modal-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 14px;
}
.era-modal-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--teal);
  margin-bottom: 14px;
}
.era-modal-nome { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.era-modal-cenario { font-size: 0.78rem; color: var(--text-2); margin-bottom: 20px; line-height: 1.4; }

/* ---------- celebração de nova era: tratamento especial, só nesse modal ---------- */
@property --ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
#era-modal .era-modal-card {
  overflow: visible;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ang, 0deg), var(--teal), var(--teal-light), #f0d98a, var(--teal-light), var(--teal)) border-box;
  animation: era-modal-abrir 0.5s cubic-bezier(.2,.8,.2,1.3), era-modal-girar 5s linear infinite;
}
@keyframes era-modal-girar { to { --ang: 360deg; } }
@keyframes era-modal-abrir {
  0% { transform: scale(0.7) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
/* burst radial atrás do retrato, tipo raios de sol */
#era-modal .era-modal-card::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, var(--teal-dim, rgba(29,158,117,0.3)) 0 10deg, transparent 10deg 20deg);
  border-radius: 50%;
  animation: era-modal-raios 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes era-modal-raios { to { transform: translate(-50%, -50%) rotate(360deg); } }
#era-modal .era-modal-card > * { position: relative; z-index: 1; }
#era-modal .era-modal-img {
  box-shadow: 0 0 0 6px var(--teal-dim, rgba(29,158,117,0.18)), 0 8px 24px -8px rgba(0,0,0,0.6);
  animation: era-modal-avatar-surge 0.6s cubic-bezier(.34,1.56,.64,1) 0.15s both;
}
#era-modal .era-modal-eyebrow,
#era-modal .era-modal-nome,
#era-modal .era-modal-cenario,
#era-modal .welcome-lista,
#era-modal #era-modal-fechar {
  animation: era-modal-item-surge 0.4s ease both;
}
#era-modal .era-modal-eyebrow { animation-delay: 0.05s; }
#era-modal .era-modal-img { animation-delay: 0.15s; }
#era-modal .era-modal-nome { animation-delay: 0.28s; }
#era-modal .era-modal-cenario { animation-delay: 0.38s; }
#era-modal .welcome-lista { animation-delay: 0.48s; }
#era-modal #era-modal-fechar { animation-delay: 0.58s; }
@keyframes era-modal-item-surge {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes era-modal-avatar-surge {
  0% { opacity: 0; transform: scale(0.4) rotate(-15deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.foco-atual {
  font-size: 2.4rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--teal-light);
  line-height: 1;
  position: relative;
  z-index: 2;
}
.foco-label {
  font-size: 0.68rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  position: relative;
  z-index: 2;
}
.foco-por-seg {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

/* ---------- trilha de níveis (onde você está, o que vem antes/depois) ---------- */
.eras-trilha {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.foco-total-linha {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--teal-light);
  text-align: center;
  margin-bottom: 16px;
}
.eras-trilha .passo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.eras-trilha .linha {
  position: absolute;
  top: 6px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-strong, #2d3947);
  z-index: 0;
}
.eras-trilha .passo:first-child .linha { display: none; }
.eras-trilha .ponto {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-strong, #2d3947);
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.eras-trilha .passo.concluido .linha { background: var(--teal); }
.eras-trilha .passo.concluido .ponto { background: var(--teal); border-color: var(--teal); }
.eras-trilha .passo.atual .ponto {
  background: var(--teal-light);
  border-color: var(--teal-light);
  transform: scale(1.5);
  box-shadow: 0 0 0 4px var(--teal-dim, rgba(29,158,117,0.2));
}
.eras-trilha .rotulo {
  font-size: 0.6rem;
  color: var(--text-3, var(--text-2));
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.eras-trilha .passo.atual .rotulo { opacity: 1; transform: none; color: var(--teal-light); font-weight: 600; }
.eras-trilha .passo:hover .rotulo { opacity: 1; transform: none; }

/* ---------- QTE: oportunidade rara (estilo "golden cookie") ---------- */
.qte-spot {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, var(--teal-light), var(--teal));
  color: #06120d;
  border: none;
  cursor: pointer;
  z-index: 8;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 0 0 0 var(--teal-dim, rgba(29,158,117,0.3)), 0 6px 20px -4px rgba(0,0,0,0.5);
}
.qte-spot.mostrar {
  opacity: 1;
  transform: scale(1);
  animation: qte-pulso 1.1s ease-in-out infinite;
}
/* anéis de radar se expandindo, pra ficar impossível não notar */
.qte-spot::before, .qte-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--teal-light);
  opacity: 0;
}
.qte-spot.mostrar::before { animation: qte-radar 1.8s ease-out infinite; }
.qte-spot.mostrar::after { animation: qte-radar 1.8s ease-out infinite 0.6s; }
@keyframes qte-radar {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes qte-pulso {
  0%, 100% { box-shadow: 0 0 0 0 var(--teal-dim, rgba(29,158,117,0.4)), 0 6px 20px -4px rgba(0,0,0,0.5); }
  50% { box-shadow: 0 0 0 12px transparent, 0 6px 20px -4px rgba(0,0,0,0.5); }
}
.qte-spot svg { width: 26px; height: 26px; animation: qte-girar 3s linear infinite; position: relative; z-index: 1; }
@keyframes qte-girar { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---------- companheiros no palco: itens comprados vivendo na cena, não uma estatística ---------- */
.companions-row {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.companion {
  position: absolute;
  left: var(--px, 50%);
  top: var(--py, 70%);
  width: 24px;
  height: 24px;
  animation: companion-vagar var(--dur, 3.2s) ease-in-out infinite;
  animation-delay: var(--atraso, 0s);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5));
}
.companion img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
  display: block;
}
.companion::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 14px;
  height: 3px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  filter: blur(1px);
  transform: translateX(-50%);
  animation: companion-sombra var(--dur, 3.2s) ease-in-out infinite;
  animation-delay: var(--atraso, 0s);
}
@keyframes companion-vagar {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(var(--sway, 4px), -7px) rotate(var(--tilt, 4deg)); }
}
@keyframes companion-sombra {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.4; }
  50% { transform: translateX(-50%) scale(0.7); opacity: 0.22; }
}
.companion.novo { animation: companion-entrar 0.45s cubic-bezier(.34,1.56,.64,1), companion-vagar var(--dur, 3.2s) ease-in-out infinite 0.45s; }
@keyframes companion-entrar {
  0% { transform: scale(0) translateY(14px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

button.hf-btn {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  cursor: pointer;
  background: var(--teal);
  color: #06120d;
  transition: transform 0.1s ease, background 0.2s ease;
}
button.hf-btn:hover { background: var(--teal-light); }
button.hf-btn:active { transform: scale(0.97); }
button.hf-btn:disabled { opacity: 0.4; cursor: not-allowed; }

button.hf-btn.hiperfoco-btn {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal-light);
  margin-top: 10px;
  padding: 8px 18px;
  font-size: 0.8rem;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 12px;
  color: var(--text);
}

.secao-automacoes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.secao-automacoes-header .section-title { margin-bottom: 12px; }
.lote-seletor {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 12px;
}
.lote-btn {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lote-btn:hover { color: var(--text); }
.lote-btn.ativo { background: var(--teal); color: #06120d; }

.card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.auto-card, .upgrade-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.auto-card:hover, .upgrade-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.5);
  border-color: var(--border-strong, #2d3947);
}

.auto-card .icone, .upgrade-card .icone {
  font-size: 1.4rem;
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.auto-card:hover .icone, .upgrade-card:hover .icone { transform: scale(1.08) rotate(-3deg); }

.auto-card .info, .upgrade-card .info { flex: 1; min-width: 0; }
.auto-card .nome, .upgrade-card .nome { font-size: 0.85rem; font-weight: 500; }
.auto-card .detalhe, .upgrade-card .detalhe { font-size: 0.72rem; color: var(--text-2); }

.buy-btn {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.buy-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-light); }
.buy-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.upgrade-card { border-color: var(--teal); position: relative; }
.upgrade-card.comprado { opacity: 0.55; }
.upgrade-card .info-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  cursor: pointer;
  flex-shrink: 0;
}
.tecnica-texto {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-2);
  border-top: 1px dashed var(--border);
  margin-top: 8px;
  padding-top: 8px;
  display: none;
}
.tecnica-texto.aberto { display: block; }
.tecnica-texto .fonte { color: var(--teal-light); font-style: italic; }

footer.hf-footer {
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-2);
}
footer.hf-footer a { color: var(--teal-light); text-decoration: none; }
footer.hf-footer a:hover { text-decoration: underline; }

.save-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-2);
}

@keyframes flash-compra {
  0% { box-shadow: 0 0 0 0 var(--teal); }
  50% { box-shadow: 0 0 0 3px rgba(29,158,117,0.35); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.auto-card.comprou, .upgrade-card.comprou { animation: flash-compra 0.5s ease; }

/* ---------- streak ---------- */
.streak-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--divida-light);
  border: 1px solid var(--divida);
  background: rgba(216, 90, 48, 0.12);
  border-radius: 20px;
  padding: 2px 10px;
  animation: streak-pop 0.4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes streak-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- botão de troféu (header) ---------- */
.trofeu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2, var(--surface));
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 20px;
  padding: 4px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.trofeu-btn:hover { border-color: var(--teal); color: var(--teal-light); }

.icone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: var(--surface-2, var(--surface));
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.icone-btn:hover { border-color: var(--teal); color: var(--teal-light); }

.config-wrap { position: relative; }
.config-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}
.config-dropdown.aberto { display: flex; }
.config-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.78rem; color: var(--text); }
.config-volume { flex-direction: column; align-items: stretch; gap: 4px; }
.config-linha input[type="range"] { width: 100%; accent-color: var(--teal); }
.config-linha input[type="checkbox"] { accent-color: var(--teal); width: 16px; height: 16px; }

.ajuda-lista { display: flex; flex-direction: column; gap: 10px; font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }
.ajuda-lista b { color: var(--text); }

/* ---------- desafios diário/semanal ---------- */
.desafios-lista { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.desafio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.desafio-card.concluido { border-color: var(--teal); background: linear-gradient(135deg, rgba(29,158,117,0.08), var(--surface)); }
.desafio-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.desafio-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
}
.desafio-recompensa { font-family: "JetBrains Mono", monospace; font-size: 0.68rem; color: var(--teal-light); }
.desafio-nome { font-size: 0.82rem; font-weight: 500; margin-bottom: 6px; }
.desafio-barra { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.desafio-barra-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-light)); border-radius: 4px; transition: width 0.3s ease; }
.desafio-card.concluido .desafio-barra-fill { background: var(--teal-light); }
.desafio-fracao { font-family: "JetBrains Mono", monospace; font-size: 0.68rem; color: var(--text-2); text-align: right; }
.desafio-card.concluido .desafio-fracao { color: var(--teal-light); font-weight: 600; }

/* ---------- leaderboard ---------- */
.leaderboard-lista { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; text-align: left; }
.leaderboard-vazio { font-size: 0.78rem; color: var(--text-2); text-align: center; padding: 20px 0; }
.leaderboard-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-2);
}
.leaderboard-item.voce { border: 1px solid var(--teal); background: var(--teal-dim); }
.leaderboard-pos { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--text-2); width: 22px; flex-shrink: 0; }
.leaderboard-nome { flex: 1; font-size: 0.8rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-recorde { font-family: "JetBrains Mono", monospace; font-size: 0.76rem; color: var(--teal-light); }

/* ---------- conquistas (badges tipográficos, sem emoji) ---------- */
.conquistas-modal-card { max-width: 460px; text-align: left; }
.conquistas-modal-card .era-modal-eyebrow { text-align: center; }
#conquistas-modal-contador { color: var(--text-2); font-family: "JetBrains Mono", monospace; }
.conquistas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin: 16px 0 20px;
  max-height: 50vh;
  overflow-y: auto;
}
.conquista-badge {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface-2, var(--surface));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.3s ease, border-color 0.3s ease;
}
.conquista-badge svg { flex-shrink: 0; margin-top: 1px; color: var(--text-2); }
.conquista-badge .conquista-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.conquista-badge .conquista-nome { font-size: 0.74rem; font-weight: 500; color: var(--text); line-height: 1.2; }
.conquista-badge .conquista-descricao { font-size: 0.66rem; color: var(--text-2); line-height: 1.3; }
.conquista-badge.desbloqueada {
  opacity: 1;
  border-color: var(--teal);
  background: var(--teal-dim, rgba(29,158,117,0.08));
  animation: conquista-desbloqueio 0.4s cubic-bezier(.34,1.56,.64,1);
}
.conquista-badge.desbloqueada svg { color: var(--teal-light); }
@keyframes conquista-desbloqueio {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ---------- prestígio ---------- */
.prestigio-panel {
  background: linear-gradient(135deg, rgba(216,90,48,0.08), var(--surface));
  border: 1px solid var(--divida);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  animation: prestigio-disponivel 2.5s ease-in-out infinite;
}
@keyframes prestigio-disponivel {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216,90,48,0); }
  50% { box-shadow: 0 0 0 6px rgba(216,90,48,0.08); }
}
.prestigio-titulo { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.9rem; }
.prestigio-texto { font-size: 0.75rem; color: var(--text-2); margin-top: 2px; }
.prestigio-btn { background: var(--divida); flex-shrink: 0; }
.prestigio-btn:hover { background: var(--divida-light); }

@keyframes prestigio-flash {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}
.prestigio-flash-overlay {
  position: fixed; inset: 0; background: var(--divida-light); z-index: 2000;
  pointer-events: none; opacity: 0; animation: prestigio-flash 0.6s ease forwards;
}

/* ---------- modal de boas-vindas ---------- */
.welcome-emoji { font-size: 2.4rem; margin-bottom: 10px; animation: respirar 3s ease-in-out infinite; }
.welcome-lista { text-align: left; font-size: 0.8rem; color: var(--text-2); margin: 10px 0 20px; display: flex; flex-direction: column; gap: 6px; }
.welcome-lista .item { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.welcome-lista .item b { color: var(--teal-light); font-family: "JetBrains Mono", monospace; }

/* ---------- toast de conquista ---------- */
.achievement-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1500;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.5);
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.achievement-toast.mostrar { transform: translateX(0); }
.achievement-toast-icone { font-size: 1.8rem; }
.achievement-toast-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-light);
}
.achievement-toast-nome { font-weight: 500; font-size: 0.85rem; }

/* ---------- ripple nos botões principais ---------- */
button.hf-btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple-anim 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(3); opacity: 0; }
}

/* ---------- post-it: lembrete de retorno à atividade ---------- */
.postit {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}
@media (max-width: 860px) { .postit { padding: 0 16px; } }

.postit-form, .postit-ativo {
  background:
    linear-gradient(135deg, rgba(240,197,90,0.18), var(--surface) 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 24px);
  border: 1px solid #c9a94a;
  border-radius: 2px 14px 14px 14px;
  padding: 20px 20px 16px;
  position: relative;
  transform: rotate(-0.6deg);
  transform-origin: top left;
  box-shadow: 0 16px 32px -14px rgba(0,0,0,0.6), 0 2px 0 rgba(255,255,255,0.04) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: postit-surge 0.5s cubic-bezier(.2,.8,.2,1.2);
}
.postit-form:hover, .postit-ativo:hover {
  transform: rotate(0deg) translateY(-1px);
  box-shadow: 0 20px 38px -14px rgba(0,0,0,0.65), 0 2px 0 rgba(255,255,255,0.04) inset;
}
@keyframes postit-surge {
  0% { opacity: 0; transform: rotate(-4deg) translateY(-8px) scale(0.96); }
  100% { opacity: 1; transform: rotate(-0.6deg) translateY(0) scale(1); }
}
/* cantinho dobrado, pra reforçar a metáfora de post-it de verdade */
.postit-form::before, .postit-ativo::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 16px 16px 0 0;
  border-color: rgba(0,0,0,0.25) transparent transparent transparent;
  border-radius: 2px 0 0 0;
  filter: drop-shadow(-1px 1px 1px rgba(0,0,0,0.2));
}
/* percinho no topo, tipo alfinete segurando o post-it */
.postit-form::after, .postit-ativo::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 26px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0d98a, #c9a94a 60%, #9c7d2f 100%);
  box-shadow: 0 3px 5px rgba(0,0,0,0.4);
}
.postit-fechar {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(0,0,0,0.18);
  color: var(--text);
  opacity: 0.75;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.postit-fechar svg { width: 14px; height: 14px; }
.postit-fechar:hover { opacity: 1; background: rgba(0,0,0,0.28); border-color: #c9a94a; transform: scale(1.06); }
.postit-oculto { display: flex; justify-content: flex-end; }
.postit-pill {
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.postit-pill:hover { border-color: #c9a94a; color: #d9b45c; }
.postit-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d9b45c;
  margin-bottom: 8px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}
.postit-form-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
#postit-input {
  width: 100%;
  background: rgba(0,0,0,0.18);
  color: var(--text);
  border: 1px solid rgba(201,169,74,0.35);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-family: "Inter", sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#postit-input:focus {
  outline: none;
  border-color: #c9a94a;
  box-shadow: 0 0 0 3px rgba(201,169,74,0.18);
}
#postit-timer {
  background: var(--surface-2, var(--surface));
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 0.76rem;
  font-family: "Inter", sans-serif;
}
.postit-btn { padding: 9px 18px; font-size: 0.82rem; }

.postit-ativo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.postit-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.postit-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d9b45c;
}
#postit-tarefa { font-size: 0.88rem; font-weight: 500; color: var(--text); word-break: break-word; }
.postit-acoes { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.postit-timer-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #d9b45c;
  border: 1px solid #c9a94a;
  border-radius: 20px;
  padding: 3px 9px;
}
.postit-editar {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.postit-editar:hover { border-color: var(--teal); color: var(--teal-light); }
.postit-voltar { padding: 8px 16px; font-size: 0.8rem; background: #c9a94a; }
.postit-voltar:hover { background: #d9b45c; }

.alarme-modal .era-modal-card { border-color: #c9a94a; }
.alarme-titulo { font-size: 1.6rem; font-weight: 700; margin: 4px 0 10px; }
.alarme-tarefa {
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface-2, var(--surface));
  border: 1px dashed #c9a94a;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
}
.alarme-modal.aberto .era-modal-card { animation: alarme-shake 0.5s ease; }
@keyframes alarme-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ---------- áreas ---------- */
.areas-lista { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.area-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.area-card.atual { border-color: var(--teal); background: var(--teal-dim, rgba(29,158,117,0.08)); }
.area-card.bloqueada { opacity: 0.5; }
.area-card .area-numero {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.area-card.atual .area-numero { border-color: var(--teal); color: var(--teal-light); }
.area-card .area-info { flex: 1; min-width: 0; }
.area-card .area-nome { font-size: 0.85rem; font-weight: 500; }
.area-card .area-desc { font-size: 0.7rem; color: var(--text-2); margin-top: 1px; }
.area-card .area-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--teal-light);
  flex-shrink: 0;
}

/* ---------- ticker de dicas ---------- */
.ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--bg-2, var(--bg));
  border-top: 1px solid var(--border);
  overflow: hidden;
  z-index: 50;
  display: flex;
  align-items: center;
}
.ticker-track {
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-2);
  padding-left: 100%;
  animation: ticker-scroll 32s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
body { padding-bottom: 30px; }

@media (prefers-reduced-motion: reduce) {
  .avatar, .avatar-glow.on, .stage-bg-inner, .stage-aura, .streak-tag, .conquista-badge.desbloqueada, .prestigio-panel, .welcome-emoji, .alarme-modal.aberto .era-modal-card, .companion, .companion::after, .qte-spot.mostrar, .qte-spot svg, .qte-spot::before, .qte-spot::after, .postit-form, .postit-ativo, .fagulha-spot, .estrela, .estrela.nova, .aura-particulas,
  #era-modal .era-modal-card, #era-modal .era-modal-card::before, #era-modal .era-modal-img,
  #era-modal .era-modal-eyebrow, #era-modal .era-modal-nome, #era-modal .era-modal-cenario,
  #era-modal .welcome-lista, #era-modal #era-modal-fechar { animation: none !important; transform: none !important; }
  .avatar-acao.golpear { animation: none !important; transform: none !important; opacity: 0 !important; }
  .pet-sprite { animation: none !important; }
  .ticker-track { animation: none; padding-left: 12px; }
  * { transition-duration: 0.01ms !important; }
}
