:root {
    --color-bg: #F9F8F4;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-400: #a8a29e;
    --color-stone-600: #57534e;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    --color-gold: #C5A059;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-stone-800);
    font-family: var(--font-sans);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
}

.italic {
    font-style: italic;
}

.text-gold {
    color: var(--color-gold);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s;
}

nav.scrolled {
    background: rgba(249, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-stone-900);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 1px solid var(--color-gold);
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-stone-600);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.btn-nav {
    background: var(--color-stone-900);
    color: var(--color-gold) !important;
    padding: 8px 20px;
    border-radius: 2px;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #f9f8f4 0%, #e6e4dc 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9IiNjNWEwNTkiIGZpbGwtb3BhY2l0eT0iMC4yIi8+PC9zdmc+');
    opacity: 0.4;
    z-index: -1;
}

.badge {
    display: inline-flex;
    gap: 10px;
    border: 1px solid rgba(197, 160, 89, 0.5);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 30px;
    color: var(--color-stone-900);
}

.hero h1 span {
    font-size: 3.5rem;
    color: var(--color-stone-600);
    display: block;
    margin-top: 15px;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--color-stone-600);
}

.scroll-down {
    text-decoration: none;
    color: var(--color-stone-400);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.arrow-circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-stone-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
}

/* Sections */
.section-white {
    padding: 100px 0;
    background: white;
    border-bottom: 1px solid var(--color-stone-100);
}

.section-stone {
    padding: 100px 0;
    background: var(--color-stone-100);
    position: relative;
    overflow: hidden;
}

.section-dark {
    padding: 80px 0;
    background: var(--color-stone-900);
    color: var(--color-stone-400);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.sub-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-stone-400);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--color-stone-900);
    margin-bottom: 15px;
}

.intro-text {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-stone-600);
}

/* Card Styling */
/* Card Styling */
.card-placeholder {
    width: 380px;
    /* Increased to keep ratio with 600px */
    height: 600px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.card-placeholder:hover {
    transform: scale(1.02);
}

.card-back {
    width: 100%;
    height: 100%;
    background: var(--color-stone-900);
    border: 2px solid var(--color-stone-400);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* ... unused stack styles ... */

.card-stack,
.card-stack-2 {
    display: none;
}

/* Hide stack effect for cleaner look at large size */

/* 3D Card Flip */
.card-scene {
    width: 380px;
    height: 600px;
    perspective: 1000px;
    margin: 0 auto;
}

.card-scene.small {
    width: 220px;
    height: 360px;
    cursor: pointer;
}

/* ... */

.card-object {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-object.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-back-face {
    background: var(--color-stone-900);
    border: 1px solid var(--color-stone-600);
    background-image: repeating-linear-gradient(45deg, #222 0, #222 1px, transparent 0, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back-face::after {
    content: '☾';
    /* Moon symbol */
    color: var(--color-gold);
    font-size: 30px;
}

.card-front-face {
    background: #F9F8F4;
    transform: rotateY(180deg);
    border: 4px double var(--color-gold);
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* ... */

/* Shadow and Border for Daily Image */
.card-img-daily {
    height: 600px;
    width: auto;
    max-width: 100%;
    /* Prevent overflow */
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Shadow under image */
    border: none;
    /* No border */
    margin: 0 auto;
}

#single-result .card-front-face {
    border: none;
    background: transparent;
    /* Or keep bg if needed, but border none is key */
    padding: 0;
}

#s-card-name {
    display: none;
}

.card-number:empty {
    display: none;
}

.english-name {
    display: none !important;
}

/* ... */

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-number {
    font-size: 10px;
    font-weight: bold;
    color: var(--color-stone-400);
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.card-image-placeholder {
    flex: 1;
    background: var(--color-stone-100);
    border: 1px solid var(--color-stone-200);
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image-placeholder span {
    font-size: 30px;
    margin-bottom: 5px;
}

/* Result Interpretation */
.interpretation {
    max-width: 800px;
    /* Wider for better reading */
    margin: 60px auto 0;
    background: white;
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--color-stone-200);
    text-align: center;
    animation: fadeIn 1s ease;
}

.main-meaning {
    font-size: 1.4rem;
    /* Larger */
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-stone-600);
    margin-bottom: 40px;
    line-height: 1.8;
}

.meaning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: left;
    border-top: 1px solid var(--color-stone-100);
    padding-top: 30px;
}

.meaning-grid h4 {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-stone-900);
    margin-bottom: 12px;
}

.meaning-grid p {
    font-size: 16px;
    /* Larger */
    line-height: 1.7;
    color: var(--color-stone-700);
}

.btn-reset {
    margin-top: 30px;
    background: none;
    border: none;
    color: var(--color-stone-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: auto;
}

.btn-reset:hover {
    color: var(--color-stone-900);
}

/* Three Card Grid */
.three-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.three-col {
    text-align: center;
    max-width: 250px;
}

.three-col .label {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-size: 18px;
}

.mini-meaning {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.6);
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-stone-600);
    animation: fadeIn 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.center-btn-container {
    text-align: center;
}

.btn-large {
    position: relative;
    background: var(--color-stone-900);
    color: white;
    border: none;
    padding: 15px 40px;
    font-family: var(--font-serif);
    font-size: 18px;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s;
}

.btn-large:hover {
    background: var(--color-stone-800);
}

/* Ja Nein Tarot */
.ja-nein-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0 30px 0;
}

