/* Tarot Reader Styles */
.tarot-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* --- Animation cơ bản --- */
@keyframes flyXY {
    0% {
        transform: translateX(0%);
    }

    50% {
        transform: translateX(80%);
    }

    100% {
        transform: translateX(0%);
    }
}

@keyframes flyZ {
    0% {
        transform: rotate(0deg) translateY(0);
        opacity: 1;
    }

    12.5% {
        opacity: 0.6;
    }

    25% {
        transform: rotate(180deg) translateY(1rem);
        opacity: 0.8;
    }

    37.5% {
        opacity: 0.4;
    }

    50% {
        transform: rotate(360deg) translateY(0);
        opacity: 1;
    }

    62.5% {
        opacity: 0.2;
    }

    75% {
        transform: rotate(180deg) translateY(-1rem);
        opacity: 0.8;
    }

    87.5% {
        opacity: 0.4;
    }

    100% {
        transform: rotate(360deg) translateY(0);
        opacity: 1;
    }
}

@keyframes rotate360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Các class tiện ích (dùng trong JS) --- */
.fade-out {
    opacity: 0;
    transform: scale(0.8);
}

.move-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 1.4s linear, box-shadow 1.4s linear;
}

.z30 {
    position: relative;
    z-index: 30;
}

/* --- Layout chính --- */
.tarot-wrap {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Hiệu ứng nền (Texture & Blur) */
.texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.texture::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAeKADAAQAAAABAAAAeAAAAAAI4l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HUESXYLiNnigiI9ErgRZWg5uNsO3XYILNNjQh0m5/ymzp47h7kS8nyp4wa47g1sdWyU1zm/kb+xh6n4H2dWU90SdFDuc0UBhl0+yE0AFLe+kvMFV9BmBdw5iuDmHp8bvRhR3+8d8bMs4KjmJFm/FLeQED8TjP5jeamrLy0/nnuDmM6VjWoQ16YZCTza2b6yPr7sHxttGPSTEXD+ZjaLK4pWHzi4UVJU5Z5cB7h0VnytdTejS6HjS8+fam8M/2U8yhRcqW0yXw+rO9yTm6FLuOWrrGx7KRfZjNk4JVXcj46LPqmMZ1LpgTtzfEhPnyd8KeKLgCH45fW5cdvYYqJqYOpl0ok9cF6Nazt5UPMSi7vYf2/EL8jKhWXd7v+d2DxRqBvNYIKGj1Vpg+/b/ni/r6lm9ajR42rqTim57wVypEmoz5Et4fqaZJXHkKeMqZceXTswLHpL2nzWC9uX4zR9PWEKaz9qow6OMkfBN/02p2PzZz1uhMYs5fLrnqr/qcpRh144bYyTwynnvyZLYPtzP+BZ6Rq81GF4RCKY2h3AD04kF0EuL/qUbK2WQyVSEoZpmnz8GVzx4vvCyuOSvmcVzHzGjzazrg5y14FfbyNyBn01iBzNMlzpcblbJA6NaZmC3WSce945SPsrnR6W2KU0WUvMJsQ2Vk+/hG2ZCTr6fBLiB/pvXeYQVvyl2Fp2i+kLkwXpbT9O3YFUqcykuuvdtZXQSr9IkcClyN9abDDj8Atu8GDAZd5ZKL+q2ldGCX0yTfWiHsMU/Wmr9eFbD93vUz/5YcyNnsJa7Tlwwiwl3qU6nquZeGNpbD9ySs/+JWtfL4Wy4FE6O3LH6xx0sZtQIInr7y/IrEIDi2rvPiH97tWEG7NChEnx6ryxNLtIkXanzQ2tqJK2NnP/wEiCqFGGHaMewAAAABJRU5ErkJggg==) repeat scroll rgba(0, 0, 0, 0);
    background-size: 4rem;
    background-position: top center;
    transform: translateZ(0);
}

