/* ===== RESET GLOBAL (evita sobras e abas estranhas) ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ===== BODY ===== */
body {
  min-height: 100vh;
  background: linear-gradient(
  135deg,
  #0f172a,  /* azul petróleo escuro */
  #111827,  /* azul grafite */
  #020617   /* quase preto */
);

  color: #ffffff;
}
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;   /* trava render duplicado */
  text-align: center;
}


/* ===== HEADER ===== */
header.top {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 10px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.top-inner {
  max-width: 1320px;
  margin: 0 auto;
}

header.top h1 {
  font-size: 60px;
  font-weight: 700;
}

header.top p {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.9;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
main.page-content {
  max-width: 1620px;
  margin: 0 auto;
  padding: 20px 20px 20px;
}

/* ===== SEÇÃO (Aplicativos / Jogos) ===== */
.apps-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ===== GRID DOS CARDS ===== */
.apps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;

  justify-content: center;   /* centraliza os cards */
  align-items: stretch;
}


/* ===== CARD DO APP ===== */
.app-card {
  flex: 0 0 calc(20% - 20px);
  max-width: calc(20% - 20px);

  background: #ffffff;
  border-radius: 22px;
  padding: 30px 20px;

  text-align: center;
  text-decoration: none;
  color: #222;

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

/* ===== IMAGEM DO APP (máx ~3 cm) ===== */
.app-card img {
  width: 100%;
  max-width: 120px;   /* ~3 cm */
  height: auto;
  display: block;
  margin: 0 auto 15px;
  object-fit: contain;
}

/* ===== TEXTO ===== */
.app-card h2 {
  margin: 12px 0 6px;
  font-size: 22px;
  font-weight: 700;
}


.app-card p {
  font-size: 15px;
  opacity: 0.7;
  line-height: 1.4;
}

/* ===== VARIAÇÕES POR APP ===== */
.app-card.bingo {
  border-top: 6px solid #1c8c21;
}

.app-card.cartoes {
  border-top: 6px solid #e31212;
}

.app-card.roleta {
  border-top: 6px solid #ff0000;
}

.app-card.cobra {
  border-top: 6px solid #00ff11;
}

.app-card.muster {
  border-top: 6px solid #219742; 
}
.app-card.calendario {
  border-top: 6px solid #cc822e; 
}

.app-card.certs {
  border-top: 6px solid #ec7b11;
}

.app-card.simbols {
  border-top: 6px solid #1e66d0;
}

.app-card.calc {
  border-top: 6px solid #ddff008a;
}

.app-card.drops {
  border-top: 6px solid hsla(286, 100%, 50%, 0.541);
}

.app-card.visual {
  border-top: 6px solid #9c27b0; /* roxo técnico */
}
.app-card.compressor {
  border-top: 6px solid #81f59a; /* roxo técnico */
}
.app-card.petrobras {
  border-top: 6px solid #219742; 
}
/* ===== CARD DESABILITADO ===== */
.app-card.disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* TAG "EM BREVE" */
.tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #0f172a;
  color: #fff;
  padding: 6px 12px;
  font-size: 8px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  color: #fff;
  opacity: 0.8;
  color: inherit;        /* usa a mesma cor do texto */
  text-decoration: none; /* remove o sublinhado */
  font-weight: inherit;  /* não fica com cara de link */
  cursor: default;       /* evita cursor de link */
}

footer a {
  color: inherit;        /* usa a mesma cor do texto */
  text-decoration: none; /* remove o sublinhado */
  font-weight: inherit;  /* não fica com cara de link */
  cursor: pointer;      
}

footer a:hover,
footer a:visited,
footer a:active {
  color: inherit;
  text-decoration: none;
}

/* ===== RESPONSIVO ===== */


@media (max-width: 1200px) {
  .app-card {
    flex: 0 0 calc(25% - 20px); /* 4 por linha */
    max-width: calc(25% - 20px);
  }
}

@media (max-width: 900px) {
  .app-card {
    flex: 0 0 calc(33.33% - 20px); /* 3 por linha */
    max-width: calc(33.33% - 20px);
  }
}

@media (max-width: 600px) {
  .app-card {
    flex: 0 0 calc(50% - 20px); /* 2 por linha */
    max-width: calc(50% - 20px);
  }
}

.games-hidden {
  position: fixed;
  bottom: 8px;
  right: 10px;

  font-size: 18px;
  opacity: 0.25;
  cursor: pointer;
  text-decoration: none;

  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}

.games-hidden:hover {
  opacity: 0.8;
  transform: scale(1.2);
}


/* ======================================================
   AJUSTES LEVES PARA PÁGINA DE JOGOS
   (não afeta a home)
====================================================== */

body.games header.top {
  padding: 30px 20px 25px;
}

body.games header.top h1 {
  font-size: 34px;
}

body.games header.top p {
  font-size: 15px;
  opacity: 0.8;
}

/* reduz altura percebida da página */
body.games main.page-content {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* seção mais compacta */
body.games .apps-section {
  margin-bottom: 30px;
}

body.games .section-title {
  font-size: 22px;
  margin-bottom: 18px;
}

/* cards ganham mais presença */
body.games .app-card {
  flex: 0 0 260px;
  max-width: 260px;
  padding: 28px 20px;
}

/* grid mais equilibrado para poucos cards */
body.games .apps {
  gap: 32px;
}

/* card "em breve" assume que é diferente */
body.games .app-card.disabled {
  opacity: 0.45;
  filter: grayscale(40%);
}
/* ======================================================
   BOTÃO VOLTAR — PÁGINA DE JOGOS
====================================================== */

body.games .back-btn {
  position: absolute;
  top: 20px;
  right: 20px;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);

  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;

  z-index: 10;
}

body.games .back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
  background: rgba(255, 255, 255, 0.85);
}

body.games .back-btn .icon {
  font-size: 16px;
  line-height: 1;
}

body.games .back-btn .text {
  white-space: nowrap;
}
.app-card.memoria {
  border-top: 6px solid #6f5cc2; 
}
.app-card.piano {
  border-top: 6px solid #ec7b11;
}

.top-links {
  position: absolute;
  top: 10px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 06px;
}

.top-btn {
  background: linear-gradient(135deg, #1c2b45, #0f172a);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #243a5e, #111827);
}