.ja-nein-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.ja-nein-card:hover {
    transform: scale(1.05);
}

.ja-nein-result {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--color-stone-200);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    animation: fadeIn 0.7s;
}

.btn-details {
    display: inline-block;
    background: var(--color-stone-100);
    color: var(--color-stone-600);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--color-stone-200);
    transition: all 0.2s;
}

.btn-details:hover {
    background: var(--color-gold);
    color: white;
    border-color: var(--color-gold);
}

.result-ja {
    color: #166534 !important;
}

/* Green */
.result-nein {
    color: #991b1b !important;
}

/* Red */
.result-neutral {
    color: var(--color-stone-600) !important;
}

.ja-nein-result h2 {
    font-size: 2.5rem;
    color: var(--color-stone-900);
    margin: 16px 0;
}

.ja-nein-result p {
    font-size: 1.05rem;
    color: var(--color-stone-600);
    margin-bottom: 18px;
}

.ja-nein-result .badge-small {
    margin-bottom: 8px;
}

.card-result-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-stone-800);
    font-weight: 600;
    margin: 8px 0 12px 0;
}

/* Decor */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--color-stone-800);
    opacity: 0.05;
    pointer-events: none;
}

.c1 {
    width: 600px;
    height: 600px;
    top: -300px;
    left: -200px;
}

.c2 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: var(--color-gold);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.about-card h3 {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--color-stone-600);
}

.quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: #e5e5e5;
}

.divider {
    width: 40px;
    height: 1px;
    background: var(--color-gold);
    margin: 20px auto;
    opacity: 0.5;
}

footer {
    background: #0c0a09;
    color: #57534e;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #1c1917;
}

.footer-brand {
    font-family: var(--font-serif);
    color: var(--color-gold);
    margin-bottom: 10px;
}

.footer p {
    font-size: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Keywords fix */
.keywords-list {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    /* Ensure gap */
    flex-wrap: wrap;
}

/* Button spacing */
.btn-details-daily {
    margin-top: 30px;
    /* Space before button */
    padding: 12px 24px;
    /* Larger touch target */
    font-size: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero h1 span {
        font-size: 20px;
    }

    /* Fixed excessively large subtitle on mobile */
    .nav-links {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .three-grid {
        flex-direction: column;
        align-items: center;
    }

    /* Resize giant card for mobile */
    .card-placeholder,
    .card-scene {
        width: 280px;
        height: 440px;
    }

    .card-scene.small {
        width: 140px;
        height: 230px;
    }

    .interpretation {
        padding: 20px;
        margin-top: 30px;
    }

    .meaning-grid {
        grid-template-columns: 1fr;
        /* Stack columns */
        gap: 30px;
    }

    .ja-nein-cards {
        gap: 15px;
    }
}
.sparkle-icon {
    font-size: 50px;
    color: var(--color-gold);
    display: block;
}