.texture .blur {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.texture .blur::before {
    content: "";
    display: block;
    width: 220%;
    padding: 160% 0;
    border-radius: 50%;
    flex-shrink: 0;
    background-image: radial-gradient(circle at 50% 50%, #111111 0%, #0f0f0f 25%);
}

/* --- Phần chọn chủ đề (Topic) --- */
.tarot-topic {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

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

.tarot-topic .title h1 {
    font-size: 36px;
    margin-bottom: 0;

    letter-spacing: 0.5px;
    color: #c0854c;
}

.tarot-topic .title h3 {
    font-size: 28px;

    letter-spacing: 0.5px;
    color: #c0854c;
    border: 1px solid #c0854c;
    padding: 6px 20px;
    border-radius: 2rem;
    margin: 20px auto;
    transition: transform 1.2s cubic-bezier(0.4, 0.1, 0, 1), opacity 1.2s cubic-bezier(0.4, 0.1, 0, 1);
}

.tarot-topic .topic-wrap {
    display: flex;
    gap: 30px;
    position: relative;
    transition: transform 1.2s cubic-bezier(0.4, 0.1, 0, 1), opacity 1.2s cubic-bezier(0.4, 0.1, 0, 1);
    max-width: 1000px;
    margin: 0 auto;
}

.tarot-topic .topic-wrap.-hidden,
.tarot-topic .title h3.-hidden {
    opacity: 0;
    transform: scale(0.8) translate(0, -2rem);
    height: 0;
}

.tarot-topic .topic {
    margin-bottom: 20px;
    background-color: transparent;
    border-radius: 0.65rem;
    cursor: pointer;
    transition: transform 1s ease-out, box-shadow 1.3s ease-out;
}

.tarot-topic .glare {
    background: radial-gradient(circle at 52.2104% 65.9605%, rgba(199, 198, 243, 0.3), transparent);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    border-radius: 0.65rem;
}

.tarot-topic .topic:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tarot-topic .move-center:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tarot-topic .topic:hover .glare {
    opacity: 0.6;
}

.tarot-topic .topic-wrap img {
    border-radius: 0.65rem;
    max-width: 200px;
}

/* --- Phần câu hỏi (Ask Page) --- */
.question-wrap {
    position: relative;
    border-radius: 1.6rem 0.6rem;
    background: rgba(18, 11, 28, 0.4);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #c0854c;
    padding: 1rem;
}

.tooltip-question {
    display: block;
    position: absolute;
    z-index: 20;
    bottom: 110%;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 0.25rem 0.5rem;
    background: #c0854c;
    border-radius: 0.25rem;
    pointer-events: none;
    color: #e6f3e8;
    text-align: center;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0.1, 0, 1), opacity 0.6s cubic-bezier(0.4, 0.1, 0, 1);
}

.tooltip-question.-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.question-wrap i {
    font-size: 2rem;
    color: var(--color-primary);
}

.question-wrap input {
    position: relative;
    background-color: transparent !important;
    text-align: center;
    color: #fff !important;
    width: 100%;
    font-size: 1.8rem !important;
    box-sizing: border-box;
    border: none !important;
    margin-bottom: 0 !important;
}

.question-wrap input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* --- Button Send & Button Outline --- */
#btnsend {
    background: no-repeat;
    border: none;
    position: relative;
    display: block;
    margin: 0 auto;
    margin-top: 2rem;
    min-width: 200px;
    transform: translateZ(0);
    transition: transform 1.2s cubic-bezier(0.4, 0.1, 0, 1), opacity 1.2s cubic-bezier(0.4, 0.1, 0, 1);
}

#btnsend.-hidden {
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8) translate(0, -2rem);
}

.button-outline {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    box-sizing: content-box;
    width: auto;
}

.button-outline::before {
    content: "";
    display: block;
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    padding: 2px;
    border-radius: 0.5rem;
    opacity: 0.4;
    transform: translateZ(0) scale(1, 1);
    transition: transform 0.3s cubic-bezier(0.4, 0.1, 0, 1), opacity 0.3s cubic-bezier(0.4, 0.1, 0, 1);
}

.button-outline label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 1;
    animation-name: flyXY;
    animation-duration: 9s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
}

