/* ============================================
   MistTarot.com - Mobile First Optimized CSS
   ============================================ */

:root {
    --primary: #0a0e1a;
    --secondary: #0f1525;
    --gold: #c9a959;
    --gold-light: #f0d68a;
    --gold-dark: #a08040;
    --cyber: #00d4ff;
    --red-dark: #8b1a1a;
    --text: #f0e6d3;
    --text-muted: rgba(240, 230, 211, 0.6);
    --mist-gray: rgba(120, 130, 150, 0.12);
    --mist-light: rgba(180, 185, 195, 0.1);
}

/* ============================================
   BASE RESET & MOBILE FOUNDATION
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: linear-gradient(180deg, #1a1f2e 0%, #0d1117 40%, #0a0e14 100%);
    color: var(--text);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Fix iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

/* Prevent double-tap zoom */
* {
    touch-action: manipulation;
}

/* Allow pinch zoom */
html {
    touch-action: pan-x pan-y;
}

/* ============================================
   MISTY GREY FOG BACKGROUND - ALWAYS VISIBLE
   ============================================ */
.mist-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.fog-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    animation: fogRise 8s ease-out forwards;
    will-change: transform, opacity;
}

.fog-blob.large-1 {
    width: 600px;
    height: 600px;
    background: rgba(120, 130, 150, 0.12);
    top: -150px;
    left: -100px;
    animation: fogDrift1 30s ease-in-out infinite, fogRise 8s ease-out forwards;
}

.fog-blob.large-2 {
    width: 500px;
    height: 500px;
    background: rgba(130, 140, 160, 0.1);
    bottom: -100px;
    right: -100px;
    animation: fogDrift2 35s ease-in-out infinite, fogRise 8s ease-out 0.5s forwards;
}

.fog-blob.large-3 {
    width: 400px;
    height: 400px;
    background: rgba(110, 125, 145, 0.08);
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation: fogDrift3 25s ease-in-out infinite, fogRise 8s ease-out 1s forwards;
}

.fog-blob.medium-1 {
    width: 350px;
    height: 280px;
    background: rgba(150, 155, 170, 0.06);
    top: 25%;
    right: 8%;
    animation: fogDrift4 28s ease-in-out infinite, fogRise 8s ease-out 1.5s forwards;
}

/* Warm Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0;
    animation: glowRise 4s ease-out 3s forwards, glowPulse 8s ease-in-out 7s infinite;
    will-change: transform, opacity;
}

.glow-orb.orb-1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(201, 169, 89, 0.1) 0%, transparent 70%);
    top: 20%;
    left: 15%;
}

.glow-orb.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 169, 89, 0.06) 0%, transparent 70%);
    bottom: 25%;
    right: 20%;
}

/* Architecture Silhouette */
.architecture {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: architectureFade 4s ease-out 4s forwards;
    pointer-events: none;
    will-change: opacity;
}

.pillar {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 18, 28, 0.6), transparent);
    filter: blur(2px);
}

.pillar.pillar-1 { width: 50px; height: 55vh; left: 5%; }
.pillar.pillar-2 { width: 65px; height: 60vh; left: 12%; }
.pillar.pillar-3 { width: 40px; height: 48vh; right: 8%; }
.pillar.pillar-4 { width: 55px; height: 52vh; right: 15%; }
.pillar.pillar-5 { width: 35px; height: 40vh; left: 22%; }
.pillar.pillar-6 { width: 45px; height: 45vh; right: 25%; }

/* Floor */
.floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8vh;
    background: linear-gradient(to top, rgba(8, 10, 15, 0.8), transparent);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fogRise {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fogDrift1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(50px, -30px); }
    66% { transform: translate(-30px, 20px); }
}

@keyframes fogDrift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, 20px); }
    66% { transform: translate(30px, -20px); }
}

@keyframes fogDrift3 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-40px); }
}

@keyframes fogDrift4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

@keyframes glowRise {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes architectureFade {
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Initial State */
.main-container.initial-state {
    justify-content: center;
    padding-top: 5vh;
    padding-bottom: 120px;
}

.main-container.initial-state .brand {
    text-align: center;
    margin-bottom: 3vh;
}

.main-container.initial-state .brand-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    color: var(--gold);
    letter-spacing: 8px;
    text-shadow: 0 0 30px rgba(201, 169, 89, 0.3);
    animation: fadeIn 1.5s ease forwards;
}

.main-container.initial-state .brand-subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-top: 10px;
    animation: fadeIn 1.5s ease 0.3s forwards;
    opacity: 0;
}

