/* quadrado central */
.main-wrapper {
  display: flex;
  max-width: 1100px;   /* largura do quadrado */
  margin: 30px auto;   /* centraliza na tela */
  gap: 20px;
  align-items: flex-start;

  background: rgba(0, 0, 0, 0.6); 
  border: 2px solid #b8860b;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;

  position: relative;   /* não cobre o resto da página */
  z-index: 1;           /* apenas acima do fundo */
}

/* menu lateral dentro do quadrado */
.side-menu {
  width: 220px;
  flex-shrink: 0;
}

.side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-menu li {
  margin-bottom: 12px;
}

.side-menu a {
  display: block;
  padding: 12px;
  background: rgba(139,69,19,0.3);
  border: 1px solid #8b4513;
  border-radius: 6px;
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.side-menu a:hover {
  background: #b8860b;
  color: #000;
  transform: scale(1.03);
}

/* conteúdo do lado direito */
.content-area {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  padding: 20px;
  min-height: 420px;
  color: #fff;

  position: relative;
  z-index: 2;   /* garante cliques sobre o fundo */
}

/* === Submenu de Quests === */
.quest-submenu {
  margin-top: 10px;
  padding-left: 15px;
  border-left: 2px solid #8b4513;
  display: none; /* escondido por padrão, o JS mostra */
}

.quest-submenu li {
  margin: 6px 0;
}

.quest-submenu a {
  display: block;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #8b4513;
  border-radius: 4px;
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.3s;
}

.quest-submenu a:hover {
  background: #b8860b;
  color: #000;
  transform: scale(1.03);
}

/* Lista de Quests */
.quest-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.quest-list li {
  background: rgba(0,0,0,0.5);
  border: 1px solid #8b4513;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  color: #ddd;
  cursor: pointer; /* li inteiro é clicável */
  transition: 0.3s;
}

.quest-list li {
  background: rgba(0,0,0,0.5);
  border: 1px solid #8b4513;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  color: #ddd;
  cursor: pointer;
  transition: none; /* sem animação */
  transform: none;  /* sem movimento */
}

.quest-line {
  display: flex;
  justify-content: space-between; /* texto à esquerda, botão à direita */
  align-items: center;
  gap: 10px;
  width: 100%;
}

.quest-line span {
  flex: 1;
}

.quest-list strong {
  color: #ffd700;
}

.quest-list button {
  background: linear-gradient(135deg, #b8860b, #ffd700);
  border: 2px solid #ffd700;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
  color: #111;
  transition: 0.3s;
}

.quest-list button:hover {
  background: linear-gradient(135deg, #a6750a, #d4af37); /* um dourado mais escuro */
  transform: scale(1.08);
  color: #111;
}


/* Botão OK em modais */
.modal-ok-btn {
  background: linear-gradient(135deg, #b8860b, #ffd700);
  border: 2px solid #ffd700;
  border-radius: 6px;
  padding: 8px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  color: #111;
  transition: 0.3s;
  display: block;          /* ocupa a linha toda */
  margin: 20px auto 0;     /* centraliza horizontalmente */
  text-align: center;      /* garante alinhamento */
}

.modal-ok-btn:hover {
  transform: scale(1.05);
  background: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* === Doação === */
.content-area:has(.donate-options) {
  display: flex;
  justify-content: center;   /* centraliza horizontal */
  align-items: center;       /* centraliza vertical */
}

.donate-options {
  display: flex;
  flex-direction: column;   /* empilha os botões */
  align-items: center;
  gap: 25px;                /* distância entre eles */
  width: 100%;
}

.donate-btn {
  background: linear-gradient(135deg, #b8860b, #ffd700);
  border: 3px solid #ffd700;
  border-radius: 10px;
  padding: 18px 40px;
  font-weight: bold;
  font-size: 1.2rem;
  color: #111;
  text-decoration: none;
  transition: 0.3s;
  width: 80%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.donate-btn:hover {
  transform: scale(1.05);
  background: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* === Votação === */
.vote-options {
  display: flex;
  flex-direction: column;  /* botões embaixo do outro */
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.vote-options h2 {
  color: #ffd700;
  font-family: 'MedievalSharp', cursive;
  margin-bottom: 15px;
  text-align: center;
}

.vote-btn {
  background: linear-gradient(135deg, #b8860b, #ffd700);
  border: 3px solid #ffd700;
  border-radius: 10px;
  padding: 16px 35px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #111;
  text-decoration: none;
  transition: 0.3s;
  width: 80%;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.vote-btn:hover {
  transform: scale(1.05);
  background: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* External vote icons styling and hover zoom effect */
.vote-options .vote-external {
  /* use a vertical stack of rows (.vt-row) so the JS markup of 2/2/1 centers nicely */
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 720px; /* limit the width so icons stay compact */
  margin: 0 auto;
}

/* each vt-row holds 1..n icons laid out horizontally */
.vote-external .vt-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.vote-options .vote-external a {
  display: inline-flex;
  padding: 6px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}

.vote-options .vote-external a img,
.vote-options .vote-external .vote-external-img {
  display: block;
  width: 140px;
  height: 48px;
  object-fit: contain;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.vote-options .vote-external a:hover img,
.vote-external a:hover .vote-external-img {
  transform: scale(1.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Slightly smaller on very small screens */
@media (max-width: 480px) {
  .vote-options .vote-external a img,
  .vote-external .vote-external-img {
    width: 110px;
    height: 38px;
  }
}

/* === Escala com efeito premium === */
.escala-steps {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  background: #000;             /* separador preto */
  border: 2px solid #b8860b;
  border-radius: 8px;
  padding: 2px;
  margin: 20px 0 40px;
}

.escala-step {
  flex: 1;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);  /* bloqueado */
  border-radius: 4px;
  border: 1px solid #b8860b;    /* borda leve */
  color: #aaa;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.escala-step.active {
  background: linear-gradient(135deg, var(--step-color, #ffd700), #fff3c4);
  color: #111;
  border: 2px solid #ffd700;
  box-shadow: 0 0 15px rgba(255,215,0,0.6), inset 0 0 6px rgba(255,255,255,0.4);
  transform: scale(1.02);
}

/* efeito de brilho passando */
.escala-step.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  60% { left: 100%; }
  100% { left: 100%; }
}

.escala-step span {
  position: relative;
  z-index: 1;  /* texto acima do efeito */
  pointer-events: none;
}

/* tabela da escala */
.escala-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.escala-table th,
.escala-table td {
  border: 1px solid rgba(139, 69, 19, 0.5);
  padding: 12px;
  text-align: center;
  color: #fff;
}

.escala-table th {
  background: rgba(139, 69, 19, 0.3);
  color: #ffd700;
}

.escala-table button {
  padding: 8px 15px;
  border-radius: 6px;
  border: 2px solid #ffd700;
  background: linear-gradient(135deg, #b8860b, #ffd700);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.escala-table button:hover:enabled {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.escala-table button:disabled {
  background: rgba(100, 100, 100, 0.5);
  border: 2px solid #555;
  color: #aaa;
  cursor: not-allowed;
}
/* Ranking PvP */
.rank-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.rank-table th,
.rank-table td {
  border: 1px solid rgba(139, 69, 19, 0.5);
  padding: 12px;
  text-align: center;
  color: #fff;
}

.rank-table th {
  background: rgba(139, 69, 19, 0.3);
  color: #ffd700;
}

.rank-table button {
  padding: 8px 15px;
  border-radius: 6px;
  border: 2px solid #ffd700;
  background: linear-gradient(135deg, #b8860b, #ffd700);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.rank-table button:hover:enabled {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.rank-table button:disabled {
  background: rgba(100, 100, 100, 0.5);
  border: 2px solid #555;
  color: #aaa;
  cursor: not-allowed;
}
/* Centralizar títulos das seções */
.content-area h2 {
  text-align: center;
  font-family: 'MedievalSharp', cursive;
  color: #ffd700;
  margin-bottom: 20px;
}
/* Caixa Surpresa */
.event-chest {
  text-align: center;
  margin: 20px 0;
}

.chest-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  background: url('/img/chest.png') no-repeat center/contain;
}

.chest-icon.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   filter: drop-shadow(0 0 5px gold); }
  50%  { transform: scale(1.1); filter: drop-shadow(0 0 20px gold); }
  100% { transform: scale(1);   filter: drop-shadow(0 0 5px gold); }
}

#openChestBtn {
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid #ffd700;
  background: linear-gradient(135deg, #b8860b, #ffd700);
  cursor: pointer;
  transition: 0.3s;
}

#openChestBtn:disabled {
  background: rgba(100, 100, 100, 0.5);
  border: 2px solid #555;
  color: #aaa;
  cursor: not-allowed;
}

#openChestBtn:hover:enabled {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

#chestTimer {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #ccc;
}

.event-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.event-table th,
.event-table td {
  border: 1px solid rgba(139, 69, 19, 0.5);
  padding: 10px;
  text-align: center;
  color: #fff;
}

.event-table th {
  background: rgba(139, 69, 19, 0.3);
  color: #ffd700;
}

.reward-result {
  margin-top: 20px;
  font-size: 1.1rem;
  text-align: center;
  color: #ffd700;
  font-weight: bold;
}
/* === Caixa Surpresa (baú) — use estes arquivos: /img/chest-closed.svg e /img/chest-open.svg === */
.chest-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* estado fechado (locked) */
.chest-icon.locked {
  background-image: url('/img/chest-closed.svg');
}

/* estado aberto (quando o jogador abriu) */
.chest-icon.open {
  background-image: url('/img/chest-open.svg');
}

/* efeito de pulso quando disponível */
.chest-icon.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   filter: drop-shadow(0 0 5px gold); }
  50%  { transform: scale(1.07); filter: drop-shadow(0 0 18px gold); }
  100% { transform: scale(1);   filter: drop-shadow(0 0 5px gold); }
}
body.checking-session .main-wrapper,
body.checking-session .top-box,
body.checking-session header,
body.checking-session footer,
body.checking-session .copyright {
  display: none !important;
}

#loadingOverlay {
  display: flex;
}
.quest-list button.quest-disabled,
.quest-submenu button.quest-disabled {
  background: #555 !important;
  color: #ccc !important;
  cursor: not-allowed !important;
  pointer-events: none;
  opacity: 0.7;
}
.quest-info {
  font-size: 1.05rem; /* aumenta um pouco */
  color: #f5f5f5;
  line-height: 1.4;
}

.quest-info strong {
  color: #ffd700; /* mantém o nome dourado */
  font-size: 1.15rem; /* título ligeiramente maior */
  margin-right: 6px;
}

/* Quest pronta para recompensa */
.quest-list button.quest-ready {
  background: linear-gradient(135deg, #32cd32, #7CFC00); /* verde vivo */
  border: 2px solid #7CFC00;
  color: #111;
  box-shadow: 0 0 10px rgba(124, 252, 0, 0.6);
}

/* Quest concluída / finalizada */
.quest-list button.quest-done {
  background: linear-gradient(135deg, #444, #666);
  border: 2px solid #888;
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.8;
}
#messageModal ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.quest-list button.quest-complete {
  background: linear-gradient(135deg, #3cb371, #9acd32);
  border: 2px solid #00ff7f;
  color: #111;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.5);
  animation: glow-green 1.5s ease-in-out infinite alternate;
}

@keyframes glow-green {
  from { box-shadow: 0 0 6px rgba(0, 255, 127, 0.4); }
  to { box-shadow: 0 0 14px rgba(0, 255, 127, 0.9); }
}
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

