:root {
  --bg: #111214;
  --text: #f6f1eb;
  --accent: #e23a3a;
  --gray: #9fa6ac;
  --highlight: #ffd369;
  --border-radius: 1rem;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

header.floating-header {
  position:absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  background-color: rgba(17, 17, 17, 0.6);
  z-index: 2;
  backdrop-filter: blur(6px);
}

.logo-wrapper {
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  text-shadow: 1px 1px 2px #000;
}

.nav-links a:hover {
  color: var(--accent);
}

.banner {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  z-index: 0;
}

.banner video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 20%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 20%),
    linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent 20%),
    linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent 20%);
  pointer-events: none;
  z-index: 1;
}

.banner-caption {
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 50%;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 3;
}

.banner-caption h1 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--highlight);
}

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.actions button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  min-width: 160px;
  text-align: center;
}

.dots {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 4;
}

.dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
  border: none;
  opacity: 0.6;
  transition: all 0.2s;
  cursor: pointer;
}

.dots button.active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.3);
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1.3); }
}

.section {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #222;
  position: relative;
  max-width: 90%;
  margin: 0 auto;
  overflow: visible;
}

.section h2 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--highlight);
  background-color: #1a1a1a;
  border-top: 1px solid #221;
  border-bottom: 1px solid #221;
  padding: 0.5rem 0;
}

.level-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.badge {
  background: #444;
  color: #eee;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
}

.grins {
  color: gold;
}

.mission {
  font-style: italic;
  margin-bottom: 1.2rem;
  color: #ccc;
}

.carousel {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
}

.carousel::-webkit-scrollbar {
  height: 6px;
}

.carousel::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}

.carousel-btn {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
}

.carousel-btn.left {
  left: -20px;
}

.carousel-btn.right {
  right: -20px;
}

.carousel::before,
.carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2rem;
  z-index: 1;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.card {
  background-color: #222;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);

  /* borda transparente para hover */
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card p {
  padding: 0.8rem;
  font-size: 0.9rem;
}

.card:hover {
  border-color: var(--highlight);
  box-shadow: 0 0 20px 0 rgba(255, 243, 191, 0.7); 
}

.certified-badge {
  position: absolute;
  transform: rotate(-10deg);
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

/* badge padrão (check ou lock) */
/* ===== Badges maiores e no topo-direito ===== */
.card-badge,
.score-badge {
  position: absolute;
  bottom: 0.3rem;       /* afasta do topo do card */
  right: 0.3rem;     /* afasta da direita do card */
  padding: 0.8rem 1.6rem;  /* badge maior */
  border-radius: 6px;      /* cantos mais arredondados */
  font-size: 2rem;         /* texto maior */
  font-weight: bold;
  z-index: 2;
}

/* cores específicas mantidas */
.card-badge {
  background: var(--highlight);
  color: var(--bg-dark);
}

.score-badge {
  background: rgba(255, 211, 105, 0.95);
  color: #111;
}

.welcome {
  text-shadow: 1px 1px 2px #000;  
  color: var(--highlight);
  font-size: 1.1rem;
  margin-left: 1rem;
}

/* homeStyle.css (ou outro arquivo global que você use) */

/* mobile menu escondido por padrão */
.menu-toggle {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--highlight);
  border: none;
  cursor: pointer;
  z-index: 11;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--header-height);
  right: 0;
  background-color: #1a1a1a;
  width: 100%;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 9;
  transform: translateY(-15%);
}

.mobile-menu a {
  padding: 0.75rem 1rem;
  color: var(--highlight);
  text-decoration: none;
  font-size: 1.1rem;
  border-bottom: 1px solid #333;
}

.mobile-menu a:hover {
  color: var(--accent);
}
/*
.mobile-menu {
  display: none;
  transform: translateY(-20px);
}

/* quando aberto, exibe como flex coluna */
.mobile-menu.open {
  display: flex;
  flex-direction: column;
}

/*ACHIEVEMENTS*/
.achievements-page {
  max-width: 1200px;
  margin: 6rem auto 2rem; /* folga pra header */
  padding: 0 1rem;
  color: var(--text);
}

.achievements-overview {
  text-align: center;
  margin-bottom: 2rem;
}

.achievements-overview h1 {
  font-size: 2.5rem;
  color: var(--highlight);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 1rem;
}

.stat .value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
}

.stat .label {
  font-size: 0.9rem;
  color: var(--gray);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

/* Cada card de badge */
.achievement-card {
  background: #1a1a1a;
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: default;
}
.achievement-card.unlocked {
  border: 2px solid var(--highlight);
}
.achievement-card.locked {
  opacity: 0.4;
}

.achievement-card:hover.unlocked {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--highlight);
}

.achievement-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.8rem;
}

.achievement-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.achievement-card p {
  font-size: 0.8rem;
  color: var(--gray);
}

