/* =========================================================
   MINI PERFIL / CARD DO JOGADOR
   ====================================================== */

.profile-card {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease,
    background .15s ease;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff5df;      /* dourado bem claro */
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #8a6820;           /* marrom mais fechado */
  flex-shrink: 0;
}


.profile-main small {
  display: block;
  font-size: 12px;
  color: var(--muted2);
}

.profile-main strong {
  display: block;
  font-size: 15px;
  margin-top: 2px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}


.pill-xs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  background: #ffffff;
  color: var(--muted2);
}

.pill-xs i {
  font-size: 10px;
}

.profile-arrow {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: var(--muted2);
}

.profile-arrow i {
  font-size: 12px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: .4rem 0 .7rem;
}

.profile-stats .k {
  display: block;
  font-weight: 800;
  font-size: 18px;
}

.profile-stats small {
  font-size: 12px;
  color: var(--muted);
}

/* barra de progresso do mini perfil */
.you-progress .bar {
  height: 10px;
  background: #f2f3f8;
  border-radius: 999px;
  overflow: hidden;
}

.you-progress .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold3), var(--gold));
}

.you-progress small {
  color: var(--muted);
}

.profile-card .you-progress small {
  font-size: 12px;
}

/* =========================================================
   HERO VISUAL COM STATS DA HOME
   ====================================================== */

.hero-visual {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: var(--radius);
  background: radial-gradient(
    180% 140% at 0% 0%,
    #fff7e1 0%,
    #f7f8fb 38%,
    #e7f0ff 80%
  );
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.hero-visual::before {
  content: "Estatísticas da FSB";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted2);
}

.pulse {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(closest-side, rgba(255,179,0,.4), transparent);
  border-radius: 50%;
  filter: blur(10px);
  opacity: .8;
  pointer-events: none;
  animation: pulse 3.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.stats-glance {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats-glance > div {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  box-shadow: var(--shadow);
}

.stats-glance > div::before {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.stats-glance > div:nth-child(1)::before { background: var(--ok); }
.stats-glance > div:nth-child(2)::before { background: var(--cool); }
.stats-glance > div:nth-child(3)::before { background: var(--gold); }

.stats-glance .big {
  font-weight: 800;
  font-size: 22px;
  display: block;
}

.stats-glance small {
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   DIÁRIO DOS MELHORES
   ====================================================== */

.daily-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.daily-card .simple-list li a {
  color: var(--ink);
  text-decoration: none;
  font-weight: inherit;
}

.daily-card .simple-list li a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.daily-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #fff7e1;
  color: #9c6a00;
  border: 1px solid #ffe6a8;
}

.badge.gold {
  background: linear-gradient(90deg, var(--gold3), var(--gold2));
  color: #3b2a00;
  border: none;
}

.badge.hot {
  background: #ffefef;
  border: 1px solid #ffd2d2;
  color: #b82222;
}

.badge.cool {
  background: #edf7ff;
  border: 1px solid #d8ecff;
  color: #2463a9;
}

.simple-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.simple-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.simple-list li .pos {
  width: 24px;
  color: #a78b00;
  font-weight: 800;
}

.simple-list li .nick {
  flex: 1;
}

.simple-list li strong {
  font-weight: 800;
}

.simple-list .ghost {
  opacity: .45;
}

.simple-list li.daily-player:hover {
  background: #fffcee;
}

/* Carrossel */
.daily-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.daily-window {
  overflow: hidden;
}

.daily-track {
  display: flex;
  transition: transform .35s ease;
}

.daily-slide {
  flex: 0 0 100%;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .daily-slide {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .daily-slide {
    grid-template-columns: 1fr;
  }
}

.daily-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(10,20,60,.06);
  z-index: 2;
}

.daily-nav i {
  font-size: 12px;
  color: var(--muted);
}

.daily-nav--prev { left: -18px; }
.daily-nav--next { right: -18px; }

@media (max-width: 768px) {
  .daily-nav--prev { left: -6px; }
  .daily-nav--next { right: -6px; }
}

/* =========================================================
   MISSÕES DA SEMANA (HOME)
   ====================================================== */

.mission-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mission-list li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 10px 16px;
  box-shadow: var(--shadow);
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

/* hover mais “premium” */
.mission-list li:hover {
  background: #fafafa;
  border-color: rgba(245, 193, 91, 0.45);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

/* borda lateral sutil quando concluída */
.mission-list li.is-completed {
  border-color: #ffe4a3;
  background: #fffdf7;
}

.mission-list li.is-completed::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold3), var(--gold));
}

/* card inteiro clicável (exceto o botão) */
.mission-list li[data-mission-id] {
  cursor: pointer;
}

.mission-list li .claim-btn {
  cursor: pointer !important;
}

/* coluna esquerda: texto da missão */
.mission-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mission-text strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

.mission-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* ícone de check só quando concluída */
.mission-list li.is-completed .mission-text strong i {
  color: var(--gold2);
  margin-left: 2px;
}

/* pill de recompensa – compacta e chamativa */
.mission-reward-pill {
  margin-top: 2px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 0%, #fffbe8 0%, #ffd972 55%, #ffce4a 100%);
  box-shadow: 0 8px 18px rgba(245,193,91,.45);
  font-size: 11px;
  font-weight: 800;
  color: #2b2b2b;
  white-space: nowrap;
}

.mission-reward-pill i {
  font-size: 12px;
}

/* coluna direita: progresso + ação */
.progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.progress .bar {
  height: 8px;
  background: #f2f3f8;
  border-radius: 999px;
  overflow: hidden;
  width: 170px;
}

.progress .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold3), var(--gold));
}

