* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
  background: #0a0a1a;
  color: #e0e0ff;
  min-height: 100vh;
}

/* ===== PÁGINAS DE LOGIN / CADASTRO / TERMOS ===== */
.container {
  max-width: 520px;
  margin: 60px auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 40px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  text-align: center;
}

h1 {
  color: #FF1A1A;
  font-size: 2.8rem;
  letter-spacing: -1px;
  text-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
}
h2 {
  color: #0055FF;
  font-size: 2rem;
}
.sub {
  color: #a0a0c0;
  margin-bottom: 28px;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.btn {
  display: block;
  padding: 16px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: #FF1A1A;
  color: white;
  box-shadow: 0 8px 24px rgba(255, 26, 26, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 26, 26, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0ff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

label {
  display: block;
  color: #c0c0e0;
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 6px;
  text-align: left;
}
input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}
input:focus {
  border-color: #0055FF;
}

.error {
  color: #FF6B6B;
  background: rgba(255, 0, 0, 0.1);
  padding: 10px;
  border-radius: 12px;
  margin-top: 12px;
}
.success {
  color: #6BFF6B;
  background: rgba(0, 255, 0, 0.1);
  padding: 10px;
  border-radius: 12px;
  margin-top: 12px;
}
.link {
  display: block;
  margin-top: 16px;
  color: #6a6aff;
  text-decoration: none;
}
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 32px;
  color: #5a5a7a;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FF1A1A;
  letter-spacing: -1px;
}
.logo span {
  color: white;
  font-weight: 300;
}

.logo-image {
  display: block;
  max-width: 150px;
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.username {
  color: #a0a0c0;
}
.btn-logout {
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0ff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 40px;
  text-decoration: none;
  transition: 0.2s;
}
.btn-logout:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: #FF1A1A;
}

.search-bar {
  display: flex;
  gap: 8px;
  max-width: 500px;
  width: 100%;
}
.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  outline: none;
}
.search-bar input:focus {
  border-color: #0055FF;
}
.search-bar button {
  padding: 10px 24px;
  border-radius: 40px;
  border: none;
  background: #0055FF;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.search-bar button:hover {
  background: #0044CC;
}

/* ===== CATÁLOGO ===== */
.container-catalog {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}

.categories {
  display: none; /* escondido porque só temos FNF */
}

/* GRID – 6 colunas fixas em telas grandes */
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* Cards */
.game-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  border-color: #0055FF;
}
.game-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #1a1a3a;
}
.game-card .info {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.game-card .title {
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  line-height: 1.2;
  margin-bottom: 4px;
}
.game-card .category {
  font-size: 0.75rem;
  color: #6a6aff;
}
.game-card .desc {
  font-size: 0.8rem;
  color: #9090b0;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: #6a6a8a;
}

/* Título da categoria */
.category-title {
  font-size: 2rem;
  color: #FF1A1A;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.category-title span {
  background: rgba(255, 26, 26, 0.12);
  padding: 4px 20px;
  border-radius: 40px;
  border: 1px solid rgba(255, 26, 26, 0.2);
}

/* ===== PÁGINA DO JOGO ===== */
.game-wrapper {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.game-area {
  width: 100%;
  min-height: 480px;
  background: #0a0a0a;
  border-radius: 16px;
  overflow: hidden;
}
.game-area iframe {
  width: 100%;
  height: 480px;
  border: 0;
}
.game-info {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.game-info h2 {
  color: white;
  font-size: 1.8rem;
}
.game-meta {
  color: #9090b0;
}
.game-meta a {
  color: #6a6aff;
  text-decoration: none;
}
.back-link {
  color: #6a6aff;
  text-decoration: none;
  font-weight: 600;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1400px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .game-card img {
    height: 110px;
  }
}
@media (max-width: 400px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: stretch;
  }
  .search-bar {
    max-width: 100%;
  }
  .user-info {
    justify-content: space-between;
  }
  .game-area {
    min-height: 320px;
  }
  .game-area iframe {
    height: 320px;
  }
  .container {
    max-width: 100%;
    padding: 20px 16px;
  }
  .logo-image {
    max-width: 120px;
  }
  .category-title {
    font-size: 1.4rem;
  }
    /* Ajuste para os botões de categoria */
.cat-btn {
  padding: 6px 16px !important;
  font-size: 0.85rem !important;
  border-radius: 40px !important;
  background: rgba(255,255,255,0.06) !important;
  color: #c0c0e0 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  cursor: pointer;
  transition: 0.2s;
}
.cat-btn:hover {
  background: rgba(255,255,255,0.12) !important;
}
.cat-btn.active {
  background: #FF1A1A !important;
  color: white !important;
  border-color: #FF1A1A !important;
}
}