/* shared.css — estilos comuns para todos os jogos */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --gold: #FFD700;
  --heaven: #1a3a6b;
  --light: #FFF9E6;
  --green: #4CAF50;
  --red: #E53935;
  --blue: #2196F3;
  --primary: #1e293b;    /* Azul marinho profundo */
  --accent: #f59e0b;     /* Laranja para botões */
  --bg-light: #ffffff;   /* Fundo branco */
  --bg-alt: #dae6f2;     /* Cinza claro */
  --red2: #1dad60;       /* Tom de verde escuro */
  --text-muted: #475569;
  --text-baner: #033987;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(160deg, #0d2b5e 0%, #1a3a6b 40%, #2a5298 100%);
  min-height: 100vh;
  margin-top: 120px; /* <--- ADICIONE ESTA LINHA. Ajuste o valor 80px se precisar de mais ou menos espaço */
  color: white;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
  margin: 16px 0 0 16px;
  display: inline-flex;
}
.back-btn:hover { background: rgba(255,255,255,0.2); color: white; }

.game-header {
  text-align: center;
  padding: 20px 16px 10px;
}
.game-header h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
  margin-bottom: 6px;
}
.game-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}

.game-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px 60px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(255,165,0,0.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,165,0,0.5); }
.btn-white {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-white:hover { background: rgba(255,255,255,0.25); }

.score-box {
  background: rgba(255,215,0,0.15);
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: 16px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.score-box span { font-weight: 800; color: var(--gold); font-size: 1.2rem; }

.feedback-correct { color: #4CAF50; font-weight: 800; font-size: 1.1rem; }
.feedback-wrong { color: #EF5350; font-weight: 800; font-size: 1.1rem; }

.panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.share-btn{display:inline-flex;align-items:center;gap:8px;padding:11px 26px;border-radius:30px;background:rgba(255,255,255,.08);border:1.5px solid rgba(255,255,255,.2);color:#fff;font-weight:800;font-size:.85rem;cursor:pointer;transition:all .2s;text-decoration:none}
.share-btn:hover{background:rgba(255,255,255,.16);transform:translateY(-2px)}
.foot-copy{font-size:.72rem;color:rgba(255,255,255,.25);margin-top:14px}
#sndBtn{position:fixed;top:14px;right:14px;z-index:100;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.1);border:1.5px solid rgba(255,255,255,.2);color:#fff;font-size:1.2rem;cursor:pointer;backdrop-filter:blur(8px);transition:all .2s;display:flex;align-items:center;justify-content:center}
#sndBtn:hover{background:rgba(255,255,255,.2)}

/* --- NAVEGAÇÃO --- */
.navbar-topo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 75px;
    width: auto;
}

.logo-container .text {
    color: var(--text-baner);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.menu {
    display: flex;
    gap: 25px;
}

.menu a {
    color: var(--text-baner);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.menu a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-baner);
    transition: 0.3s;
}

/* RESPONSIVIDADE HEADER */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        display: flex;
    }

    .menu.active {
        max-height: 500px;
    }

    .menu a {
        padding: 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}

/* --- FOOTER INDEPENDENTE --- */
.main-footer {
    background-color: #2c3e50;
    padding: 60px 5% 40px;
    color: white;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.footer-menu a:hover {
    color: #f1c40f; /* Hover Amarelo solicitado */
}

.social-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    color: #f1c40f;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

/* AJUSTES FINAIS MOBILE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero h4 { font-size: 1.3rem; }
    .footer-menu { flex-direction: column; gap: 15px; }
}