.tarot-page {
    min-height: 100vh;
    padding: 100px 20px 60px;
}

.tarot-container {
    max-width: 1080px;
    margin: 0 auto;
}


/* HERO */

.tarot-hero {
    text-align: center;
    margin-bottom: 30px;
}

.tarot-hero h1 {
    margin: 0 0 12px;

    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;

    background:
        linear-gradient(90deg,
            #d9a6ff,
            #ffe600);

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tarot-hero p {
    max-width: 640px;
    margin: 0 auto;

    font-size: 16px;
    line-height: 1.7;
    opacity: 0.8;
}


/* SECTION CARD */

.tarot-section-card {
    padding: 24px;
    margin-bottom: 20px;

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        rgba(217, 166, 255, .10),
        rgba(255, 255, 255, .03)
    );

    border: 1px solid rgba(217, 166, 255, .18);
}

.tarot-section-card h2 {
    margin: 0 0 18px;
    font-size: 18px;
}

.tarot-heading-sub {
    font-weight: 400;
    font-size: 13px;
    opacity: 0.6;
}


/* READING TYPE CARDS (hub) */

.tarot-reading-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 16px;

    margin-bottom: 20px;
}

.tarot-reading-type-card {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 22px 20px;

    border-radius: 16px;

    text-decoration: none;
    color: white;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, .08),
        rgba(255, 255, 255, .03)
    );

    border: 1px solid rgba(255, 255, 255, .15);

    transition: 0.2s ease;
}

.tarot-reading-type-card:hover {
    border-color: rgba(217, 166, 255, .5);
    transform: translateY(-2px);
}

.tarot-reading-type-icon {
    font-size: 28px;
}

.tarot-reading-type-card strong {
    font-size: 15px;
}

.tarot-reading-type-card span {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.7;
}


/* DECK GRID */

.tarot-deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));

    gap: 14px;
}

.tarot-card-link {
    text-decoration: none;
    color: inherit;
}


/* CARD VISUAL */

.tarot-card-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tarot-card-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    position: relative;

    width: 100%;
    aspect-ratio: 2 / 3;

    padding: 10px 6px;

    border-radius: 12px;

    text-align: center;

    background: linear-gradient(160deg, #241033, #120a1c);

    border: 1px solid rgba(217, 166, 255, .35);

    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .04);

    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tarot-card-face.arcana-minor {
    background: linear-gradient(160deg, #1c1f33, #0c0e1c);
    border-color: rgba(120, 170, 255, .3);
}

.tarot-card-link:hover .tarot-card-face {
    transform: translateY(-4px);
    border-color: #ffe600;
}

.tarot-card-face.is-reversed {
    transform: rotate(180deg);
}

.tarot-card-link:hover .tarot-card-face.is-reversed {
    transform: rotate(180deg) translateY(4px);
}

.tarot-card-number {
    position: absolute;
    top: 6px;
    left: 8px;

    font-size: 10px;
    font-weight: 700;
    opacity: 0.5;
}

.tarot-card-symbol {
    font-size: clamp(22px, 4vw, 34px);
}

.tarot-card-name {
    font-size: 11px;
    font-weight: 700;

    line-height: 1.3;

    padding: 0 4px;
}

.size-lg .tarot-card-face {
    max-width: 220px;
}

.size-lg .tarot-card-symbol {
    font-size: 56px;
}

.size-lg .tarot-card-name {
    font-size: 15px;
}

.tarot-card-face.has-image {
    padding: 0;
    overflow: hidden;
    background: #000;
}

.tarot-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tarot-card-caption {
    display: block;

    margin-top: 2px;

    font-size: 11px;
    font-weight: 700;
    text-align: center;

    line-height: 1.3;
}

.size-lg .tarot-card-caption {
    font-size: 15px;
}

.tarot-direction-badge {
    padding: 3px 12px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;

    background: rgba(255, 255, 255, .08);
}

.tarot-direction-badge.upright {
    color: #6be08a;
    background: rgba(90, 220, 130, .15);
}

.tarot-direction-badge.reversed {
    color: #ff8a8a;
    background: rgba(255, 60, 60, .12);
}


/* REAL CARD ARTWORK */

.tarot-card-image-wrap {
    width: 220px;
    max-width: 60vw;

    border-radius: 16px;
    overflow: hidden;

    border: 1px solid rgba(217, 166, 255, .35);

    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

.tarot-card-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
}


/* CARD DETAIL HERO */

.tarot-card-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;

    flex-wrap: wrap;

    text-align: center;

    margin-bottom: 24px;
}