.button-outline label::before {
    content: "";
    display: block;
    position: absolute;
    top: -0.5rem;
    width: 0.125rem;
    height: 0.125rem;
    border-radius: 50%;
    background-color: #c0854c;
    box-shadow: 0 0 0.5rem 0.25rem #c0854c;
    transform-origin: 1rem 1rem;
    transform: rotate(0deg) translateY(0);
    opacity: 1;
    animation-name: flyZ;
    animation-duration: 16s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
}

.button-outline div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10rem;
    transform: translateZ(0) scale(1);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0.1, 0, 1);
}

.button-outline div::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10rem;
    border: 1px solid #e6f3e8;
}

.button-outline div span {
    display: block;
    position: absolute;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0.1, 0, 1);
}

.button-outline div span:first-child {
    width: 100%;
    height: 1px;
    background-image: linear-gradient(to right, rgba(230, 243, 232, 0) 0%, #e6f3e8 50%, rgba(230, 243, 232, 0) 100%);
}

.button-outline div span:last-child {
    width: 1px;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(230, 243, 232, 0) 0%, #e6f3e8 50%, rgba(230, 243, 232, 0) 100%);
}

.button-outline span {
    display: block;
    text-transform: uppercase;
    color: #fff;
}

.button-outline .basic {
    pointer-events: none;
    opacity: 1;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0.1, 0, 1), opacity 0.3s cubic-bezier(0.4, 0.1, 0, 1);
}

.button-outline .hover {
    pointer-events: none;
    opacity: 0;
    position: absolute;
    text-align: center;
    left: 50%;
    top: 50%;
    width: 100%;
    transform: translate(-50%, 30%) scale(1, 0.8);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@media only screen and (min-width: 1024px) {
    .button-outline:hover::before {
        opacity: 0;
        transform: scale(0.95, 0.8);
    }

    .button-outline:hover div {
        transform: scale(1.05);
    }

    .button-outline:hover div span {
        opacity: 0.4;
    }

    .button-outline:hover .basic {
        opacity: 0;
        transform: translate(0, -20%) scale(0.9);
    }

    .button-outline:hover .hover {
        opacity: 1;
        transform: translate(-50%, -50%) translateZ(0) scale(1, 1);
    }
}

/* --- Khu vực Card & Counter --- */
.tarot-page .tarot-card-area {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

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

.tarot-page .counter-wrap {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 20px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* position: absolute;
    left: 0;
    right: 0;
    top: 0; */
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

@media only screen and (min-width: 1024px) {
    .tarot-page .counter-wrap {
        margin-top: 1rem;
    }
}

.tarot-page .counter-wrap #dialog-counter {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: translateZ(0);
    transition: transform 1.2s cubic-bezier(0.4, 0.1, 0, 1), opacity 1.2s cubic-bezier(0.4, 0.1, 0, 1);
    transition-delay: 0.9s;
}

.tarot-page .counter-wrap #dialog-counter .note {
    position: absolute;
    top: -3rem;
    white-space: nowrap;
    color: #c0854c;
    opacity: 1;
    transition: transform 1.5s cubic-bezier(0.3, 0, 0.14, 1), opacity 1.2s cubic-bezier(0.4, 0.1, 0, 1);
    font-size: 1rem;
    text-align: center;
}

.tarot-page .counter-wrap #dialog-counter .title {
    margin-bottom: 0.35rem;
    opacity: 1;
    transition: transform 1.5s cubic-bezier(0.3, 0, 0.14, 1), opacity 1.2s cubic-bezier(0.4, 0.1, 0, 1);
    color: #fff;
    width: max-content;

    font-size: 3rem;
}

.tarot-page .counter-wrap #dialog-counter .title.title-left {
    right: 100%;
    margin-right: 1rem;
}

.tarot-page .counter-wrap #dialog-counter .title.title-right {
    left: 100%;
    margin-left: 1rem;
}

.tarot-page .counter-wrap #dialog-counter .how-many {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.tarot-page .counter-wrap #dialog-counter .how-many .dots {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation-name: rotate360;
    animation-duration: 24s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.tarot-page .counter-wrap #dialog-counter .how-many .dots::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #c0854c;
    border-radius: 50%;
}

