/* =====================================================================
   Tarot Reading Block — block.css
   Использует CSS-переменные темы astromagi
   ===================================================================== */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:ital,wght@0,300;0,400;1,300&display=swap');

/* ── Root ── */
.tarot-reading-block {
    --tarot-gold:       #FFE39C;
    --tarot-gold-dim:   rgba(255, 227, 156, 0.35);
    --tarot-gold-faint: rgba(255, 227, 156, 0.08);
    --tarot-dark:       #0e0118;
    --tarot-card-bg:    #130221;
    --tarot-purple:     #8D04CE;
    --tarot-glass:      rgba(22, 3, 31, 0.75);
    --tarot-radius:     14px;
    --tarot-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: 'Montserrat Alternates', sans-serif;
    background: var(--tarot-dark);
    padding: 60px 20px 80px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin: 40px 0;
    width: 100%;
}

/* Ambient background glow */
.tarot-reading-block::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(141, 4, 206, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.tarot-reading-block::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(141, 4, 206, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ── Spread Selector ── */
.tarot-spreads {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 48px;
}

.tarot-spreads__hint {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--tarot-gold);
    opacity: 0.55;
    margin: 0 0 24px;
}

.tarot-spreads__grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Spread Button */
.tarot-spread-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--base-green-light, #7ea630);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    cursor: pointer;
    transition: var(--tarot-transition);
    font-family: inherit;
}

.tarot-spread-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(126, 166, 48, 0.4);
}

.tarot-spread-btn.is-active {
    background: #6a8f27;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 4px 12px rgba(126, 166, 48, 0.4);
    transform: translateY(0);
}

.tarot-spread-btn__icon {
    display: none;
}

.tarot-spread-btn__name {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
}

.tarot-spread-btn__desc {
    display: none;
}

/* ── Results Area ── */
.tarot-results {
    position: relative;
    z-index: 1;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Placeholder ── */
.tarot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    text-align: center;
    animation: tarot-fade-in 0.5s ease;
}

.tarot-placeholder__ornament {
    color: var(--tarot-gold);
    animation: tarot-spin-slow 20s linear infinite;
}

.tarot-placeholder__text {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(255, 227, 156, 0.3);
    max-width: 380px;
    line-height: 1.7;
    margin: 0;
}

@keyframes tarot-spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Loader ── */
.tarot-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: tarot-fade-in 0.3s ease;
}

.tarot-loader__spinner {
    position: relative;
    width: 56px;
    height: 56px;
}

.tarot-loader__ring {
    width: 56px;
    height: 56px;
    border: 3px solid var(--tarot-gold-faint);
    border-top-color: var(--tarot-gold);
    border-radius: 50%;
    animation: tarot-spin 1s linear infinite;
}

@keyframes tarot-spin {
    to { transform: rotate(360deg); }
}

.tarot-loader__text {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--tarot-gold);
    opacity: 0.6;
    animation: tarot-pulse 1.5s ease-in-out infinite;
    margin: 0;
}

@keyframes tarot-pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.8; }
}

/* ── Cards Area ── */
.tarot-cards-area {
    width: 100%;
    animation: tarot-fade-in 0.5s ease;
}

.tarot-spread-title-row {
    text-align: center;
    margin-bottom: 40px;
}

.tarot-spread-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FFE39C 0%, #d4a017 50%, #FFE39C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px;
}

.tarot-spread-subtitle {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255,227,156,0.4);
    margin: 0;
}

/* ── Cards Grid ── */
.tarot-cards-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
}

/* Maltese Cross layout */
.tarot-cards-grid.is-maltese {
    display: grid;
    grid-template-columns: repeat(3, 170px);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    justify-content: center;
    justify-items: center;
}

/* ── Single Card ── */
.tarot-card {
    perspective: 1000px;
    width: 170px;
    flex-shrink: 0;
    cursor: pointer;
    animation: tarot-card-appear 0.5s ease both;
}

.tarot-card:nth-child(1) { animation-delay: 0.05s; }
.tarot-card:nth-child(2) { animation-delay: 0.13s; }
.tarot-card:nth-child(3) { animation-delay: 0.21s; }
.tarot-card:nth-child(4) { animation-delay: 0.29s; }
.tarot-card:nth-child(5) { animation-delay: 0.37s; }