/* Cards Area */
.main-container.initial-state .cards-area {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/* Reading State */
.main-container.reading-state {
    flex-direction: column;
    padding: 20px 3%;
}

.main-container.reading-state .brand {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    pointer-events: none;
}

.main-container.reading-state .brand .brand-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 4px;
    opacity: 0.8;
}

.main-container.reading-state .cards-area {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* Reading Panel */
.reading-panel {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    padding: 0 20px;
}

.reading-content {
    position: relative;
    background: rgba(15, 21, 37, 0.85);
    border: 1px solid rgba(201, 169, 89, 0.2);
    border-radius: 16px;
    padding: 40px 40px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-info {
    text-align: center;
    margin-bottom: 30px;
}

.card-name {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.6rem;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.card-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-style: italic;
}

.card-whisper-container {
    border-top: 1px solid rgba(201, 169, 89, 0.15);
    padding-top: 25px;
    margin-top: 25px;
}

.card-whisper-label {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: center;
}

.card-whisper {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
    text-align: center;
    margin: 0;
}

.reading-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 30px auto;
}

.reading-text-container {
    padding: 0 40px 40px;
}

.reading-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
    white-space: pre-wrap;
    margin: 0;
}

.reading-text p {
    margin-bottom: 1.2em;
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    min-height: 250px;
}

.mist-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(201, 169, 89, 0.15);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(201, 169, 89, 0.2);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================
   TAROT CARD - MOBILE OPTIMIZED
   ============================================ */
.tarot-card {
    width: 150px;
    height: 234px;
    perspective: 1000px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    transition: 
        opacity 0.6s ease, 
        transform 0.6s ease,
        width 0.5s ease,
        height 0.5s ease;
    will-change: transform, opacity;
}

.tarot-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tarot-card.visible.floating {
    animation: cardFloatInit 3s ease-in-out infinite;
}

@keyframes cardFloatInit {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tarot-card:nth-child(1).visible.floating { animation-delay: 0s; }
.tarot-card:nth-child(2).visible.floating { animation-delay: 0.3s; }
.tarot-card:nth-child(3).visible.floating { animation-delay: 0.6s; }

.tarot-card.selected {
    cursor: default;
}

.tarot-card.faded {
    opacity: 0.15;
    pointer-events: none;
    filter: grayscale(0.5);
}

.tarot-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tarot-card.flipping .card-inner {
    animation: flipHalf 0.8s ease forwards;
}

@keyframes flipHalf {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(90deg); }
}

.tarot-card.flip-complete .card-inner {
    animation: none;
    transform: rotateY(180deg);
}

.tarot-card.stuck .card-inner {
    animation: cardStuck 0.3s ease infinite;
}

@keyframes cardStuck {
    0%, 100% { transform: rotateY(90deg) translateX(0); }
    25% { transform: rotateY(90deg) translateX(-3px); }
    75% { transform: rotateY(90deg) translateX(3px); }
}

