:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent: #8b0000; /* Dark blood red */
    --accent-hover: #b30000;
    --border-color: #333333;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Background texture/overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000000 100%),
                url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4, .cinzel {
    font-family: var(--font-heading);
    font-weight: 700;
}

.main-title {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons & Links */
a {
    text-decoration: none;
    color: inherit;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border: 1px solid #5a0000;
    border-radius: 4px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 25px rgba(139, 0, 0, 0.6);
    transform: translateY(-2px);
}

/* Home Paths */
.home-paths {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.path-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.path-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.path-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.path-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

/* Oráculo / Cards */
.oraculo-header {
    margin-bottom: 3rem;
}

.draw-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.draw-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.draw-btn:hover, .draw-btn.active {
    border-color: var(--accent);
    background: rgba(139, 0, 0, 0.1);
}

.table-area {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    perspective: 1000px;
    margin-bottom: 4rem;
}

/* 3D Card Flip */
.tarot-card {
    width: 250px;
    height: 400px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tarot-card.flipped {
    transform: rotateY(180deg);
}

.tarot-card-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
}

.card-face {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 1px solid #444;
}

.card-front {
    background: url('../img/costas da carta.jfif') center/cover no-repeat;
    transform: rotateY(0deg);
}

.card-back {
    background: #111;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reading Panel */
.reading-panel {
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    border-radius: 4px;
    margin-top: 2rem;
    display: block;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.5s ease;
}

.reading-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.reading-panel .pillar {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: block;
}

.reading-panel .quote {
    font-style: italic;
    color: var(--text-muted);
    border-left: 2px solid #444;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.reading-panel h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ddd;
}

/* Estudo / Quiz */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.question-block {
    display: none;
    animation: fadeIn 0.4s ease;
}

.question-block.active {
    display: block;
}

.question-block h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--text-main);
    padding: 1rem;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    font-size: 1rem;
}

.option-btn:hover {
    border-color: var(--accent);
    background: rgba(139, 0, 0, 0.05);
}

.quiz-progress {
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: right;
}

.result-block {
    display: none;
    text-align: center;
}

.result-block h2 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.result-block p {
    text-align: left;
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .path-card {
        padding: 2rem 1.5rem;
    }
    
    .tarot-card {
        width: 180px;
        height: 288px; /* Maintain approx 1:1.6 ratio */
    }
    
    .quiz-container {
        padding: 1.5rem;
    }
}

/* Lightbox for Cards */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}


@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