.tarot-page .counter-wrap #dialog-counter .how-many label {
    width: 0.2rem;
    height: 0.2rem;
    border-radius: 50%;
    background-color: #c0854c;
    position: absolute;
}

.tarot-page .counter-wrap #dialog-counter .how-many label:nth-child(1) {
    top: -0.5rem;
}

.tarot-page .counter-wrap #dialog-counter .how-many label:nth-child(2) {
    right: -0.5rem;
}

.tarot-page .counter-wrap #dialog-counter .how-many label:nth-child(3) {
    bottom: -0.5rem;
}

.tarot-page .counter-wrap #dialog-counter .how-many label:nth-child(4) {
    left: -0.5rem;
}

.tarot-page .counter-wrap #dialog-counter .how-many span {
    flex-shrink: 0;
    display: block;
    position: absolute;
    text-shadow: 0px 0px 1rem #e6f3e8;
    margin-bottom: 0;
    opacity: 0;
    transform: scale(1.5);
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 1.2s cubic-bezier(0.4, 0.1, 0, 1);
    color: #fff;
    font-size: 3rem;
}

.tarot-page .counter-wrap #dialog-counter .how-many span.-active {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}

/* Các trạng thái ẩn hiện của counter */
.tarot-page .counter-wrap #dialog-counter.-hidden .note {
    opacity: 0;
    transform: translate(0, -2rem);
}

.tarot-page .counter-wrap #dialog-counter.-hidden .title {
    opacity: 0;
    transform: translate(0, -4rem) scale(0.8);
}

.tarot-page .counter-wrap #dialog-counter.-ended {
    opacity: 0;
    transform: scale(0.5);
}

/* --- Font Styles --- */
.-h6 {
    font-size: 1.35rem;
    line-height: 1;

}

.-h4 {
    font-size: 2.4rem;
    line-height: 0.95;
}

.-h3 {
    font-size: 3.15rem;
    line-height: 0.95;

}

/* --- Nút xem kết quả --- */
.tarot-view-button.-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) translate(0, -2rem);
}

.tarot-view-button {
    transition: transform 1.2s cubic-bezier(0.4, 0.1, 0, 1), opacity 1.2s cubic-bezier(0.4, 0.1, 0, 1);
}

.submit-tracuu {
    display: flex;
    justify-content: center;
    align-items: center;
}

a.submit-tracuu {
    background: #c0854c none repeat scroll 0 0;
    border: 1px solid #c0854c;
    border-radius: 5px;
    box-shadow: 0 0 1px 2px rgb(249 162 92 / 35%);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    line-height: 40px;
    padding: 0 15px;
    text-shadow: none;
    text-transform: uppercase;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 40;
    margin: 0 auto 20px auto;
}

a.submit-tracuu strong {
    margin-left: 10px;
}

/* --- Responsive --- */

@media (max-width: 767.98px) {
    .tarot-topic .topic-wrap {
        gap: 10px;
    }
    .tarot-topic .topic-wrap img {
        max-width: 100px;
    }
}

@media (min-width: 991.98px) {
    .question-wrap {
        min-width: 800px;
        width: auto;
    }
}


/* --- KHUNG BAO CHUNG --- */
.selected-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tarot-card-area.-hidden {
    height: 0;
}

/* Container chính cho khu vực trải bài */
.card-spread-container {
    perspective: 2000px;
    overflow: visible !important;
    width: 100%;
    transition: transform 0.8s ease-in-out;
}

/* Vùng chứa các lá bài (Cỗ bài) */
.card-deck {
    position: static;
    width: 100%;
    height: 100%;
    transform: translateX(0px);
    /* Sẽ thay đổi khi kéo */
    min-height: 400px;
}

/* Hiệu ứng ẩn bộ đếm mượt mà */
.counter-wrap.slide-up-hide {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transform: translateY(-20px);
}

