: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;
}

/* ========== 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-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    transition: transform 0.3s;
}

.menu-icon:hover {
    transform: scale(1.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 {
    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 rgba(44, 62, 80, 0.98);
    padding: 15px 0;
    opacity: 0;
}

.menu.active {
    top: 65px;
    opacity: 1;
}

.menu ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 15px;
    list-style: none;
    max-height: 600px; /* Altura máxima */
    overflow-y: auto; /* Scroll apenas quando necessário */
    padding-right: 10px; /* Espaço para a barra de rolagem */
}

.menu-item {
    background: rgba(212, 177, 146, 0.1);
    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-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;
}

/* ========== ESTILOS DO JOGO ========== */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
}

h1 {
    text-align: center;
    margin: 15px 0;
    font-size: 2.2rem;
    color: var(--accent);
}

.house-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 20px 0;
}

.house-btn {
    background: var(--secondary);
    border: 1px solid var(--accent);
    color: var(--primary);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.house-btn.active {
    background: var(--accent);
    color: var(--secondary);
    font-weight: bold;
}

.question-area {
    margin: 20px 0;
}

textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--accent);
    color: #2c3e50;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    resize: vertical;
    min-height: 100px;
}

.offerings-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.offering-item {
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
    opacity: 0.6;
}

.offering-item.selected {
    transform: scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--primary));
}

.casting-circle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    place-items: center;
    min-height: 300px;
}

.cowrie-shell {
    width: 60px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s;
    cursor: pointer;
}

.cowrie-shell::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%);
    transform: translateZ(-1px);
}

.energy-counter {
    background: var(--secondary);
    border-radius: 20px;
    padding: 10px;
    margin: 20px 0;
}

.energy-bar {
    height: 10px;
    background: linear-gradient(90deg, var(--accent) 100%, transparent 0);
    border-radius: 5px;
    transition: width 1s;
}

.odu-header {
    text-align: center;
    margin: 20px 0;
}

.odu-symbol {
    font-size: 3rem;
    margin: 15px 0;
}

.interpretation-card {
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    border: 1px solid var(--accent);
}

button {
    background: #d4b192;
    color: #2c3e50;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: transform 0.3s;
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .house-selector {
        grid-template-columns: 1fr;
    }
    
    .cowrie-shell {
        width: 50px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .menu {
        width: 95%;
    }

    .container {
        margin: 15px;
        padding: 15px;
    }

    .house-selector {
        grid-template-columns: 1fr;
    }

    .casting-circle {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .odu-symbol {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        margin-top: 50px;
    }

    header {
        height: 50px;
        padding: 0 15px;
    }

    .menu.active {
        top: 50px;
    }

    .menu-item {
        height: 35px;
        font-size: 0.85em;
    }

    .offering-item {
        font-size: 2rem;
    }

    .cowrie-shell {
        width: 50px;
        height: 35px;
    }
}