/* linha embaixo da barra: 5/5 + botão */
.progress-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-footer small {
  font-size: 11px;
  font-weight: 700;
  color: #6a5a00;
}

/* botão de resgatar – MAIOR e mais seguro contra misclick */
.mission-list .claim-btn {
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, var(--gold3), var(--gold));
  color: #2b2b2b;
  box-shadow: 0 6px 14px rgba(245,193,91,.45);
  transition: transform .08s ease, box-shadow .1s ease;
}

.mission-list .claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(245,193,91,.55);
}

.mission-list .claim-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(245,193,91,.35);
}

.mission-list .claim-btn[disabled] {
  opacity: .6;
  cursor: default !important;
  box-shadow: none;
  transform: none;
}

/* recompensa já resgatada */
.claimed-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff8e1;
  border: 1px solid #ffe2a3;
  color: #856100;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* =========================================================
   LINHA MISSÕES + GIFs (HOME)
   ====================================================== */

.missions-and-gifs {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: flex-start;
}

.missions-and-gifs > .missions-col,
.missions-and-gifs > .gif-col {
  min-width: 0;
}

.missions-and-gifs .gif-reel {
  width: 100%;
}

/* GIFs DA COMUNIDADE – HOME */
.missions-and-gifs .gif-reel .gif-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  cursor: pointer;
}

.missions-and-gifs .gif-reel .gif-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 6px 10px 10px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  position: relative;
}

.missions-and-gifs .gif-reel .gif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.missions-and-gifs .gif-reel .gif-header-left span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 6px;
}

.missions-and-gifs .gif-reel .gif-video-wrapper {
  position: relative;
  margin-top: 6px;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  padding-top: 56%;
}

.missions-and-gifs .gif-reel .gif-video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.missions-and-gifs .gif-reel .gif-footer {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.missions-and-gifs .gif-reel .gif-card.playing {
  transform: scale(1.03);
  z-index: 2;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

/* =========================================================
   "COMECE POR AQUI" (START CARDS)
   ====================================================== */

.start-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .start-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .start-grid {
    grid-template-columns: 1fr;
  }
}

.start-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease;
}

.start-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: #f3f4fb;
}