/* --- CẤU HÌNH LÁ BÀI --- */
.tarot-card {
    --spread: 35px;
    /* Độ xòe ngang desktop */
    --arc-rotate: 2.5deg;
    /* Góc xoay */
    --arc-translate-y: 1.5px;
    /* Độ cong */

    width: 130px;
    height: 213px;
    position: absolute;
    left: 50%;
    top: 50%;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;

    /* Trạng thái ban đầu */
    opacity: 0;
    -webkit-user-drag: none;
    user-select: none;
}

.tarot-card .card-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- TRẠNG THÁI CARD DECK --- */
/* 1. Đã xòe bài */
.card-deck.is-shuffled .tarot-card {
    opacity: 1;
    transition: transform calc(3s * (1 + 0.05 * (var(--n) / 2 - var(--n)))) cubic-bezier(0.32, 0, 0.133, 1.02);
    transform: translate(-50%, -50%) translateX(calc((var(--n) - 11.5) * var(--spread))) translateY(calc(abs(var(--n) - 11.5) * var(--arc-translate-y))) rotate(calc((var(--n) - 11.5) * var(--arc-rotate)));
}

.card-deck.is-shuffled {
    cursor: grab;
}

.card-deck.is-shuffled.is-dragging {
    cursor: grabbing;
}

/* 2. Hover vào lá bài */
.card-deck.is-shuffled .tarot-card:hover {
    transform: translate(-50%, -50%) translateX(calc((var(--n) - 11.5) * var(--spread))) translateY(calc(abs(var(--n) - 11.5) * var(--arc-translate-y) - 20px)) rotate(calc((var(--n) - 11.5) * var(--arc-rotate))) scale(1.03);
    transition: all 0.1s ease-out;
    transition-delay: 0s;
}

/* 3. Lá bài đã chọn (trong bộ bài) */
.card-deck.is-shuffled .tarot-card.selected {
    transform: translate(-50%, -50%) translateX(calc((var(--n) - 11.5) * var(--spread))) translateY(calc(abs(var(--n) - 11.5) * var(--arc-translate-y) - 25px)) rotate(calc((var(--n) - 11.5) * var(--arc-rotate))) scale(1.05);
    filter: brightness(1.15);
    transition: all 0.3s ease-out;
    transition-delay: 0s;
}

/* 4. Lá bài không chọn bay đi */
.tarot-card.fly-out {
    opacity: 0;
    z-index: 0;
    transform: translate(-50%, -50%) translateX(60vw) !important;
    transition-delay: calc(var(--n) * 0.04s);
}

/* --- CHI TIẾT LÁ BÀI & LẬT --- */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.tarot-card .card {
    width: 100%;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    background-color: transparent;
}

/* Tên lá bài */
.card-name {
    white-space: nowrap;
    position: absolute;
    top: 96%;
    opacity: 0;
    transform: translate(0, 4rem) rotate(-180deg);
    pointer-events: none;
    text-shadow: 0px 0px 1rem #e6f3e8;
    color: #fff;
}

/* Mặt sau */
.card-back {
    position: relative;
    width: 100%;
    border-radius: 0.35rem;
    overflow: hidden;
    transform: translateZ(1px);
}

.card-back img,
.card-front img {
    display: block;
    width: 100%;
}

.card-back .glare {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    background: radial-gradient(circle at 5% 10%, rgba(243, 229, 201, 0.25), transparent);
}

.card-back:hover .glare,
.selected .card-back .glare {
    opacity: 1;
}

/* Mặt trước */
.card-front {
    position: absolute;
    top: 0.5%;
    left: 0.5%;
    width: 99%;
    height: 99%;
    background-color: #f5f5f5;
    border-radius: 0.35rem;
    overflow: hidden;
    padding: 4.68% 4.68%;
    box-sizing: border-box;
    transform: rotateY(180deg) translateZ(0px);
}

/* --- TRẠNG THÁI KẾT QUẢ (FINAL STATE) --- */
.tarot-card.final-state {
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000 !important;
    opacity: 1 !important;
    top: 50% !important;
    /* Đưa về giữa vùng hiển thị */
}