@keyframes tarot-card-appear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tarot-card__inner {
    position: relative;
    width: 100%;
    height: 285px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

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

.tarot-card:hover:not(.is-flipped) .tarot-card__inner {
    transform: rotateY(8deg) translateY(-4px);
    box-shadow: -8px 12px 32px rgba(141, 4, 206, 0.5);
}

/* Card faces */
.tarot-card__face {
    position: absolute;
    inset: 0;
    border-radius: var(--tarot-radius);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

/* Back face (card back) */
.tarot-card__back {
    background: linear-gradient(145deg, #1a0430 0%, #0e0118 100%);
    border: 1.5px solid var(--tarot-gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tarot-card__back-pattern {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160'%3E%3Cstyle%3E.g%7Bstroke:%23FFE39C;fill:none;stroke-linejoin:round%7D.f%7Bfill:%23FFE39C%7D%3C/style%3E%3Cg transform='translate(50,80)'%3E%3Cpath class='g' stroke-width='0.7' d='M0,-20L3,-30L0,-40L-3,-30Z M0,20L3,30L0,40L-3,30Z M20,0L30,-3L40,0L30,3Z M-20,0L-30,-3L-40,0L-30,3Z M14,-14L22,-18L28,-28L18,-22Z M-14,-14L-22,-18L-28,-28L-18,-22Z M14,14L22,18L28,28L18,22Z M-14,14L-22,18L-28,28L-18,22Z'/%3E%3Cpath class='g' stroke-width='0.7' d='M6,-19Q15,-28 10,-37Q20,-37 25,-42 M-6,-19Q-15,-28 -10,-37Q-20,-37 -25,-42 M6,19Q15,28 10,37Q20,37 25,42 M-6,19Q-15,28 -10,37Q-20,37 -25,42 M19,-6Q28,-15 37,-10Q37,-20 42,-25 M-19,-6Q-28,-15 -37,-10Q-37,-20 -42,-25 M19,6Q28,15 37,10Q37,20 42,25 M-19,6Q-28,15 -37,10Q-37,20 -42,25'/%3E%3Ccircle cx='0' cy='0' r='18' class='g' stroke-width='1.5'/%3E%3Cpath d='M0,-14A14,14 0 0,0 0,14A10,10 0 0,1 0,-14Z' class='g' stroke-width='1'/%3E%3Cpath d='M-4,-4Q-2,-2 -3,0L-2,2Q-4,4 -6,4' class='g' stroke-width='0.7'/%3E%3Ccircle cx='-6' cy='-2' r='0.8' class='f'/%3E%3Cpath d='M6,-4Q4,-2 5,0L4,2Q6,4 8,4' class='g' stroke-width='0.7'/%3E%3Ccircle cx='4' cy='-2' r='0.8' class='f'/%3E%3C/g%3E%3Cpattern id='stars' x='0' y='0' width='100' height='160' patternUnits='userSpaceOnUse'%3E%3Cpath class='f' d='M15,15L16.5,19L20.5,19.5L16.5,20.5L15,24.5L13.5,20.5L9.5,19.5L13.5,19Z'/%3E%3Cpath class='f' d='M85,15L86.5,19L90.5,19.5L86.5,20.5L85,24.5L83.5,20.5L79.5,19.5L83.5,19Z'/%3E%3Cpath class='f' d='M15,135L16.5,139L20.5,139.5L16.5,140.5L15,144.5L13.5,140.5L9.5,139.5L13.5,139Z'/%3E%3Cpath class='f' d='M85,135L86.5,139L90.5,139.5L86.5,140.5L85,144.5L83.5,140.5L79.5,139.5L83.5,139Z'/%3E%3Ccircle cx='50' cy='12' r='1' class='f'/%3E%3Ccircle cx='50' cy='148' r='1' class='f'/%3E%3Ccircle cx='12' cy='80' r='1' class='f'/%3E%3Ccircle cx='88' cy='80' r='1' class='f'/%3E%3C/pattern%3E%3Crect x='0' y='0' width='100' height='160' fill='url(%23stars)'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tarot-card__back-ornament {
    display: none;
}

/* Front face (card image + info) */
.tarot-card__front {
    transform: rotateY(180deg);
    background: var(--tarot-card-bg);
    border: 1.5px solid var(--tarot-gold);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(141, 4, 206, 0.4);
}

.tarot-card__image-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tarot-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.tarot-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 30px 8px 12px;
    text-align: center;
    background: linear-gradient(to top, var(--tarot-card-bg) 20%, rgba(20, 10, 33, 0.8) 60%, transparent);
}

.tarot-card__name-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tarot-gold);
    line-height: 1.3;
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
    margin-bottom: 4px;
}

.tarot-card__name-btn:hover {
    color: #fff;
}

.tarot-card__meaning {
    font-size: 0.58rem;
    font-style: italic;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.tarot-card__type {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,227,156,0.35);
    margin-top: 5px;
    display: block;
    border-top: 1px solid rgba(255,227,156,0.1);
    padding-top: 5px;
}

/* Reversed badge */
.tarot-card__reversed-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    font-size: 0.45rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(141, 4, 206, 0.7);
    color: var(--tarot-gold);
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid var(--tarot-gold-dim);
    display: none;
}

.tarot-card.is-reversed .tarot-card__reversed-badge {
    display: block;
}

/* Position label for Maltese Cross */
.tarot-card__position-label {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,227,156,0.4);
    text-align: center;
    margin-top: 8px;
}