.start-icon.ranking { background: #fff7e1; color: #9c6a00; }
.start-icon.gifs    { background: #ffefef; color: #b82222; }
.start-icon.loja    { background: #edf7ff; color: #2463a9; }

.start-main h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.start-main p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.start-pill {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #fff;
}

.pill-gold {
  background: #fff7e1;
  border-color: #ffe6a8;
  color: #9c6a00;
}

.pill-hot {
  background: #ffefef;
  border-color: #ffd2d2;
  color: #b82222;
}

.pill-cool {
  background: #edf7ff;
  border-color: #d8ecff;
  color: #2463a9;
}

/* =========================================================
   TOP SEARCH
   ====================================================== */

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  width: 190px;
  outline: none;
}

.top-search button {
  height: 36px;
  width: 36px;
  border: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  color: #2b2b2b;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(255,179,0,.18);
}

/* =========================================================
   AJUSTES MOBILE ESPECÍFICOS DA HOME
   ====================================================== */

/* Tablets */
@media (max-width: 1024px) {
  .stats-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Celulares até ~768px */
@media (max-width: 768px) {
  /* Stats da home em 2 colunas */
  .stats-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stats-glance .big {
    font-size: 18px;
  }

  /* Missões + GIFs: empilha */
  .missions-and-gifs {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mission-list li {
    grid-template-columns: 1fr;
  }

  .progress i {
    width: 100%;
  }

  /* GIFs: 2 por linha */
  .missions-and-gifs .gif-reel .gif-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Celulares pequenos */
@media (max-width: 480px) {
  .stats-glance {
    grid-template-columns: 1fr;
  }

  .missions-and-gifs .gif-reel .gif-grid {
    grid-template-columns: 1fr;
  }

  .start-card {
    padding: 12px 14px;
  }

  .start-main h3 {
    font-size: 14px;
  }

  .start-main p {
    font-size: 12px;
  }
}

/* Section head + search no mobile */
@media (max-width: 640px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .top-search {
    width: 100%;
  }

  .top-search input {
    width: 100%;
  }

  .top-search button {
    width: 48px;
  }
}

/* =========================================================
   AJUSTES PARA MODO ESCURO (HOME)
   ====================================================== */

/* Cards em geral */
body:not(.theme-light) .profile-card,
body:not(.theme-light) .daily-card,
body:not(.theme-light) .mission-list li,
body:not(.theme-light) .start-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

/* Avatar e pills do mini perfil */
body:not(.theme-light) .avatar-lg {
  background: #3a2b00;
  color: #ffd35a;
}

body:not(.theme-light) .pill-xs {
  background: var(--panel2);
  border-color: var(--line);
  color: var(--muted);
}

/* Barra de progresso do mini perfil */
body:not(.theme-light) .you-progress .bar {
  background: #171922;
}

/* Hero visual: fundo mais escuro */
body:not(.theme-light) .hero-visual {
  background: radial-gradient(
    180% 140% at 0% 0%,
    #3a2b00 0%,
    #111318 40%,
    #101422 80%
  );
}

/* Cards de stats do hero */
body:not(.theme-light) .stats-glance > div {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

/* Missões */
body:not(.theme-light) .progress i {
  background: linear-gradient(90deg, #ffe9a6, #ffd35a);
}

/* Start cards */
body:not(.theme-light) .start-icon {
  background: #171922;
}

body:not(.theme-light) .start-pill {
  background: var(--panel2);
  border-color: var(--line);
}

/* Busca do Diário dos Melhores */
body:not(.theme-light) .top-search input {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

/* Hover do ranking relâmpago no modo escuro — alinhado ao restante */
body:not(.theme-light) .simple-list li.daily-player:hover {
  background: rgba(245, 193, 91, 0.10);     /* mesmo tom do hover global */
  border-radius: 8px;                       /* opcional: fica mais elegante */
}

/* Corrige nomes apagados no Ranking Relâmpago no modo escuro */
body:not(.theme-light) .rank-table tbody tr td a {
  color: var(--ink) !important;
  font-weight: 600;
}

body:not(.theme-light) .rank-table tbody tr td {
  color: var(--ink);
}

/* =========================================================
   HOVER – MINI PERFIL + START CARDS
   ====================================================== */

/* HOVER NO MODO CLARO – mais clean, dourado bem sutil */
.profile-card:hover,
.start-card:hover {
  background: radial-gradient(
    140% 220% at 0% 0%,
    #fff6de 0%,   /* leve brilho dourado no canto */
    #ffffff 55%,  /* some rápido pro branco */
    #ffffff 100%
  );
  border-color: rgba(245, 193, 91, 0.85);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

/* textos continuam com a cor padrão de tinta */
.profile-card:hover,
.profile-card:hover .profile-main small,
.profile-card:hover .profile-main strong,
.start-card:hover,
.start-card:hover .start-main h3,
.start-card:hover .start-main p {
  color: var(--ink);
}

/* pílulas ganham só um contorno/leve fundo quente */
.profile-card:hover .pill-xs,
.start-card:hover .start-pill {
  background: #fffdf7;
  border-color: rgba(245, 193, 91, 0.7);
  color: #8a6820;
}

/* HOVER NO MODO ESCURO – card continua escuro com halo dourado */
body:not(.theme-light) .profile-card:hover,
body:not(.theme-light) .start-card:hover {
  background: radial-gradient(
    150% 180% at 0% 0%,
    #2b2417 0%,
    #181a23 45%,
    #151824 100%
  );
  border-color: rgba(245, 193, 91, 0.75);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
  transform: translateY(-3px);
  color: #f7f3e8;
}

body:not(.theme-light) .profile-card:hover .profile-main small,
body:not(.theme-light) .profile-card:hover .profile-main strong,
body:not(.theme-light) .start-card:hover .start-main h3,
body:not(.theme-light) .start-card:hover .start-main p {
  color: #f7f3e8;
}

body:not(.theme-light) .profile-card:hover .pill-xs,
body:not(.theme-light) .start-card:hover .start-pill {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(245, 193, 91, 0.8);
  color: #f9e5a4;
}

/* =========================================================
   MODAL – DETALHES DAS MISSÕES
   ====================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.modal-backdrop.is-visible {
  display: flex;
}

.missions-modal {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 18px 20px 16px;
}

.missions-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.missions-modal__header h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.missions-modal__header p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* meta (métrica / alvo / recompensa) */
.missions-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* corpo: completaram x não completaram */
.missions-modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}

.missions-col-list h4 {
  margin: 0 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted2);
}

.players-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
  border-radius: 10px;
  background: #f7f8fc;
  border: 1px solid var(--line);
}

.players-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  border-bottom: 1px solid rgba(15, 20, 40, 0.03);
}

.players-list li:last-child {
  border-bottom: none;
}

.players-list .player-main {
  display: flex;
  flex-direction: column;
}

.players-list .player-main strong {
  font-size: 13px;
}

.players-list .player-main small {
  font-size: 11px;
  color: var(--muted);
}

.players-list .player-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.players-list .player-badge {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid rgba(15, 20, 40, 0.05);
  color: var(--muted2);
}

.missions-modal__footer {
  border-top: 1px dashed var(--line);
  padding-top: 6px;
  margin-top: 4px;
  text-align: right;
}

.missions-modal__footer small {
  font-size: 11px;
  color: var(--muted2);
}


/* =========================================================
   LISTA DE MISSÕES – MAIS COMPACTA
   ====================================================== */

.mission-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mission-list li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 10px 16px;
  box-shadow: var(--shadow);
}

/* borda lateral sutil quando concluída */
.mission-list li.is-completed {
  border-color: #ffe4a3;
  background: #fffdf7;
}

.mission-list li.is-completed::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold3), var(--gold));
}

/* coluna esquerda: texto da missão */
.mission-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mission-text strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

.mission-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* ícone de check só quando concluída */
.mission-list li.is-completed .mission-text strong i {
  color: var(--gold2);
  margin-left: 2px;
}

/* pill de recompensa – mais compacta porém chamativa */
.mission-reward-pill {
  margin-top: 2px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 0%, #fffbe8 0%, #ffd972 55%, #ffce4a 100%);
  box-shadow: 0 8px 18px rgba(245,193,91,.45);
  font-size: 11px;
  font-weight: 800;
  color: #2b2b2b;
  white-space: nowrap;
}

.mission-reward-pill i {
  font-size: 12px;
}

.mission-list li[data-mission-id] {
  cursor: pointer;
}

.mission-list .claim-btn {
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, var(--gold3), var(--gold));
  color: #2b2b2b;
  box-shadow: 0 6px 14px rgba(245,193,91,.45);
  transition: transform .08s ease, box-shadow .1s ease;
}