/* Vị trí 3 lá bài khi bay vào */
.tarot-card.final-pos-1 {
    /* Trái */
    transform: translate(-50%, -50%) translateX(-140px) rotate(-10deg) scale(1.1) !important;
}

.tarot-card.final-pos-2 {
    /* Giữa */
    transform: translate(-50%, -50%) translateX(0px) translateY(-30px) scale(1.1) !important;
    z-index: 1001 !important;
}

.tarot-card.final-pos-3 {
    /* Phải */
    transform: translate(-50%, -50%) translateX(140px) rotate(10deg) scale(1.1) !important;
}

/* --- TRẠNG THÁI LẬT BÀI (REVEALED) --- */
.tarot-card.final-state.revealed {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 130px !important;
    height: 213px !important;
}

/* Vị trí và phóng to sau khi lật */
.tarot-card.final-pos-1.revealed {
    transform: translate(-50%, -50%) translateX(-170px) rotate(-10deg) scale(1.35) !important;
}

.tarot-card.final-pos-2.revealed {
    transform: translate(-50%, -50%) translateX(0px) translateY(-30px) scale(1.35) !important;
    z-index: 2000 !important;
}

.tarot-card.final-pos-3.revealed {
    transform: translate(-50%, -50%) translateX(170px) rotate(10deg) scale(1.35) !important;
}

/* Xử lý xoay mặt bài */
.tarot-card.revealed .card {
    transform: rotateY(180deg);
    transition: transform 0.8s ease-in-out;
}

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

/* Xử lý bài ngược */
.tarot-card.revealed .card.-reversed {
    transform: rotateY(180deg) rotateZ(180deg) !important;
}

/* Hiển thị tên bài */
.tarot-card.revealed .card-name {
    opacity: 1 !important;
    top: -50px !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
    width: 200px;
    text-align: center;

    z-index: 2000;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .tarot-card {
        width: 90px;
        height: 150px;
        --spread: 20px;
        --arc-rotate: 3deg;
    }

    .card-spread-container {
        height: 250px;
        min-height: 400px !important;
    }

    /* Chỉnh lại vị trí bài kết quả mobile */
    .tarot-card.final-state.revealed {
        width: 90px !important;
        height: 150px !important;
    }

    .tarot-card.revealed .card-name {
        top: -45px !important;
        font-size: 13px !important;
        width: 150px;
    }

    /* Vị trí trước khi lật */
    .tarot-card.final-pos-1 {
        transform: translate(-50%, -50%) translateX(-90px) rotate(-8deg) scale(1) !important;
    }

    .tarot-card.final-pos-2 {
        transform: translate(-50%, -50%) translateX(0px) translateY(-20px) scale(1) !important;
    }

    .tarot-card.final-pos-3 {
        transform: translate(-50%, -50%) translateX(90px) rotate(8deg) scale(1) !important;
    }

    /* Vị trí sau khi lật (phóng to ít hơn) */
    .tarot-card.final-pos-1.revealed {
        transform: translate(-50%, -50%) translateX(-100px) rotate(-8deg) scale(1.15) !important;
    }

    .tarot-card.final-pos-2.revealed {
        transform: translate(-50%, -50%) translateX(0px) translateY(-20px) scale(1.15) !important;
    }

    .tarot-card.final-pos-3.revealed {
        transform: translate(-50%, -50%) translateX(100px) rotate(8deg) scale(1.15) !important;
    }
}

@media (max-width: 420px) {
    .tarot-card {
        --arc-rotate: 3.5deg;
    }
}


.tarot-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    justify-items: center;
    margin: 30px 0;
}

.tarot-card-single-header {
    display: flex;
    gap: 40px;
    margin: 40px 0 60px;
}

.tarot-card-meta-image {
    min-width: 350px;
}

.tarot-card-meta-image img {
    width: 100%;
    border-radius: 20px;
}

.tarot-card-image img {
    border-radius: 10px;
}

.tarot-card-single-box h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.tarot-card-meanings {
    max-width: 850px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .tarot-cards-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .tarot-cards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        justify-items: center;
    }
}