.tarot-keyword-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;

    max-width: 520px;
}

.tarot-keyword-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tarot-keyword-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.55;
}

.tarot-keyword-text {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 260px;
}


/* MEANING GRID (love / career / finance / health) */

.tarot-meaning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 14px;

    margin-top: 14px;
}

.tarot-meaning-item {
    padding: 14px 16px;

    border-radius: 12px;

    background: rgba(255, 255, 255, .05);

    border: 1px solid rgba(255, 255, 255, .1);
}

.tarot-meaning-item strong {
    display: block;

    margin-bottom: 6px;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;

    color: #d9a6ff;
}

.tarot-meaning-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.85;
}

.tarot-section-card p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.75;
    opacity: 0.85;
}

.tarot-section-card p:last-child {
    margin-bottom: 0;
}

.tarot-section-card h3 {
    margin: 18px 0 8px;
    font-size: 15px;
    color: #ffe600;
}


/* CARD DETAIL HERO */

.tarot-detail-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    text-align: center;

    margin-bottom: 24px;
}

.tarot-detail-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: radial-gradient(circle, #ffe600, #d9a600);

    font-size: 16px;

    box-shadow: 0 0 20px rgba(255, 230, 0, .5);
}

.tarot-detail-title {
    margin: 0;
    font-size: 34px;
}


/* INLINE (floated) CARD ARTWORK WITHIN LONG-FORM TEXT */

.tarot-inline-image {
    float: right;

    margin: 0 0 16px 24px;
}

.tarot-clear {
    clear: both;
}


/* ONE CARD PULL / YES-NO */

.tarot-pull-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tarot-pull-item {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.tarot-pull-item.yes {
    background: rgba(90, 220, 130, .12);
    border: 1px solid rgba(90, 220, 130, .3);
}

.tarot-pull-item.no {
    background: rgba(255, 60, 60, .1);
    border: 1px solid rgba(255, 100, 100, .3);
}

.tarot-pull-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}


/* FORM CARD */

.tarot-form-card {
    max-width: 480px;
    margin: 0 auto 24px;

    padding: 28px 24px;

    border-radius: 20px;

    text-align: center;

    background: linear-gradient(
        135deg,
        rgba(217, 166, 255, .12),
        rgba(255, 255, 255, .03)
    );

    border: 1px solid rgba(217, 166, 255, .25);
}

.tarot-field {
    margin-bottom: 16px;
    text-align: left;
}

.tarot-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.6px;
    opacity: 0.72;
}

.tarot-field input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border-radius: 11px;

    border: 1px solid rgba(255, 255, 255, .18);

    background: rgba(255, 255, 255, .08);

    color: white;

    outline: none;

    font-size: 14px;
}

.tarot-field input:focus {
    border-color: #ffe600;
}

.tarot-hint {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.7;
}

.tarot-submit-btn {
    width: 100%;
    height: 50px;

    border: 0;
    border-radius: 30px;

    background: linear-gradient(90deg, #d9a6ff, #ffe600);

    color: #14071e;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.tarot-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tarot-secondary-btn {
    width: 100%;
    height: 46px;

    margin-top: 12px;

    border-radius: 30px;
    border: 1px solid rgba(217, 166, 255, .4);

    background: transparent;

    color: #f2e6ff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.tarot-secondary-btn:hover {
    border-color: #ffe600;
    color: #ffe600;
}


/* PICKING (face-down fan) */

.tarot-picking-card {
    max-width: 720px;
}

.tarot-picking-title {
    margin-bottom: 6px;
    font-size: 22px;
}

.tarot-picker-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    margin-top: 10px;
}

.tarot-picker-card {
    width: 54px;
    aspect-ratio: 2 / 3;

    padding: 0;
    border: 1px solid rgba(217, 166, 255, .35);
    border-radius: 8px;

    background: linear-gradient(160deg, #3a1a57, #1a0d29);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .06);

    color: #d9a6ff;
    font-size: 20px;

    cursor: pointer;

    transition: transform 0.15s ease, border-color 0.15s ease;
}

.tarot-picker-card:hover {
    transform: translateY(-6px);
    border-color: #ffe600;
    color: #ffe600;
}

.tarot-picker-card:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.tarot-picker-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}


/* REVEAL */

.tarot-reveal-card {
    max-width: 340px;
}

.tarot-reveal-card .tarot-card-visual {
    margin: 0 auto 16px;
}

.tarot-reveal-title {
    margin-bottom: 18px;
    font-size: 20px;
}