/* coluna direita: progresso + ação */
.progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.progress .bar {
  height: 8px;
  background: #f2f3f8;
  border-radius: 999px;
  overflow: hidden;
  width: 170px;
}

.progress .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold3), var(--gold));
}

/* linha embaixo da barra: 5/5 + botão */
.progress-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-footer small {
  font-size: 11px;
  font-weight: 700;
  color: #6a5a00;
}

/* botão de resgatar */
.claim-btn {
  padding: 4px 11px;
  border-radius: 999px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, var(--gold3), var(--gold));
  color: #2b2b2b;
  box-shadow: 0 4px 10px rgba(245,193,91,.45);
}

.claim-btn[disabled] {
  opacity: .6;
  cursor: default;
  box-shadow: none;
}

/* recompensa já resgatada */
.claimed-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff8e1;
  border: 1px solid #ffe2a3;
  color: #856100;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* =========================================================
   RESPONSIVO
   ====================================================== */

@media (max-width: 768px) {
  .missions-and-gifs {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mission-list li {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .progress {
    align-items: stretch;
  }

  .progress .bar {
    width: 100%;
  }

  .progress-footer {
    justify-content: space-between;
  }

  .missions-modal__body {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DARK MODE
   ====================================================== */

body:not(.theme-light) .missions-modal {
  background: #151824;
  box-shadow: 0 22px 60px rgba(0,0,0,0.9);
}

body:not(.theme-light) .players-list {
  background: #141827;
  border-color: rgba(255,255,255,0.04);
}

body:not(.theme-light) .players-list li {
  border-bottom-color: rgba(255,255,255,0.04);
}

body:not(.theme-light) .player-badge {
  background: rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.05);
  color: #f2f2f2;
}

body:not(.theme-light) .mission-list li {
  background: var(--panel);
}

body:not(.theme-light) .mission-reward-pill {
  box-shadow: 0 8px 20px rgba(0,0,0,.6);
}

body:not(.theme-light) .claimed-pill {
  background: rgba(245,193,91,0.08);
  border-color: rgba(245,193,91,0.4);
  color: #f9e5a4;
}

/* MODAL PROMO HOME */
.home-promo-modal {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  position: relative;
}

.home-promo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted2);
}

.home-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #fff7e1;
  border: 1px solid #ffe6a8;
  color: #9c6a00;
  margin-bottom: 8px;
}

