/* RANKS DE PODER (#287): a lista e a festa. */

.power[data-rank-clicavel='1'] {
  cursor: pointer;
  transition: filter 160ms ease;
}
.power[data-rank-clicavel='1']:hover {
  filter: brightness(1.12);
}

/* ── lista ── */

.rankp {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 8, 14, 0.72);
}

.rankp__caixa {
  width: 100%;
  max-width: 460px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid #2c3550;
  background: #121727;
  color: #e6ecff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.rankp__topo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #253052;
}
.rankp__topo strong {
  font-size: 16px;
  letter-spacing: 0.3px;
}
.rankp__agora {
  grid-column: 1;
  font-size: 12px;
  color: #9fb0d8;
}
.rankp__agora b {
  color: #ffd88a;
}
.rankp__x {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #2c3550;
  background: #1a2136;
  color: #cfd8f0;
  cursor: pointer;
}
.rankp__x:hover {
  background: #232c47;
}

.rankp__lista {
  margin: 0;
  padding: 8px;
  list-style: none;
  overflow-y: auto;
}

.rankp__item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
/* Não alcançado fica apagado — mas o texto continua legível de propósito:
   é a lista que deve dar vontade de chegar lá. */
.rankp__item[data-ok='0'] {
  opacity: 0.62;
}
.rankp__item[data-atual='1'] {
  border-color: #f0b34a;
  background: rgba(240, 179, 74, 0.1);
}

.rankp__letra {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: #ffd88a;
}
.rankp__min {
  font-size: 12px;
  color: #9fb0d8;
}
.rankp__premio {
  font-size: 12px;
  font-weight: 700;
  color: #a9e08a;
  text-align: right;
}

/* ── festa ── */

.rankf {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 12, 0.82);
  animation: rankf-entra 260ms ease-out;
}

@keyframes rankf-entra {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.rankf__caixa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 34px;
  border-radius: 16px;
  border: 1px solid #f0b34a;
  background: radial-gradient(120% 120% at 50% 0%, #2a2313 0%, #14161f 70%);
  text-align: center;
  color: #ffeec2;
}

.rankf__sub {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d8c191;
}

.rankf__letra {
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
  color: #ffd166;
  text-shadow: 0 0 22px rgba(255, 209, 102, 0.65);
  animation: rankf-pulsa 1.6s ease-in-out infinite;
}

@keyframes rankf-pulsa {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

.rankf__ganhos {
  font-size: 13px;
  color: #a9e08a;
  min-height: 18px;
  max-width: 320px;
}

.rankf__btn {
  margin-top: 6px;
  padding: 10px 26px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #f7c66a, #e0a23c);
  color: #33240a;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}
.rankf__btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Quem pediu para não animar, não anima. */
@media (prefers-reduced-motion: reduce) {
  .rankf,
  .rankf__letra {
    animation: none;
  }
}
