:root {
    --primary: #d4b192;
    --secondary: #2c3e50;
    --glow-color: #7a6048;
    --border-radius: 8px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Times New Roman', serif;
    padding: 20px;
    margin-top: 60px; /* Espaço para o header fixo */
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    min-height: 100vh;
  }
  h1 {
    text-align: center;
    margin: 15px 0;
    font-size: 1.4rem;
    color: #2c3e50;
  }
  h2 {
    text-align: center;
    margin: 15px 0;
    font-size: 1.2rem;
    color: #2c3e50;
  }
  h3 {
    text-align: center;
    margin: 35px 0;
    font-size: 1.0rem;
    color: #d4b192;
  }
  
  /* ========== NOVO HEADER ========== */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--primary);
  }
  .menu {
    display: none; /* Esconde completamente */
    position: absolute;
    top: -1500px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 350px;
    background: rgba(44, 62, 80, 0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px #d4b192;
    padding: 15px 0;
    opacity: 0;
  }
  .menu-item {
    background: var(--secondary);
    border-radius: var(--border-radius);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary);
    font-size: 0.95em;
    padding: 0 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }
  
  .menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    transition: transform 0.3s;
  }
  
  .menu-item:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
    border-color: var(--secondary);
    box-shadow: 0 3px 8px rgba(122, 96, 72, 0.4);
  }
  
  .menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    background: radial-gradient(circle at center, 
               rgba(212, 177, 146, 0.2) 0%, 
               transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .menu-item:hover::before {
    opacity: 1;
  }
  
  .menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
  }
  
  .menu-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-icon.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .menu.active {
    display: block; /* Mostra quando ativo */
    top: 65px;
    opacity: 1;
  }
  
  .menu ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 15px;
    list-style: none;
    max-height: 80vh; /* Melhor ajuste para telas menores */
    overflow-y: auto; /* Scroll apenas quando necessário */
  }
  
  /* Ajustes responsivos */
  @media (max-width: 768px) {
  .menu-item {
      height: 25px; /* Reduz altura */
      font-size: 0.8em; /* Fonte menor */
      padding: 0 6px; /* Padding reduzido */
  }
  }
  
  @media (max-width: 480px) {
    .runa {
        width: 30px;   /* Ajuste para tamanho legível */
        height: 40px;
        font-size: 1.5em;
    }
}

/* Estilos restantes não modificados */

/* Grid do Jogo */
.game-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    padding: 20px;
    max-width: 100%;
    width: min(600px, 90vw); /* Ajuste para telas menores */
    aspect-ratio: 1 / 1; /* Mantém o formato quadrado */
    margin: 20px auto;
}

.game-cell {
    width: 100%;
    aspect-ratio: 1 / 1; /* Mantém as células quadradas automaticamente */
    background: linear-gradient(145deg, #d4b192, #2c3e50);
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    perspective: 500px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.game-cell:hover {
    transform: scale(1.1);
    background: #2c3e50;
}
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 600px;
  }
  
  #start-game-btn {
    margin: 0 auto;
    display: block;
    /* Remova a propriedade position: center se existir */
  }
  
  /* Alinhamento horizontal para label + select */
  .controls > div {
    display: flex;
    align-items: center;
    gap: 15px;
  }

/* Modal de cartas */
.tarot-modal, .quiz-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2c3e50;
    color: whitesmoke;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    z-index: 1000;
}

.hidden {
    display: none;
}

/* Modal de Quiz */
.quiz-content {
    text-align: center;
}

.quiz-option {
    display: display-inside;
    background: #2c3e50;
    border: none;
    padding: 10px;
    margin: 10px auto;
    cursor: pointer;
    color: #d4b192;
    font-size: 1.1em;
    border-radius: 5px;
    width: 80%;
}

.quiz-option:hover {
    background: #f5f7fa;
}

/* Botões "Iniciar Jogo" e "Fechar Quiz" */
#start-game-btn, #close-quiz-btn {
    position: center;
    background-color: #2c3e50;  /* Cor escura para o fundo */
    color: #ecf0f1;  /* Cor clara para o texto */
    font-size: 1.0em;
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

#start-game-btn:hover, #close-quiz-btn:hover {
    background-color: #34495e;  /* Tom de cinza mais escuro para o hover */
}

#start-game-btn:focus, #close-quiz-btn:focus {
    outline: none;
}

/* Estilos específicos para dispositivos móveis */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .styled-btn {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .quiz-option {
        font-size: 1rem;
        padding: 8px;
    }
}

/* Estilos para telas menores que 480px */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .styled-btn {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .menu-link {
        font-size: 1rem;
    }
}