.home-promo-modal h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.home-promo-modal p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

/* AÇÕES DO MODAL */
.home-promo-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* Botão branco */
.home-promo-actions .btn-ghost {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.home-promo-actions .btn-ghost:hover {
  background: #f8fafc;
}

.home-promo-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  padding: 8px 22px;

  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;

  background: linear-gradient(90deg, var(--gold3), var(--gold));
  color: #2b2b2b;
  box-shadow: 0 8px 20px rgba(245,193,91,.55);
  border: none;
  cursor: pointer;
}

.home-promo-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(245,193,91,.7);
}

.home-promo-actions .btn * {
  text-decoration: none !important;
}

@media (max-width: 480px) {
  .home-promo-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .home-promo-actions .btn,
  .home-promo-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* Dark mode */
body:not(.theme-light) .home-promo-modal {
  background: #151824;
  color: var(--ink);
}

body:not(.theme-light) .home-promo-modal p {
  color: var(--muted);
}

/* ===== REFINO DO MODAL PROMO NO DARK THEME ===== */

body:not(.theme-light) .home-promo-modal {
  background: #111320;                 
  border: 1px solid rgba(255,255,255,.04);
  box-shadow: 0 26px 70px rgba(0,0,0,.95);
}

body:not(.theme-light) .home-promo-tag {
  background: rgba(245,193,91,0.12);
  border-color: rgba(245,193,91,0.6);
  color: #f9e5a4;
}

body:not(.theme-light) .home-promo-modal h3 {
  color: #f9fafb;
}

body:not(.theme-light) .home-promo-modal p {
  color: #9ca3af;
}

body:not(.theme-light) .home-promo-actions .btn-ghost {
  background: #0b0e18;
  border-color: rgba(255,255,255,0.10);
  color: #e5e7eb;
}

body:not(.theme-light) .home-promo-actions .btn-ghost:hover {
  background: #141826;
}

body:not(.theme-light) .home-promo-actions .btn {
  color: #111827;
}