.tarot-reveal-actions {
    display: flex;
    gap: 12px;

    flex-wrap: wrap;
}

.tarot-reveal-actions .tarot-submit-btn,
.tarot-reveal-actions .tarot-secondary-btn {
    width: auto;
    flex: 1;
    margin-top: 0;

    min-width: 180px;
}


/* LOVE RESULT (image + text, alternating sides) */

.tarot-love-result-heading {
    text-align: center;
}

.tarot-love-card-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;

    padding: 20px 0;

    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tarot-love-card-row:last-child {
    border-bottom: 0;
}

.tarot-love-card-row.reverse {
    flex-direction: row-reverse;
}

.tarot-love-card-image {
    flex: 0 0 140px;
}

.tarot-love-card-text {
    flex: 1;
    min-width: 0;
}

.tarot-love-card-text h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.tarot-love-position {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.6;
}

.tarot-yes-no-answer {
    margin: 0 0 8px;

    font-size: 15px;
    font-weight: 700;

    color: #ffe600;
}


/* SPREAD (three-card) */

.tarot-spread-row {
    display: flex;
    justify-content: center;
    gap: 24px;

    flex-wrap: wrap;

    margin-bottom: 20px;
}

.tarot-spread-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    width: 140px;
}

.tarot-spread-slot-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
}


/* RESULT */

.tarot-result-card {
    padding: 28px 24px;
    margin-bottom: 20px;

    border-radius: 20px;

    background: linear-gradient(
        135deg,
        rgba(217, 166, 255, .12),
        rgba(255, 255, 255, .03)
    );

    border: 1px solid rgba(217, 166, 255, .25);
}

.tarot-result-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.tarot-result-headline {
    margin: 0;
}

.tarot-result-paragraph {
    max-width: 560px;
    text-align: center;
    opacity: 0.9;
}

.tarot-result-meaning-grid {
    width: 100%;
    text-align: left;
}

.tarot-result-heading {
    text-align: center;
    margin-bottom: 20px;
}

.tarot-result-heading h1,
.tarot-result-heading h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.tarot-result-heading p {
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
}

.tarot-extra-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tarot-extra-item:last-child {
    border-bottom: 0;
}

.tarot-extra-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.55;
}

.tarot-extra-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.85;
}

.tarot-answer-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 18px;

    padding: 8px 24px;

    border-radius: 30px;

    font-size: 18px;
    font-weight: 800;

    background: rgba(255, 230, 0, .12);
    color: #ffe600;
}


/* CTA */

.tarot-cta-row {
    display: flex;
    justify-content: center;
    gap: 14px;

    flex-wrap: wrap;

    margin: 10px 0 20px;
}

.tarot-cta-btn {
    padding: 12px 26px;

    border-radius: 30px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.tarot-cta-btn.primary {
    background: linear-gradient(90deg, #fff18b, #ffe52f);
    color: #171300;
}

.tarot-cta-btn.secondary {
    background: rgba(255, 255, 255, .08);
    color: white;
    border: 1px solid rgba(255, 255, 255, .2);
}


/* FAQ */

.tarot-faq-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tarot-faq-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.tarot-faq-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.tarot-faq-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.75;
}


/* ERROR / EMPTY */

.tarot-error {
    max-width: 480px;
    margin: 0 auto 16px;

    padding: 10px 12px;

    border-radius: 8px;

    background: rgba(255, 50, 50, .12);
    color: #ff9b9b;

    font-size: 13px;
    text-align: center;
}

.tarot-empty {
    margin: 0;
    font-size: 13px;
    opacity: 0.6;
}


/* RELATED CARDS NAV */

.tarot-related-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tarot-related-pill {
    padding: 6px 14px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;

    color: white;
    text-decoration: none;

    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
}

.tarot-related-pill:hover {
    background: #ffe600;
    color: #111;
    border-color: #ffe600;
}


/* MOBILE */

@media (max-width: 768px) {
    .tarot-page {
        padding: 90px 14px 40px;
    }

    .tarot-section-card {
        padding: 18px;
    }

    .tarot-deck-grid {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    }

    .tarot-pull-grid {
        grid-template-columns: 1fr;
    }

    .tarot-spread-row {
        gap: 14px;
    }

    .tarot-spread-slot {
        width: 100px;
    }

    .tarot-love-card-row,
    .tarot-love-card-row.reverse {
        flex-direction: column;
        align-items: center;

        text-align: center;
    }

    .tarot-love-card-image {
        flex: 0 0 auto;
        width: 140px;
    }
}