/* ── Reshuffle Button ── */
.tarot-reshuffle-row {
    text-align: center;
    margin-top: 40px;
}

.tarot-reshuffle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    background: var(--base-green-light, #7ea630);
    color: #ffffff;
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--tarot-transition);
}

.tarot-reshuffle-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(126, 166, 48, 0.4);
}

/* ── Modal ── */
.tarot-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: tarot-fade-in 0.25s ease;
}

.tarot-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 0, 15, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.tarot-modal__window {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    background: linear-gradient(145deg, #170328 0%, #0e0118 100%);
    border: 1px solid var(--tarot-gold-dim);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,227,156,0.05);
    animation: tarot-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tarot-modal-in {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.tarot-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: rgba(255,227,156,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.tarot-modal__close:hover {
    color: var(--tarot-gold);
    background: rgba(141,4,206,0.4);
}

.tarot-modal__image-col {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid rgba(255,227,156,0.08);
}

.tarot-modal__img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(255,227,156,0.12);
}

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

.tarot-modal__content-col {
    flex: 1;
    padding: 40px 36px 36px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--tarot-gold-dim) transparent;
}

.tarot-modal__content-col::-webkit-scrollbar {
    width: 4px;
}
.tarot-modal__content-col::-webkit-scrollbar-thumb {
    background: var(--tarot-gold-dim);
    border-radius: 2px;
}

.tarot-modal__meta {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,227,156,0.4);
    display: block;
    margin-bottom: 8px;
}

.tarot-modal__name {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FFE39C 0%, #d4a017 60%, #FFE39C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 28px;
    line-height: 1.15;
}

.tarot-modal__section {
    margin-bottom: 24px;
}

.tarot-modal__section-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--tarot-gold);
    opacity: 0.65;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tarot-modal__section-line {
    display: block;
    width: 28px;
    height: 1px;
    background: rgba(255,227,156,0.3);
}

.tarot-modal__meaning {
    font-style: italic;
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    font-size: 0.95rem;
    margin: 0;
}

.tarot-modal__desc {
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    font-size: 0.85rem;
}

.tarot-modal__desc p {
    margin: 0 0 8px;
}

.tarot-modal__close-btn {
    display: block;
    width: 100%;
    margin-top: 32px;
    padding: 16px;
    border: 1px solid rgba(255,227,156,0.2);
    border-radius: 12px;
    background: transparent;
    color: var(--tarot-gold);
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--tarot-transition);
}

.tarot-modal__close-btn:hover {
    background: var(--tarot-gold-faint);
    border-color: var(--tarot-gold);
}