/* Card Back */
.card-back, .card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.card-back {
    background: 
        url('../imgs/card_back.png') center/cover no-repeat,
        linear-gradient(180deg, #1a1f2e 0%, #0d1117 100%);
    border: 2px solid rgba(201, 169, 89, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(201, 169, 89, 0.1),
        inset 0 0 30px rgba(201, 169, 89, 0.05);
    background-clip: padding-box;
}

.card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

.card-back-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 70%;
    border: 2px solid rgba(201, 169, 89, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back-symbol {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.6;
    text-shadow: 0 0 20px rgba(201, 169, 89, 0.5);
}

/* Card Front */
.card-front {
    background: linear-gradient(180deg, #f5f0e6 0%, #e8dfd0 50%, #d4c9b8 100%);
    transform: rotateY(180deg);
    border: 2px solid rgba(201, 169, 89, 0.5);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(201, 169, 89, 0.2);
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    loading: lazy;
}

.tarot-card.reversed .card-front img {
    transform: rotate(180deg);
}

/* Lazy Loading Image Styles */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Hover Effect - Desktop Only */
@media (hover: hover) and (pointer: fine) {
    .tarot-card:not(.flipped):not(.faded):hover {
        transform: translateY(-15px) rotateY(5deg);
    }

    .tarot-card:not(.flipped):not(.faded):hover .card-back {
        box-shadow: 
            0 0 40px rgba(201, 169, 89, 0.5),
            0 20px 60px rgba(0, 0, 0, 0.4),
            inset 0 0 30px rgba(201, 169, 89, 0.1);
        border-color: rgba(201, 169, 89, 0.6);
    }
}

/* Touch Active State */
.tarot-card:not(.flipped):not(.faded):active,
.tarot-card:not(.flipped):not(.faded).touch-active {
    transform: scale(0.98);
}

/* ============================================
   INITIAL STATE SCATTERED CARDS
   ============================================ */
.main-container.initial-state .tarot-card {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-container.initial-state .tarot-card:nth-child(1) {
    top: 10%;
    left: 5%;
    transform: rotate(-8deg);
    z-index: 1;
}

.main-container.initial-state .tarot-card:nth-child(2) {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
    z-index: 2;
}

.main-container.initial-state .tarot-card:nth-child(3) {
    top: 10%;
    right: 5%;
    transform: rotate(8deg);
    z-index: 1;
}

/* ============================================
   ACTION BUTTONS - TOUCH OPTIMIZED (WCAG 48x48)
   ============================================ */
.action-btn {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0a0e1a;
    border: none;
    border-radius: 8px;
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(201, 169, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease 0.9s forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
    z-index: 101;
    touch-action: manipulation;
}

.action-btn::before {
    content: '✦';
    margin-right: 10px;
}

.action-btn::after {
    content: '✦';
    margin-left: 10px;
}

/* Hover - Desktop Only */
@media (hover: hover) and (pointer: fine) {
    .action-btn:hover {
        transform: translateY(-3px);
        box-shadow: 
            0 0 40px rgba(201, 169, 89, 0.5),
            0 10px 30px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Active/Touch State */
.action-btn:active,
.action-btn.touch-active {
    transform: scale(0.98);
    box-shadow: 
        0 0 30px rgba(201, 169, 89, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Secondary Button */
.action-btn.secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: 
        0 0 15px rgba(201, 169, 89, 0.2),
        inset 0 0 15px rgba(201, 169, 89, 0.05);
}

@media (hover: hover) and (pointer: fine) {
    .action-btn.secondary:hover {
        background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
        color: #0a0e1a;
    }
}

/* Button Container - Proper Spacing */
.button-container {
    width: 100%;
    max-width: 400px;
    margin-top: 30px;
    padding: 0 20px;
}

/* ============================================
   PROMPT TEXT
   ============================================ */
.prompt-text {
    text-align: center;
    margin-top: 30px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.prompt-text.visible {
    opacity: 1;
}

.prompt-main {
    font-family: 'Cinzel Decorative', cursive;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.prompt-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   PAYMENT MODAL - MOBILE OPTIMIZED
   ============================================ */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.payment-modal.visible {
    opacity: 1;
    visibility: visible;
}

.payment-content {
    background: linear-gradient(180deg, rgba(20, 25, 40, 0.98) 0%, rgba(10, 14, 20, 0.98) 100%);
    border: 1px solid rgba(201, 169, 89, 0.3);
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(201, 169, 89, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.payment-modal.visible .payment-content {
    transform: scale(1);
}

.payment-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.6rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.payment-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 25px;
    background: rgba(201, 169, 89, 0.05);
    border: 2px solid rgba(201, 169, 89, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px;
}

.payment-option:hover,
.payment-option.selected {
    background: rgba(201, 169, 89, 0.1);
    border-color: var(--gold);
}

.payment-option .name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 1px;
}

.payment-option .price {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.5rem;
    color: var(--gold);
}

.payment-note {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

.confirm-offering-btn {
    width: 100%;
    padding: 16px 32px;
    min-height: 56px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0a0e1a;
    border: none;
    border-radius: 10px;
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(201, 169, 89, 0.3);
}

.confirm-offering-btn::before {
    content: '⚜';
    margin-right: 10px;
}

.confirm-offering-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(201, 169, 89, 0.5);
}

.confirm-offering-btn:active,
.confirm-offering-btn.touch-active {
    transform: scale(0.98);
}

.age-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.age-confirm input {
    width: 20px;
    height: 20px;
    min-width: 24px;
    min-height: 24px;
    cursor: pointer;
}

/* ============================================
   FOOTER - MOBILE FRIENDLY
   ============================================ */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 100;
    pointer-events: none;
    background: linear-gradient(to top, rgba(10, 14, 20, 0.95) 0%, transparent 100%);
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    pointer-events: auto;
}

.footer-link {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
}

.footer-link:hover {
    color: var(--gold);
}

.footer-disclaimer {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    color: rgba(240, 230, 211, 0.3);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Desktop (≥1920px) */
@media (min-width: 1920px) {
    .main-container.initial-state {
        padding-top: 8vh;
    }
    
    .main-container.initial-state .cards-area {
        min-height: 400px;
        max-width: 700px;
    }
    
    .tarot-card {
        width: 180px;
        height: 281px;
    }
    
    .reading-content {
        padding: 50px;
    }
    
    .reading-text-container {
        padding: 0 50px 50px;
    }
}

/* Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .main-container.initial-state .cards-area {
        min-height: 350px;
    }
    
    .tarot-card {
        width: 165px;
        height: 257px;
    }
    
    .reading-content {
        padding: 45px;
    }
}

/* Small Desktop / Large Tablet (1025px - 1439px) */
@media (min-width: 1025px) and (max-width: 1439px) {
    .main-container.initial-state .cards-area {
        min-height: 320px;
    }
    
    .tarot-card {
        width: 155px;
        height: 242px;
    }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-container.initial-state {
        padding-top: 5vh;
        padding-bottom: 100px;
    }
    
    .main-container.initial-state .cards-area {
        min-height: 300px;
        max-width: 450px;
    }
    
    .main-container.reading-state .cards-area {
        padding: 20px 0;
    }
    
    .reading-content {
        padding: 30px;
    }
    
    .reading-text-container {
        padding: 0 30px 30px;
    }
    
    .payment-content {
        padding: 40px 35px;
    }
}

/* ============================================
   MOBILE (≤768px) - PRIMARY BREAKPOINT
   ============================================ */
@media (max-width: 768px) {
    /* Brand */
    .main-container.initial-state .brand {
        margin-bottom: 1vh;
    }
    
    .main-container.initial-state .brand-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    /* Reading State - Vertical Layout */
    .main-container.reading-state {
        flex-direction: column;
        justify-content: flex-start;
        padding: 70px 15px 30px;
        height: auto;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .main-container.reading-state .brand {
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 200;
    }
    
    .main-container.reading-state .brand .brand-title {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }
    
    /* Cards Area */
    .main-container.reading-state .cards-area {
        flex: 0 0 auto;
        width: 100%;
        min-height: 260px;
        max-height: 40vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        padding: 10px 0;
    }
    
    /* Main Card - Larger for Mobile Visibility */
    .main-container.reading-state .tarot-card.main-card {
        width: 210px;
        height: 328px;
        margin: 0 auto;
    }
    
    /* Main Card Floating Animation */
    .main-container.reading-state .tarot-card.main-card.visible.floating {
        animation: mainCardFloat 3s ease-in-out infinite;
    }
    
    @keyframes mainCardFloat {
        0%, 100% { transform: translateY(0) rotate(var(--card-rotation, 0deg)); }
        50% { transform: translateY(-8px) rotate(var(--card-rotation, 0deg)); }
    }
    
    /* Reading Panel - Optimized for Mobile Reading */
    .main-container.reading-state .reading-panel {
        flex: 1;
        width: 100%;
        max-width: 100%;
        z-index: 100;
        padding-bottom: 100px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0;
    }
    
    .reading-content {
        padding: 25px 20px;
    }
    
    /* Text Sizing - Minimum 16px Body Text */
    .card-name {
        font-size: 1.25rem !important;
        letter-spacing: 2px;
    }
    
    .card-whisper {
        font-size: 1rem !important;
        line-height: 1.7;
    }
    
    .reading-text {
        font-size: 1rem !important;
        line-height: 1.8;
    }
    
    .reading-text-container {
        padding: 0 20px 20px;
    }
    
    /* Payment Modal - Near Full Screen */
    .payment-content {
        width: 95%;
        max-width: 95%;
        padding: 25px 20px;
        border-radius: 16px;
        margin: 10px auto;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .payment-title {
        font-size: 1.2rem;
    }
    
    .payment-desc {
        font-size: 0.95rem;
    }
    
    .payment-option {
        padding: 18px 20px;
        font-size: 1rem;
        min-height: 56px;
        flex-direction: column;
        gap: 8px;
    }
    
    .payment-option .price {
        font-size: 1.4rem;
    }
    
    .confirm-offering-btn {
        width: 100%;
        padding: 18px 24px;
        font-size: 1rem;
        min-height: 56px;
    }
    
    .age-confirm {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    .age-confirm input {
        width: 24px;
        height: 24px;
    }
    
    /* Footer */
    .footer {
        margin: 20px auto;
        padding: 15px;
        position: relative;
        background: none;
    }
    
    .footer-disclaimer {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* ============================================
   SMALL MOBILE (≤480px) - CRITICAL TARGET
   ============================================ */
@media (max-width: 480px) {
    /* Initial State - Compact */
    .main-container.initial-state {
        padding-top: 2vh;
        padding-bottom: 80px;
    }
    
    .main-container.initial-state .brand {
        margin-bottom: 1vh;
    }
    
    .main-container.initial-state .brand-title {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    
    .main-container.initial-state .brand-subtitle {
        font-size: 0.8rem;
        margin-top: 5px;
    }
    
    /* Cards Area - Larger Touch Targets */
    .main-container.initial-state .cards-area {
        min-height: 280px;
        max-width: 100%;
    }
    
    /* Scattered Cards - Spread Wider for Touch */
    .main-container.initial-state .tarot-card:nth-child(1) {
        top: 8%;
        left: 0%;
        transform: rotate(-10deg);
    }
    
    .main-container.initial-state .tarot-card:nth-child(2) {
        top: 3%;
        left: 35%;
        transform: rotate(7deg);
    }
    
    .main-container.initial-state .tarot-card:nth-child(3) {
        top: 8%;
        right: 0%;
        transform: rotate(10deg);
    }
    
    .tarot-card {
        width: 110px;
        height: 172px;
    }
    
    /* Button Size Increase for Small Screens */
    .action-btn {
        padding: 18px 24px;
        font-size: 0.95rem;
        min-height: 56px;
    }
    
    /* Reading State */
    .main-container.reading-state {
        padding: 60px 10px 20px;
    }
    
    .main-container.reading-state .brand .brand-title {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .main-container.reading-state .cards-area {
        min-height: 220px;
        padding: 5px 0;
    }
    
    .main-container.reading-state .tarot-card.main-card {
        width: 180px;
        height: 281px;
    }
    
    /* Reading Content - Tighter Padding */
    .reading-content {
        padding: 20px 15px;
    }
    
    .card-name {
        font-size: 1.1rem !important;
    }
    
    .card-subtitle {
        font-size: 0.85rem;
    }
    
    .card-whisper {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }
    
    .reading-text {
        font-size: 0.95rem !important;
        line-height: 1.7;
    }
    
    .reading-text-container {
        padding: 0 15px 15px;
    }
    
    /* Footer Links - Stacked for Very Small Screens */
    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .footer-link {
        font-size: 0.8rem;
        min-height: 40px;
    }
}

/* ============================================
   EXTRA SMALL MOBILE (≤375px) - iPhone SE etc.
   ============================================ */
@media (max-width: 375px) {
    .main-container.initial-state .brand-title {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }
    
    .main-container.initial-state .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .tarot-card {
        width: 100px;
        height: 156px;
    }
    
    .main-container.reading-state .tarot-card.main-card {
        width: 160px;
        height: 250px;
    }
    
    .action-btn {
        padding: 16px 20px;
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .reading-content {
        padding: 18px 12px;
    }
    
    .card-name {
        font-size: 1rem !important;
    }
    
    .payment-option {
        padding: 15px;
    }
}

/* ============================================
   TINY MOBILE (≤320px) - Smallest Devices
   ============================================ */
@media (max-width: 320px) {
    .main-container.initial-state {
        padding-top: 1vh;
        padding-bottom: 60px;
    }
    
    .main-container.initial-state .brand-title {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .main-container.initial-state .brand-subtitle {
        font-size: 0.7rem;
    }
    
    .main-container.initial-state .cards-area {
        min-height: 240px;
    }
    
    .tarot-card {
        width: 85px;
        height: 133px;
    }
    
    .main-container.reading-state .tarot-card.main-card {
        width: 140px;
        height: 218px;
    }
    
    .action-btn {
        padding: 14px 16px;
        font-size: 0.85rem;
        min-height: 52px;
    }
    
    .prompt-main {
        font-size: 1rem;
    }
    
    .prompt-sub {
        font-size: 0.9rem;
    }
}

/* ============================================
   LANDSCAPE MOBILE - Height Challenged
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .main-container.initial-state {
        padding-top: 2vh;
        padding-bottom: 80px;
    }
    
    .main-container.initial-state .brand-title {
        font-size: 1.3rem;
    }
    
    .main-container.initial-state .cards-area {
        min-height: 200px;
    }
    
    .tarot-card {
        width: 100px;
        height: 156px;
    }
    
    .main-container.reading-state {
        padding: 50px 15px 20px;
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }
    
    .main-container.reading-state .cards-area {
        flex: 0 0 180px;
        min-height: auto;
        max-height: none;
        padding-top: 20px;
    }
    
    .main-container.reading-state .tarot-card.main-card {
        width: 160px;
        height: 250px;
    }
    
    .main-container.reading-state .reading-panel {
        flex: 1;
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects entirely on touch devices */
    .tarot-card:not(.flipped):not(.faded):hover {
        transform: none;
    }
    
    .tarot-card:not(.flipped):not(.faded):hover .card-back {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(201, 169, 89, 0.1);
    }
    
    .action-btn:hover {
        transform: none;
    }
    
    .confirm-offering-btn:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .action-btn {
        min-height: 56px;
    }
    
    .payment-option {
        min-height: 60px;
    }
    
    /* Touch feedback ripple hint */
    .tarot-card::after,
    .action-btn::after,
    .payment-option::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, opacity 0.3s;
        opacity: 0;
        pointer-events: none;
    }
    
    .tarot-card:active::after,
    .action-btn:active::after,
    .payment-option:active::after {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
}

/* Global touch feedback backup */
button:active,
[role="button"]:active,
a:active {
    opacity: 0.85;
    transform: scale(0.98);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --gold: #e8c060;
        --text: #ffffff;
    }
}

    .action-btn {
        border: 2px solid var(--gold);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fog-blob,
    .glow-orb {
        animation: none;
        opacity: 0.6;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--primary);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
/* Hardware acceleration for animated elements */
.tarot-card,
.card-inner,
.fog-blob,
.glow-orb,
.action-btn,
.payment-modal {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce paint areas */
.mist-background,
.architecture {
    will-change: opacity;
}

/* ============================================
   FAN CARD LAYOUT STYLES
   ============================================ */
.tarot-card.fan-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) translateY(-50%) rotate(var(--fan-rotation, 0deg));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                z-index 0s;
    cursor: pointer;
}

.tarot-card.fan-card.visible {
    opacity: 1;
}

/* Hover effect for fan cards */
.tarot-card.fan-card:hover {
    transform: translateX(-50%) translateY(-70%) rotate(var(--fan-rotation, 0deg)) scale(1.05);
    z-index: 100 !important;
}

/* Selected card state */
.tarot-card.fan-card.selected-card {
    transform: translateX(-50%) translateY(-90%) rotate(var(--fan-rotation, 0deg)) scale(1.1);
    z-index: 99 !important;
    box-shadow: 0 0 40px rgba(201, 169, 89, 0.4),
                0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Selection indicator ring */
.card-selection-indicator {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid var(--gold);
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
    animation: pulseRing 2s infinite;
}

.tarot-card.fan-card.selected-card .card-selection-indicator {
    opacity: 1;
    transform: scale(1);
}

@keyframes pulseRing {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 89, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(201, 169, 89, 0.1);
    }
}

/* Shake animation for max selection */
@keyframes shake {
    0%, 100% { transform: translateX(-50%) translateY(-50%) rotate(var(--fan-rotation, 0deg)); }
    25% { transform: translateX(-47%) rotate(var(--fan-rotation, 0deg)); }
    75% { transform: translateX(-53%) rotate(var(--fan-rotation, 0deg)); }
}

.tarot-card.fan-card.shake {
    animation: shake 0.3s ease;
}

/* ============================================
   MIST VEIL OVERLAY
   ============================================ */
.mist-veil {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 21, 37, 0.95) 0%,
        rgba(30, 40, 60, 0.9) 30%,
        rgba(20, 30, 50, 0.85) 60%,
        rgba(15, 21, 37, 0.95) 100%
    );
    backdrop-filter: blur(8px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

.mist-veil.visible {
    opacity: 1;
    pointer-events: auto;
}

.mist-veil.dispersing {
    animation: mistDisperse 1.5s ease forwards;
}

@keyframes mistDisperse {
    0% {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
    50% {
        opacity: 0.5;
        backdrop-filter: blur(4px);
    }
    100% {
        opacity: 0;
        backdrop-filter: blur(0);
        pointer-events: none;
    }
}

/* Mist veil particles */
.mist-veil-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.mist-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(201, 169, 89, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: mistFloat 4s ease-in-out infinite;
}

.mist-particle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.mist-particle:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.mist-particle:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.mist-particle:nth-child(4) {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 10%;
    animation-delay: 0.5s;
}

.mist-particle:nth-child(5) {
    width: 90px;
    height: 90px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1.5s;
}

@keyframes mistFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.8;
    }
}

/* Mist veil content */
.mist-veil-content {
    text-align: center;
    z-index: 5;
    padding: 40px;
}

.veil-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text);
    font-style: italic;
    margin-bottom: 30px;
    opacity: 0.9;
}

.veil-reveal-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #a08040 100%);
    border: none;
    color: var(--primary);
    padding: 16px 40px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(201, 169, 89, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.veil-reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201, 169, 89, 0.4);
}

.veil-reveal-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.3rem;
}

/* ============================================
   COOLDOWN MODAL
   ============================================ */
.cooldown-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.cooldown-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.cooldown-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 450px;
}

.cooldown-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.cooldown-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cooldown-timer {
    background: linear-gradient(135deg, rgba(201, 169, 89, 0.1) 0%, rgba(160, 128, 64, 0.05) 100%);
    border: 2px solid rgba(201, 169, 89, 0.3);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.timer-label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer-count {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 4px;
}

.cooldown-note {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--text);
    opacity: 0.6;
    font-style: italic;
}

/* ============================================
   UNLOCK MODAL (PSEUDO-PAYMENT)
   ============================================ */
.unlock-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.unlock-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.unlock-content {
    background: linear-gradient(180deg, #1a1f2e 0%, #0f1525 100%);
    border: 2px solid rgba(201, 169, 89, 0.25);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 420px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(201, 169, 89, 0.1);
}

.unlock-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text);
    opacity: 0.5;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.unlock-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.unlock-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.unlock-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--text);
    opacity: 0.85;
    margin-bottom: 35px;
    line-height: 1.6;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(201, 169, 89, 0.08) 0%, rgba(160, 128, 64, 0.04) 100%);
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 89, 0.2);
}

.original-price {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--text);
    opacity: 0.5;
    text-decoration: line-through;
}

.price-divider {
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.6;
}

.free-price {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(201, 169, 89, 0.4);
}

.unlock-cta {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.75;
    margin-bottom: 30px;
    font-style: italic;
}

.unlock-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #a08040 50%, #d4b86a 100%);
    background-size: 200% 200%;
    border: none;
    color: var(--primary);
    padding: 18px 50px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(201, 169, 89, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.unlock-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(201, 169, 89, 0.4);
    background-position: 100% 0;
}

.unlock-btn:active {
    transform: translateY(-1px) scale(1);
}

/* ============================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .tarot-card.fan-card {
        bottom: 10%;
    }
    
    .mist-veil-content {
        padding: 20px;
    }
    
    .veil-text {
        font-size: 1.2rem;
    }
    
    .veil-reveal-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .cooldown-content {
        padding: 40px 20px;
    }
    
    .cooldown-title {
        font-size: 1.5rem;
    }
    
    .timer-count {
        font-size: 2rem;
    }
    
    .unlock-content {
        padding: 40px 25px;
        margin: 20px;
    }
    
    .unlock-title {
        font-size: 1.4rem;
    }
    
    .price-display {
        padding: 20px;
        gap: 15px;
    }
    
    .free-price {
        font-size: 1.6rem;
    }
    
    .unlock-btn {
        padding: 15px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tarot-card.fan-card {
        top: 55%;
    }
    
    .tarot-card.fan-card:hover,
    .tarot-card.fan-card.selected-card {
        transform: translateX(-50%) translateY(-60%) rotate(var(--fan-rotation, 0deg)) scale(1.03);
    }
}

/* ============================================
   CRITICAL FIXES - BLACK SCREEN & LAYOUT
   ============================================ */

/* Black Screen Entry Animation */
.black-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    transition: opacity 1s ease !important;
    pointer-events: auto !important;
}

.black-screen .brand-title {
    font-family: 'Cinzel Decorative', cursive !important;
    font-size: 2rem !important;
    color: #c9a959 !important;
    letter-spacing: 8px !important;
    text-transform: uppercase !important;
    opacity: 0 !important;
    animation: titleAppear 1.5s ease 0.5s forwards !important;
}

@keyframes titleAppear {
    from { opacity: 0; letter-spacing: 20px; }
    to { opacity: 1; letter-spacing: 8px; }
}

.black-screen.fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
}

.black-screen.hidden {
    display: none !important;
}

/* ============================================
   WELCOME SCREEN
   ============================================ */
.welcome-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 1.2s ease, visibility 0s 1.2s !important;
    background: transparent !important;
}

.welcome-screen.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 1.2s ease, visibility 0s 0s !important;
}

.welcome-screen.hidden {
    display: none !important;
}

.welcome-content {
    text-align: center !important;
    padding: 40px 30px !important;
    max-width: 600px !important;
}

.welcome-title {
    font-family: 'Cinzel Decorative', cursive !important;
    font-size: 2.2rem !important;
    color: var(--gold) !important;
    margin-bottom: 20px !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    animation: welcomeFadeIn 1s ease 0.3s forwards !important;
}

.welcome-text {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.4rem !important;
    color: var(--text) !important;
    font-style: italic !important;
    margin-bottom: 15px !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    animation: welcomeFadeIn 1s ease 0.6s forwards !important;
}

.welcome-hint {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 40px !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    animation: welcomeFadeIn 1s ease 0.9s forwards !important;
}

.begin-btn {
    font-family: 'Cinzel', serif !important;
    font-size: 1.1rem !important;
    color: var(--gold) !important;
    background: transparent !important;
    border: 2px solid var(--gold) !important;
    padding: 15px 50px !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    animation: welcomeFadeIn 1s ease 1.2s forwards !important;
}

.begin-btn:hover {
    background: var(--gold) !important;
    color: #000 !important;
    box-shadow: 0 0 30px rgba(201, 169, 89, 0.4) !important;
    transform: translateY(20px) scale(1.05) !important;
}

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

/* Mobile Welcome Screen */
@media (max-width: 480px) {
    .welcome-title {
        font-size: 1.6rem !important;
    }
    .welcome-text {
        font-size: 1.1rem !important;
    }
    .welcome-hint {
        font-size: 0.9rem !important;
    }
    .begin-btn {
        font-size: 0.95rem !important;
        padding: 12px 40px !important;
    }
}

/* Fan Cards - Center Positioning Fix */
.main-container.initial-state .cards-area {
    position: relative !important;
    width: 100% !important;
    max-width: 700px !important;
    min-height: 450px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 30px auto !important;
}

.tarot-card.fan-card {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    bottom: auto !important;
    transform-origin: center bottom !important;
    transform: translateX(-50%) translateY(-50%) rotate(var(--fan-rotation, 0deg)) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                z-index 0s !important;
    cursor: pointer !important;
}

.tarot-card.fan-card.visible {
    opacity: 1 !important;
}

/* Hover effect for fan cards */
.tarot-card.fan-card:hover {
    transform: translateX(-50%) translateY(-70%) rotate(var(--fan-rotation, 0deg)) scale(1.05) !important;
    z-index: 100 !important;
}

/* Selected card state with gold border */
.tarot-card.fan-card.selected-card {
    transform: translateX(-50%) translateY(-90%) rotate(var(--fan-rotation, 0deg)) scale(1.1) !important;
    z-index: 99 !important;
    box-shadow: 0 0 40px rgba(201, 169, 89, 0.4),
                0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

/* Selection indicator ring */
.tarot-card.fan-card.selected-card .card-selection-indicator {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Shake animation for max selection */
@keyframes shakeFan {
    0%, 100% { transform: translateX(-50%) translateY(-50%) rotate(var(--fan-rotation, 0deg)); }
    25% { transform: translateX(-47%) translateY(-50%) rotate(var(--fan-rotation, 0deg)); }
    75% { transform: translateX(-53%) translateY(-50%) rotate(var(--fan-rotation, 0deg)); }
}

.tarot-card.fan-card.shake {
    animation: shakeFan 0.3s ease !important;
}

/* Ensure Fog Animations Run */
.fog-blob {
    opacity: 0;
}

.fog-blob.large-1 { animation: fogDrift1 30s ease-in-out infinite, fogRise 8s ease-out forwards !important; }
.fog-blob.large-2 { animation: fogDrift2 35s ease-in-out infinite, fogRise 8s ease-out 0.5s forwards !important; }
.fog-blob.large-3 { animation: fogDrift3 25s ease-in-out infinite, fogRise 8s ease-out 1s forwards !important; }
.fog-blob.medium-1 { animation: fogDrift4 28s ease-in-out infinite, fogRise 8s ease-out 1.5s forwards !important; }

/* Mist Veil Fix */
.mist-veil.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Mobile Fan Card Override */
@media (max-width: 480px) {
    .tarot-card.fan-card {
        top: 55% !important;
        bottom: auto !important;
    }
    
    .tarot-card.fan-card:hover,
    .tarot-card.fan-card.selected-card {
        transform: translateX(-50%) translateY(-60%) rotate(var(--fan-rotation, 0deg)) scale(1.03) !important;
    }
}