.achievement-card .date {
  font-size: 0.7rem;
  color: var(--accent);
  margin-top: 0.5rem;
}
/**/
/* ===== Nav season selector (desktop) ===== */
.season-selector-nav {
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.season-selector-nav .season-select {
  background: rgba(0,0,0,0.4);
  color: var(--highlight);
  border: 1px solid var(--highlight);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.season-selector-nav .season-select:hover {
  background: var(--highlight);
  color: var(--bg-dark);
}

/* ===== Mobile ===== */
.season-selector-mobile {
  margin: 0.5rem 1rem;
}
.season-selector-mobile .season-select {
  width: 100%;
  background: rgba(0,0,0,0.4);
  color: var(--highlight);
  border: 1px solid var(--highlight);
  border-radius: 4px;
  padding: 0.4rem;
  font-size: 1rem;
}

/* Ajusta o nav-links pra não ficar esmagado */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Destaque para o link Home/Achievements */
.nav-link-special {
  font-weight: bold;
  color: var(--highlight);
  text-shadow: 1px 1px 2px #000;
  transition: color 0.2s;
}
.nav-link-special:hover {
  color: var(--accent);
}

.mobile-menu[style*="display: flex"] {
  display: flex !important;
}

/* Estilo base para o <select> de temporada */
.season-select {
  background: rgba(0,0,0,0.4);
  color: var(--highlight);
  border: 1px solid var(--highlight);
  border-radius: 4px;
  padding: 0.4rem;
  font-size: 1rem;
  cursor: pointer;
}

  .score-container{
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    margin-right: 4rem;
    margin: 0;
    position: absolute;
    left: 75%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  /* 1) Overlay leve, apenas para centralizar */
.results-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: none; /* deixa cliques passarem para fora, se precisar */
}

/* 2) Dialog com fundo semi-transparente atrás da tabela */
.results-dialog {
  position: relative;
  background: rgba(0, 0, 0, 0.8);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  max-width: 90%;
  width: 500px; /* ou o quanto achar melhor */
  pointer-events: all; /* reabilita cliques dentro do dialog */
}

/* 3) Tabela estilizada por dentro do dialog */
.results-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.results-table thead th {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--highlight);
}

.results-table tbody td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #333;
}

/* cabeçalho fixo se quiser */
.results-table thead {
  position: sticky;
  top: 0;
  background: transparent;
}

/* Centraliza as colunas 2 e 3 (Your score/The other player’s) */
.results-table th:nth-child(2),
.results-table td:nth-child(2),
.results-table th:nth-child(3),
.results-table td:nth-child(3) {
  text-align: center;
}

.results-dialog .close-btn {
  position: absolute;
  top: 0.05rem;
  right: 0.5rem;
  font-size: 1.5rem;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
}




@media (min-width: 768px) {
  body {
    font-size: 20px; /* era 14~15px */
  }
  header.floating-header {
    padding: 2rem;
  }

  .banner-caption h1 {
    font-size: 5rem; /* destaque no título principal */
  }

  .section h2 {
    font-size: 3rem;
  }

  .level-meta,
  .mission {
    font-size: 2rem;
  }

  .card p {
    font-size: 1.5rem;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-links {
    display: flex; /* ✅ mostrar os links no desktop */
    gap: 1.5rem;
  }

  .menu-toggle,
  .mobile-menu {
    display: none; /* ✅ esconder o menu sanduíche no desktop */
  }

  .actions button {
    font-size: 1.5rem;
  }

  .dots button {
    width: 14px;
    height: 14px;
  }
}

@media only screen and (min-width: 374px) and (max-width: 1000px){
  :root {
    --header-height: 60px;
  }

  header.floating-header {
    height: 60px;
    padding: 0 1rem;
  }

  .logo-img {
    height: 50px;
  }

  .banner {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* proporção 16:9 */
    height: auto;
    overflow: hidden;
  }

  .banner-caption {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 90%;
    height: auto;
    justify-content: flex-start;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    z-index: 2;
  }

  .banner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translateY(10%);
  }

  .actions button {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    margin-bottom: 1rem;
    min-width: 70px;
  }

  .card {
    max-width: 120px;
  }

  .card p {
    font-size: 0.6rem;
  }

  .logo-wrapper {
    left: 1rem;
    top: 0rem; /* ou até 0rem, se quiser colado no topo */
    height: 60px;
  }

  .section {
    padding: 1rem 0.5rem;
  }

  .dots button {
    width: 8px;
    height: 8px;
    margin-bottom: 1rem;
  }

  .mission {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .carousel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--highlight);
    z-index: 11;
  }

  .welcome {
    font-size: 0.8rem;
    margin-right: 4rem;
    /* remove o espaçamento extra que empurrava para a direita */
    margin: 0;
    /* centraliza na largura total do header */
    position: absolute;
    left: 50%;
    /*transform: translateX(-50%);*/
    /* opcionalmente ajuste o topo para alinhar verticalmente se precisar */
    top: 50%;
    transform: translate(-50%, -50%);
    /* garanta que fique acima do vídeo */
    z-index: 3;
  }

  .season-select {
    display: none;
  }

  .season-select {
    display: none;
  }
  #seasonSelectMobile {
    display: block;
    width: 100%;
  }

.achievements-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
  }

  /* card mais compacto */
  .achievement-card {
    padding: 0.6rem;
    border-radius: 0.5rem;
  }

  /* imagem menor */
  .achievement-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  /* descrição e badge menores */
  .achievement-card p {
    font-size: 0.7rem;
  }
  .achievement-card .badge {
    font-size: 0.8rem;
  }

  .score-container-mobile{
    font-size: 0.7rem;
    margin-right: 4rem;
    /* remove o espaçamento extra que empurrava para a direita */
    margin: 0;
    /* centraliza na largura total do header */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* opcionalmente ajuste o topo para alinhar verticalmente se precisar */
    top: 50%;
    transform: translate(-50%, -50%);
    /* garanta que fique acima do vídeo */
    z-index: 3;
  }

  .card-badge,
  .score-badge {
    /* badges um pouco menores no mobile */
    padding: 0.2rem 0.4rem;
    font-size: 0.5rem;
  }

  .results-dialog {
    width: 95%;
    padding: 1rem;
  }
  .results-table thead th,
  .results-table tbody td {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
  }
}
