.ranking-page {
  padding: 40px;
}

.ranking-title {
  text-align: center;
  color: #e60000;
  margin-bottom: 40px;
}

.ranking-grid {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.ranking-box {
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 90px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto; /* centraliza */
  padding: 60px 50px;
  margin: 0 auto 250px;  /* centraliza e dá espaço embaixo */
  margin-bottom: 0;
  position: relative;
}

.ranking-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #ff3b3b;
  font-size: 28px;
  width: 45px;
  height: 70px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

/* esquerda */
.ranking-arrow.left {
  left: 0px;
}

/* direita */
.ranking-arrow.right {
  right: 0px;
}

/* hover */
.ranking-arrow:hover {
  transform: translateY(-50%) scale(1.3);
}

.ranking-box h2 {
  text-align: center;
  color: #e70000;
  margin-top: -40px;   /* puxa pra cima */
  margin-bottom: 20px;
  text-align: center;
  font-size: 30px;
}

.ranking-list {
  display: flex;
  gap: 28px;              /* 🔥 ISSO separa os cards */
  justify-content: center;
  align-items: stretch;
  transition: transform 0.6s ease;
  will-change: transform;
}

.ranking-wrapper {
  overflow: hidden;
  position: relative;
}


.ranking-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  padding: 12px;
  background: #0d0d0d;
  border: 1px solid #4a0000;
  border-radius: 6px;
}

.ranking-item span:first-child {
  font-weight: bold;
  color: #fff;
}

.ranking-item span:last-child {
  color: #c40000;
  margin-top: 5px;
}

.ranking-item span {
  font-weight: bold;
}





.ranking-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ranking-card {
  background: #0b0b0b; /* quase preto */
  border: 1px solid rgba(150, 0, 0, 0.6); /* vermelho fraquinho */
  border-radius: 10px;

  width: 500px;        /* card maior */
  padding: 35px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  box-sizing: border-box;
  
}

.ranking-top {
  font-size: 25px;
  font-weight: bold;
  color: rgb(231, 0, 0);
  margin-bottom: 5px;
  position: relative;
  bottom: 15px;
}

.ranking-foto img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.15);
  transform: scale(1.2); /* 👈 cresce visualmente */
}

.ranking-nick {
  font-size: 20px;          /* base */
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  transform: scale(1.15) translateY(-6px); /* 👈 sobe o nick */
  color: #e60000;
}

.ranking-valor {
  position: relative;
  font-size: 20px;
  font-weight: bold;
  margin-top: 12px;
  color: #e60000;
  top: 10px;
}

.ranking-card {
  transition: transform 0.2s ease;
}

.ranking-card:hover {
  transform: scale(1.03);
}







/* ===== SELETOR DE MODOS ===== */
.ranking-modos {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.ranking-modos .modo {
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.ranking-modos .modo:hover {
  background: rgba(255,255,255,0.15);
}

.ranking-modos .modo.ativo {
  background: rgba(255,255,255,0.28);
}





.guild-logo {
  display: grid;
  grid-template-columns: repeat(8, 18px); /* ajusta tamanho aqui */
  gap: 3px;
  justify-content: center;
}

.guild-pixel {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

.ranking-box[data-ranking="guildwar"] .ranking-arrow.left {
  left: -13px;   /* puxa mais pra esquerda */
}

.ranking-box[data-ranking="guildwar"] .ranking-arrow.right {
  right: -13px;  /* puxa mais pra direita */
}


#guildwar-semanal-list .ranking-card {
  width: 240px;     /* afina o card */
  height: 370px;
  padding: 20px;    /* menos espaço interno */
  gap: 8px;
}

#guildwar-semanal-list .ranking-nick {
    margin-top: 10px;
}

#guildwar-semanal-list .ranking-top {
    margin-top: 20px;
}

#guildwar-semanal-list .ranking-foto {
    margin-bottom: 30px;
}

#guildwar-semanal-list .ranking-points {
    bottom: 50px;
}

#guildwar-semanal-list .ranking-valor {
    transform: translateY(-40px);
}



#reset-semanal-list .ranking-card {
  width: 230px;
}

/* ===== SELETOR TOTAL / SEMANAL ===== */
.ranking-modos {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(20,20,20,0.95),
    rgba(10,10,10,0.95)
  );
  border: 1px solid rgba(255, 0, 0, 0.25);
  box-shadow:
    inset 0 0 10px rgba(255, 0, 0, 0.12),
    0 0 18px rgba(0, 0, 0, 0.8);
}

/* BOTÕES */
.ranking-modos button {
  background: transparent;
  border: none;
  color: #cfcfcf;
  padding: 10px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

/* HOVER */
.ranking-modos button:hover {
  color: #ffffff;
  background: rgba(255, 0, 0, 0.15);
  box-shadow:
    inset 0 0 8px rgba(255, 0, 0, 0.35),
    0 0 10px rgba(255, 0, 0, 0.25);
}

/* BOTÃO ATIVO */
.ranking-modos button.ativo {
  color: #ffffff;
  background: linear-gradient(
    145deg,
    rgba(255, 0, 0, 0.45),
    rgba(160, 0, 0, 0.55)
  );
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.15),
    0 0 14px rgba(255, 0, 0, 0.5);
}

.ranking-modos {
  margin: 0 auto 30px auto; /* centraliza horizontalmente */
}

.ranking-page {
  text-align: center;
}

#reset-semanal-list {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: nowrap;      /* 👈 NÃO quebra linha */
  overflow: hidden;       /* 👈 corta o que passar */
}

.ranking-box {
    position: relative;
    overflow: hidden; /* ISSO AQUI SEGURA OS CARDS */
}

.ranking-list {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
}

#ranking-kills-semanal {
    overflow: hidden;
}

#ranking-kills-semanal .ranking-list {
    display: flex;
    transition: transform 0.4s ease;
    width: max-content; /* importante */
}

#ranking-kills-semanal .ranking-card {
    width: 230px;
    flex: 0 0 auto;

}

#ranking-kills-semanal .ranking-list {
    display: flex;
    overflow: hidden;
}

.ranking-box[data-ranking="guildwar"] .ranking-card {
  position: relative;
  right: 15px;
  width: 220px; /* diminui aqui */
}




.ranking-classes {
    position: relative;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    margin-top: 15px;
    flex-wrap: wrap;
}

.ranking-classes button {
    background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
    
    border: 1px solid #ff0000;
    border-radius: 8px;

    color: #cfcfcf;

    padding: 10px 22px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    transition: all 0.25s ease;

    box-shadow:
        inset 0 0 8px rgba(255, 0, 0, 0.15),
        0 0 8px rgba(0,0,0,0.6);
}

.ranking-classes button:hover {
    border-color: #ff2a2a;

    color: #ff0000;

    transform: translateY(-2px);

    box-shadow:
        inset 0 0 10px rgba(255,0,0,0.25),
        0 0 12px rgba(255,0,0,0.35);
}