/* ── Utilities ── */
@keyframes tarot-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tarot-reading-block {
        padding: 40px 16px 60px;
        border-radius: 16px;
    }

    .tarot-spreads__grid {
        gap: 10px;
    }

    .tarot-spread-btn {
        min-width: 130px;
        padding: 18px 14px;
    }

    .tarot-spread-btn__name {
        font-size: 0.67rem;
    }

    .tarot-cards-grid {
        gap: 16px;
    }

    .tarot-cards-grid.is-maltese {
        grid-template-columns: repeat(3, 110px);
        gap: 10px;
    }

    .tarot-card {
        width: 110px;
    }

    .tarot-card__inner {
        height: 185px;
    }

    .tarot-modal__window {
        flex-direction: column;
        max-height: 88vh;
    }

    .tarot-modal__image-col {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,227,156,0.08);
        padding: 24px;
    }

    .tarot-modal__img {
        max-height: 220px;
    }

    .tarot-modal__content-col {
        padding: 24px 20px;
    }

    .tarot-modal__name {
        font-size: 1.35rem;
    }

    .tarot-spread-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .tarot-spreads__grid {
        flex-direction: column;
        align-items: center;
    }

    .tarot-spread-btn {
        width: 100%;
        max-width: 280px;
        flex-direction: row;
        text-align: left;
        gap: 14px;
    }

    .tarot-spread-btn__icon {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
    }

    .tarot-cards-grid.is-maltese {
        grid-template-columns: repeat(3, 90px);
        gap: 8px;
    }

    .tarot-card {
        width: 90px;
    }

    .tarot-card__inner {
        height: 150px;
    }
}

/* ── Light Theme Override ── */
html[data-theme="light"] .tarot-reading-block {
    --tarot-dark:     #ffffff; /* Distinct white background */
    --tarot-card-bg:  #f0f4fb; /* Very soft blue inner card background if needed */
    --tarot-glass:    rgba(255, 255, 255, 0.95);
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(47, 64, 146, 0.06);
    border: 1px solid rgba(47, 64, 146, 0.08);
    border-radius: 20px;
    padding: 40px !important;
    margin: 40px 0;
    width: 100%;
}

html[data-theme="light"] .tarot-reading-block::before,
html[data-theme="light"] .tarot-reading-block::after {
    display: none; /* Hide the pink gradients */
}

/* Light Card Back */
html[data-theme="light"] .tarot-card__back {
    background: linear-gradient(145deg, #ffffff 0%, #e8eef9 100%);
    border: 1.5px solid rgba(47, 64, 146, 0.15);
}

html[data-theme="light"] .tarot-card__back-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160'%3E%3Cstyle%3E.g%7Bstroke:%232F4092;fill:none;stroke-linejoin:round%7D.f%7Bfill:%232F4092%7D%3C/style%3E%3Cg transform='translate(50,80)'%3E%3Cpath class='g' stroke-width='0.7' d='M0,-20L3,-30L0,-40L-3,-30Z M0,20L3,30L0,40L-3,30Z M20,0L30,-3L40,0L30,3Z M-20,0L-30,-3L-40,0L-30,3Z M14,-14L22,-18L28,-28L18,-22Z M-14,-14L-22,-18L-28,-28L-18,-22Z M14,14L22,18L28,28L18,22Z M-14,14L-22,18L-28,28L-18,22Z'/%3E%3Cpath class='g' stroke-width='0.7' d='M6,-19Q15,-28 10,-37Q20,-37 25,-42 M-6,-19Q-15,-28 -10,-37Q-20,-37 -25,-42 M6,19Q15,28 10,37Q20,37 25,42 M-6,19Q-15,28 -10,37Q-20,37 -25,42 M19,-6Q28,-15 37,-10Q37,-20 42,-25 M-19,-6Q-28,-15 -37,-10Q-37,-20 -42,-25 M19,6Q28,15 37,10Q37,20 42,25 M-19,6Q-28,15 -37,10Q-37,20 -42,25'/%3E%3Ccircle cx='0' cy='0' r='18' class='g' stroke-width='1.5'/%3E%3Cpath d='M0,-14A14,14 0 0,0 0,14A10,10 0 0,1 0,-14Z' class='g' stroke-width='1'/%3E%3Cpath d='M-4,-4Q-2,-2 -3,0L-2,2Q-4,4 -6,4' class='g' stroke-width='0.7'/%3E%3Ccircle cx='-6' cy='-2' r='0.8' class='f'/%3E%3Cpath d='M6,-4Q4,-2 5,0L4,2Q6,4 8,4' class='g' stroke-width='0.7'/%3E%3Ccircle cx='4' cy='-2' r='0.8' class='f'/%3E%3C/g%3E%3Cpattern id='stars' x='0' y='0' width='100' height='160' patternUnits='userSpaceOnUse'%3E%3Cpath class='f' d='M15,15L16.5,19L20.5,19.5L16.5,20.5L15,24.5L13.5,20.5L9.5,19.5L13.5,19Z'/%3E%3Cpath class='f' d='M85,15L86.5,19L90.5,19.5L86.5,20.5L85,24.5L83.5,20.5L79.5,19.5L83.5,19Z'/%3E%3Cpath class='f' d='M15,135L16.5,139L20.5,139.5L16.5,140.5L15,144.5L13.5,140.5L9.5,139.5L13.5,139Z'/%3E%3Cpath class='f' d='M85,135L86.5,139L90.5,139.5L86.5,140.5L85,144.5L83.5,140.5L79.5,139.5L83.5,139Z'/%3E%3Ccircle cx='50' cy='12' r='1' class='f'/%3E%3Ccircle cx='50' cy='148' r='1' class='f'/%3E%3Ccircle cx='12' cy='80' r='1' class='f'/%3E%3Ccircle cx='88' cy='80' r='1' class='f'/%3E%3C/pattern%3E%3Crect x='0' y='0' width='100' height='160' fill='url(%23stars)'/%3E%3C/svg%3E");
}

