:root {
    --gold: #D4AF37;
    --gold-light: #F4E4BA;
    --deep-purple: #1A0A2E;
    --midnight: #0D0D1A;
    --mystic-purple: #2D1B4E;
    --accent-purple: #6B4C9A;
    --crimson: #8B0000;
    --ivory: #F5F5DC;
    --text-gold: #C9A227;
}

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

body {
    font-family: 'Cinzel', serif;
    background: var(--midnight);
    color: var(--ivory);
    min-height: 100vh;
    overflow: hidden;
    cursor: none;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--midnight) 0%, var(--deep-purple) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loading-symbol {
    font-size: 60px;
    color: var(--gold);
    animation: pulse-glow 2s ease-in-out infinite;
    text-shadow: 0 0 30px var(--gold), 0 0 60px var(--gold);
}

.loading-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    color: var(--text-gold);
    margin: 20px 0;
    letter-spacing: 3px;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--gold);
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--midnight);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.intro-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.covenant-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
}

.circle-outer, .circle-middle, .circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.circle-outer {
    width: 200px;
    height: 200px;
    border-color: rgba(212, 175, 55, 0.3);
    animation: rotate-slow 60s linear infinite;
}

.circle-middle {
    width: 160px;
    height: 160px;
    border-color: rgba(212, 175, 55, 0.5);
    animation: rotate-reverse 40s linear infinite;
}

.circle-inner {
    width: 120px;
    height: 120px;
    border-color: var(--gold);
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

.eye-of-providence {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, var(--gold) 0%, var(--gold-light) 50%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--gold), 0 0 60px rgba(212, 175, 55, 0.5);
    animation: eye-pulse 4s ease-in-out infinite;
}

@keyframes eye-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.rays span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 50%;
    background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
    transform-origin: bottom center;
    opacity: 0.5;
}

.rays span:nth-child(1) { transform: translate(-50%, -100%) rotate(0deg); }
.rays span:nth-child(2) { transform: translate(-50%, -100%) rotate(45deg); }
.rays span:nth-child(3) { transform: translate(-50%, -100%) rotate(90deg); }
.rays span:nth-child(4) { transform: translate(-50%, -100%) rotate(135deg); }
.rays span:nth-child(5) { transform: translate(-50%, -100%) rotate(180deg); }
.rays span:nth-child(6) { transform: translate(-50%, -100%) rotate(225deg); }
.rays span:nth-child(7) { transform: translate(-50%, -100%) rotate(270deg); }
.rays span:nth-child(8) { transform: translate(-50%, -100%) rotate(315deg); }

.intro-title {
    font-family: 'Cinzel', serif;
    font-size: 72px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 20px;
    text-shadow: 0 0 40px var(--gold), 0 0 80px rgba(212, 175, 55, 0.5);
    margin-bottom: 10px;
    animation: title-glow 3s ease-in-out infinite;
    cursor: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.intro-title:hover {
    text-shadow: 0 0 60px var(--gold), 0 0 120px rgba(212, 175, 55, 0.8), 0 0 180px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 40px var(--gold), 0 0 80px rgba(212, 175, 55, 0.5); }
    50% { text-shadow: 0 0 60px var(--gold), 0 0 120px rgba(212, 175, 55, 0.7); }
}

.intro-subtitle {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-gold);
    letter-spacing: 8px;
    margin-bottom: 30px;
}

.intro-tagline {
    font-size: 18px;
    color: var(--ivory);
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 60px;
}

.intro-prompt {
    position: relative;
    display: inline-block;
    cursor: none;
}

.intro-prompt p {
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    color: var(--text-gold);
    letter-spacing: 3px;
    cursor: none;
    transition: all 0.3s ease;
    padding: 15px 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    background: rgba(212, 175, 55, 0.05);
}

.intro-prompt p:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    border-radius: 30px;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Tarot Selection */
.tarot-selection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--midnight) 0%, var(--deep-purple) 50%, var(--midnight) 100%);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    z-index: 50;
    overflow-y: auto;
}

.tarot-selection.active {
    display: flex;
}

.tarot-header {
    text-align: center;
    margin-bottom: 50px;
}

.tarot-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: var(--gold);
    letter-spacing: 5px;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.tarot-header p {
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    color: var(--text-gold);
    letter-spacing: 2px;
    opacity: 0.7;
}

.tarot-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    perspective: 1000px;
}

.tarot-card {
    width: 140px;
    height: 220px;
    cursor: none;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

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

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--mystic-purple) 100%);
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.card-pattern {
    width: 80%;
    height: 80%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(212, 175, 55, 0.1) 10px,
        rgba(212, 175, 55, 0.1) 20px
    );
    opacity: 0.5;
}

.card-number {
    position: absolute;
    bottom: 10px;
    font-size: 18px;
    color: var(--gold);
    font-weight: 700;
}

.card-back {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--gold);
    transform: rotateY(180deg);
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.tarot-symbol {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 0 0 20px var(--gold);
    animation: symbol-glow 2s ease-in-out infinite;
}

@keyframes symbol-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

.card-name {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card-meaning {
    font-size: 9px;
    color: var(--ivory);
    opacity: 0.7;
    font-style: italic;
    line-height: 1.4;
}

/* Tarot Reveal */
.tarot-reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 26, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.tarot-reveal.active {
    display: flex;
    animation: fade-in 0.5s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.reveal-symbol {
    font-size: 80px;
    color: var(--gold);
    margin-bottom: 30px;
    text-shadow: 0 0 50px var(--gold);
    animation: reveal-symbol 1s ease-out;
}

@keyframes reveal-symbol {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.reveal-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 20px;
    animation: reveal-text 0.5s ease 0.3s both;
}

@keyframes reveal-text {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.reveal-content p {
    font-size: 14px;
    color: var(--ivory);
    opacity: 0.8;
    margin-bottom: 40px;
    font-style: italic;
    animation: reveal-text 0.5s ease 0.5s both;
}

.enter-btn {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--midnight);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: none;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    animation: reveal-text 0.5s ease 0.7s both;
}

.enter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .intro-title {
        font-size: 42px;
        letter-spacing: 10px;
    }

    .covenant-circle {
        width: 150px;
        height: 150px;
    }

    .circle-outer { width: 150px; height: 150px; }
    .circle-middle { width: 120px; height: 120px; }
    .circle-inner { width: 90px; height: 90px; }

    .tarot-card {
        width: 100px;
        height: 160px;
    }

    .card-name {
        font-size: 9px;
    }

    .card-meaning {
        font-size: 7px;
    }
}