/* Light Theme Texts */
html[data-theme="light"] .tarot-spread-title,
html[data-theme="light"] .tarot-spread-subtitle,
html[data-theme="light"] .tarot-placeholder__text,
html[data-theme="light"] .tarot-loader__text,
html[data-theme="light"] .tarot-card__label,
html[data-theme="light"] .tarot-card__name-btn {
    color: #2F4092;
}

/* Fix Card Background Overlays and Pink Glows */
html[data-theme="light"] .tarot-card__front {
    box-shadow: 0 8px 32px rgba(47, 64, 146, 0.1) !important;
}

html[data-theme="light"] .tarot-card:hover:not(.is-flipped) .tarot-card__inner {
    box-shadow: -8px 12px 32px rgba(47, 64, 146, 0.2) !important;
}

html[data-theme="light"] .tarot-card__info {
    background: linear-gradient(to top, var(--tarot-card-bg) 25%, rgba(240, 244, 251, 0.85) 60%, transparent);
}

html[data-theme="light"] .tarot-card__name-btn,
html[data-theme="light"] .tarot-card__reversed-badge {
    background: #e8eef9;
    border-color: rgba(47, 64, 146, 0.2);
    color: #2F4092;
}

html[data-theme="light"] .tarot-placeholder__ornament,
html[data-theme="light"] .tarot-loader__spinner {
    color: rgba(47, 64, 146, 0.6);
}

html[data-theme="light"] .tarot-spreads__hint {
    color: rgba(47, 64, 146, 0.6);
}

/* Light Theme Pill Buttons */
html[data-theme="light"] .tarot-spread-btn {
    background: #2F4092;
    color: #ffffff;
}

html[data-theme="light"] .tarot-spread-btn:hover {
    background: #233174;
}

html[data-theme="light"] .tarot-spread-btn.is-active,
html[data-theme="light"] .tarot-reshuffle-btn {
    background: var(--base-green-light, #7ea630);
    color: #ffffff;
}

/* Light Theme Modal Override */
html[data-theme="light"] .tarot-modal__window {
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(47, 64, 146, 0.2);
    border: none;
}

html[data-theme="light"] .tarot-modal__name,
html[data-theme="light"] .tarot-modal__section-title,
html[data-theme="light"] .tarot-modal__meaning,
html[data-theme="light"] .tarot-modal__desc {
    color: #2F4092;
}

html[data-theme="light"] .tarot-modal__meta {
    color: rgba(47, 64, 146, 0.6);
}

html[data-theme="light"] .tarot-modal__section-line {
    background: rgba(47, 64, 146, 0.15);
}

html[data-theme="light"] .tarot-modal__image-col {
    background: #f4f6fc;
    border-right: 1px solid rgba(47, 64, 146, 0.08);
}

html[data-theme="light"] .tarot-modal__close {
    background: #f4f6fc;
    color: #2F4092;
}

html[data-theme="light"] .tarot-modal__close:hover {
    background: #e8eef9;
}

html[data-theme="light"] .tarot-modal__close-btn {
    background: #2F4092;
    color: #ffffff;
    border: none;
}

html[data-theme="light"] .tarot-modal__close-btn:hover {
    background: #233174;
}
