﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', sans-serif;
    background-color: #0a0521;
    color: #fff;
    line-height: 1.6;
}

/* ====== สไตล์หลักของพื้นหลัง ====== */
.gypsy-reading-bg {
    background-color: #0a0521;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48ZGVmcz48cGF0dGVybiBpZD0icGF0dGVybiIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiPjxwYXRoIGQ9Ik01MCwyNSBMNzUsNTAgTDUwLDc1IEwyNSw1MCBaIiBzdHJva2U9IiNmZmQ3MDAiIHN0cm9rZS13aWR0aD0iMC4zIiBvcGFjaXR5PSIwLjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybildIi8+PC9zdmc+');
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.6);
    padding: 50px 30px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

    /* เอฟเฟกต์การเรืองแสงด้านบน */
    .gypsy-reading-bg::before {
        content: "";
        position: absolute;
        top: -80px;
        left: 0;
        right: 0;
        height: 150px;
        background: radial-gradient(ellipse at top, rgba(138, 43, 226, 0.3) 0%, rgba(10, 5, 33, 0) 70%);
        pointer-events: none;
        z-index: 1;
    }

    /* เอฟเฟกต์หมอกลึกลับ */
    .gypsy-reading-bg::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 150px;
        background: linear-gradient(to top, rgba(10, 5, 33, 0.8) 0%, rgba(10, 5, 33, 0) 100%);
        pointer-events: none;
        z-index: 1;
    }

/* ====== คอนเทนเนอร์หลัก ====== */
.gypsy-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ====== หัวข้อหลัก ====== */
.gypsy-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.gypsy-main-title {
    font-family: 'Chakra Petch', 'Sarabun', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 10px;
    background-image: linear-gradient(135deg, #df73ff 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.gypsy-subtitle {
    font-family: 'Sarabun', sans-serif;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* ลวดลายสำหรับหัวข้อแบบไทย */
.gypsy-decoration {
    position: relative;
    padding: 20px 0;
}

    .gypsy-decoration::before,
    .gypsy-decoration::after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        z-index: 1;
    }

    .gypsy-decoration::before {
        top: -10px;
        width: 120px;
        height: 30px;
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAgMzAiPjxwYXRoIGQ9Ik0xMCwyMCBRNjAsMCAxMTAsMjAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzhhMmJlMiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+');
        opacity: 0.7;
    }

    .gypsy-decoration::after {
        bottom: -10px;
        width: 200px;
        height: 20px;
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAiPjxwYXRoIGQ9Ik0wLDEwIFEyNSw1IDUwLDEwIFE3NSw1IDEwMCwxMCBRMTI1LDUgMTUwLDEwIFExNzUsNSAyMDAsMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzhhMmJlMiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz48L3N2Zz4=');
        opacity: 0.7;
    }

/* ====== ดาวระยิบระยับและเอฟเฟกต์ ====== */
.gypsy-starlight {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: #9370db;
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
    animation: gypsy-twinkle 5s infinite;
}

@keyframes gypsy-twinkle {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
    }
}

/* ====== ลายน้ำ ====== */
.gypsy-watermark {
    position: absolute;
    width: 400px;
    height: 400px;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48Y2lyY2xlIGN4PSIyMDAiIGN5PSIyMDAiIHI9IjE4MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOGEyYmUyIiBzdHJva2Utd2lkdGg9IjEiLz48Y2lyY2xlIGN4PSIyMDAiIGN5PSIyMDAiIHI9IjE1MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOGEyYmUyIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNMjAwLDUwIEwyMDAsMzUwIE01MCwyMDAgTDM1MCwyMDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzhhMmJlMiIgc3Ryb2tlLXdpZHRoPSIwLjUiLz48cGF0aCBkPSJNMTAwLDEwMCBMMzAwLDMwMCBNMzAwLDEwMCBMMTAwLDMwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOGEyYmUyIiBzdHJva2Utd2lkdGg9IjAuNSIvPjwvc3ZnPg==');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
}

.gypsy-watermark-1 {
    top: 5%;
    right: 5%;
    transform: rotate(15deg);
}

.gypsy-watermark-2 {
    bottom: 5%;
    left: 5%;
    transform: rotate(-15deg);
}

/* ====== เลือกเดือน ====== */
.gypsy-month-select {
    background-color: rgba(30, 15, 60, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(138, 43, 226, 0.1);
}

.gypsy-section-title {
    font-family: 'Chakra Petch', 'Sarabun', sans-serif;
    color: #df73ff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .gypsy-section-title i {
        color: #8a2be2;
    }

.month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.month-item {
    background: linear-gradient(135deg, rgba(70, 40, 120, 0.4) 0%, rgba(50, 25, 80, 0.4) 100%);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .month-item:hover {
        background: linear-gradient(135deg, rgba(90, 50, 150, 0.5) 0%, rgba(70, 35, 110, 0.5) 100%);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-color: rgba(138, 43, 226, 0.7);
    }

    .month-item.active {
        background: linear-gradient(135deg, rgba(138, 43, 226, 0.5) 0%, rgba(100, 30, 180, 0.5) 100%);
        border-color: rgba(138, 43, 226, 1);
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    }

/* ====== ปุ่ม ====== */
.gypsy-btn {
    background: linear-gradient(135deg, #9370db 0%, #8a2be2 100%);
    border: none;
    color: #fff;
    font-weight: bold;
    padding: 12px 35px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
    font-family: 'Sarabun', sans-serif;
    letter-spacing: 0.5px;
    margin: 10px 10px 10px 0;
}

    .gypsy-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
        transition: all 0.4s ease;
        z-index: 1;
    }

    .gypsy-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(138, 43, 226, 0.6);
    }

        .gypsy-btn:hover::before {
            left: 100%;
        }

.gypsy-btn-secondary {
    background: transparent;
    border: 1px solid rgba(138, 43, 226, 0.7);
    color: #df73ff;
}

    .gypsy-btn-secondary:hover {
        background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(100, 30, 180, 0.2) 100%);
        border-color: rgba(138, 43, 226, 1);
    }

.gypsy-btn-icon {
    margin-right: 8px;
}

.gypsy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

    .gypsy-btn:disabled:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
    }

.gypsy-btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* ====== ไพ่ยิปซี ====== */
.gypsy-cards-section {
    background-color: rgba(30, 15, 60, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(138, 43, 226, 0.1);
}

.gypsy-card-deck {
    background: linear-gradient(135deg, rgba(50, 25, 100, 0.6) 0%, rgba(40, 20, 80, 0.6) 100%);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

    .gypsy-card-deck::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNMCwwIEgxMDAgVjEwMCBIMCBaIiBmaWxsPSJub25lIiBzdHJva2U9IiM4YTJiZTIiIHN0cm9rZS13aWR0aD0iMC41IiBzdHJva2UtZGFzaGFycmF5PSI1LDUiLz48L3N2Zz4=');
        background-size: 20px 20px;
        opacity: 0.1;
        border-radius: 7px;
        z-index: 0;
        pointer-events: none;
    }

.deck-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.deck-info-item {
    padding: 0 15px;
    position: relative;
}

    .deck-info-item:not(:last-child)::after {
        content: '•';
        position: absolute;
        right: -3px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(138, 43, 226, 0.5);
    }

.deck-card-count {
    font-weight: bold;
    color: #df73ff;
}

/* ====== การ์ดสำหรับเลือก ====== */
.gypsy-spread-area {
    margin-top: 30px;
}

.gypsy-spread-title {
    text-align: center;
    margin-bottom: 5px;
    color: #df73ff;
    font-size: 1.2rem;
}

.gypsy-spread {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

.gypsy-card {
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #2c1259 0%, #1b0b38 100%);
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

    .gypsy-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        border-color: rgba(138, 43, 226, 0.8);
    }

.gypsy-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.gypsy-card-front, .gypsy-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gypsy-card-front {
    background: linear-gradient(135deg, #4a2587 0%, #2c1259 100%);
    border: 1px solid rgba(138, 43, 226, 0.5);
}

.gypsy-card-back {
    background: linear-gradient(135deg, #6a359c 0%, #4a2587 100%);
    transform: rotateY(180deg);
    border: 1px solid rgba(138, 43, 226, 0.8);
}

.gypsy-card-back-inner {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.gypsy-card-name {
    font-family: 'Chakra Petch', 'Sarabun', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
}

.gypsy-card-image {
    width: 80%;
    aspect-ratio: 1/1;
    margin: 10px 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gypsy-card-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    height: 60px;
    overflow-y: auto;
    padding: 0 5px;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 43, 226, 0.5) rgba(30, 15, 60, 0.3);
}

    .gypsy-card-description::-webkit-scrollbar {
        width: 5px;
    }

    .gypsy-card-description::-webkit-scrollbar-track {
        background: rgba(30, 15, 60, 0.3);
        border-radius: 10px;
    }

    .gypsy-card-description::-webkit-scrollbar-thumb {
        background-color: rgba(138, 43, 226, 0.5);
        border-radius: 10px;
    }

.card-back-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MCA1MCI+PHBhdGggZD0iTTI1LDAgTDUwLDI1IEwyNSw1MCBMMCwyNSBaIiBmaWxsPSJub25lIiBzdHJva2U9IiM4YTJiZTIiIHN0cm9rZS13aWR0aD0iMC41IiBvcGFjaXR5PSIwLjIiLz48Y2lyY2xlIGN4PSIyNSIgY3k9IjI1IiByPSIxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOGEyYmUyIiBzdHJva2Utd2lkdGg9IjAuNSIgb3BhY2l0eT0iMC4yIi8+PC9zdmc+');
    background-size: 20px 20px;
    opacity: 0.1;
    border-radius: 12px;
    z-index: 0;
    pointer-events: none;
}

.card-back-symbol {
    position: relative;
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

    .card-back-symbol::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSI0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZGY3M2ZmIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIzMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZGY3M2ZmIiBzdHJva2Utd2lkdGg9IjIiLz48cGF0aCBkPSJNNTAsMTAgTDUwLDkwIE0xMCw1MCBMOTAsNTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2RmNzNmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PHBhdGggZD0iTTI1LDI1IEw3NSw3NSBNMTI1LDQwIDU3NSwtNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2RmNzNmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.5;
    }

/* ====== ไพ่ที่เลือก ====== */
.selected-cards-area {
    margin-top: 50px;
}

.selected-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.selected-card-slot {
    aspect-ratio: 2/3;
    background: rgba(30, 15, 60, 0.4);
    border: 1px dashed rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    position: relative;
}

    .selected-card-slot::before {
        content: '';
        position: absolute;
        width: 40px;
        height: 40px;
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZD0iTTIwLDAgTDIwLDQwIE0wLDIwIEw0MCwyMCIgc3Ryb2tlPSIjOGEyYmUyIiBzdHJva2Utd2lkdGg9IjEiIG9wYWNpdHk9IjAuMyIvPjwvc3ZnPg==');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.3;
    }

.selected-card-slot-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0a0521;
    padding: 2px 15px;
    font-size: 0.9rem;
    color: #df73ff;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(138, 43, 226, 0), rgba(138, 43, 226, 0.5), rgba(138, 43, 226, 0));
    margin: 40px 0;
    position: relative;
}

    .section-divider::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background-color: #8a2be2;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
    }

/* ====== ส่วนท้าย ====== */
.gypsy-footer {
    margin-top: 60px;
    text-align: center;
    position: relative;
    padding-bottom: 30px;
}

.gypsy-footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* สำหรับการพิมพ์ */
@media print {
    .gypsy-reading-bg {
        background-image: none;
        background-color: white;
        box-shadow: none;
        padding: 20px;
    }

    .gypsy-main-title, .gypsy-section-title {
        color: #000;
        -webkit-text-fill-color: #000;
    }

    .gypsy-btn, .gypsy-starlight, .gypsy-watermark {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gypsy-main-title {
        font-size: 2rem;
    }

    .gypsy-month-select, .gypsy-cards-section {
        padding: 20px 15px;
    }

    .month-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .gypsy-spread {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .selected-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .gypsy-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
.month-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #999 !important;
    text-decoration: line-through;
}
/* ====== สไตล์สำหรับไพ่ที่ถูกเลือก ====== */
.selected-card-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(80, 40, 150, 0.4) 0%, rgba(60, 30, 120, 0.4) 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 8px rgba(138, 43, 226, 0.4);
    padding: 10px;
    transition: all 0.3s ease;
}

    .selected-card-preview:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(138, 43, 226, 0.6);
    }

    .selected-card-preview img {
        width: 60px;
        height: 90px;
        object-fit: contain;
        border-radius: 5px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
        margin-bottom: 8px;
        background-color: white;
    }

.selected-card-info {
    width: 100%;
    text-align: center;
}

.selected-card-name {
    font-family: 'Chakra Petch', 'Sarabun', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: #df73ff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-card-meaning {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    max-height: 60px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 43, 226, 0.5) rgba(30, 15, 60, 0.3);
    padding-right: 5px;
}

    .selected-card-meaning::-webkit-scrollbar {
        width: 4px;
    }

    .selected-card-meaning::-webkit-scrollbar-track {
        background: rgba(30, 15, 60, 0.3);
        border-radius: 10px;
    }

    .selected-card-meaning::-webkit-scrollbar-thumb {
        background-color: rgba(138, 43, 226, 0.5);
        border-radius: 10px;
    }

/* ปรับปรุงช่องไพ่ที่เลือก */
.selected-card-slot {
    position: relative;
    background: rgba(30, 15, 60, 0.4);
    border: 1px dashed rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    min-height: 200px;
    transition: all 0.3s ease;
}

    .selected-card-slot:hover {
        background: rgba(50, 25, 100, 0.4);
        border-color: rgba(138, 43, 226, 0.6);
    }

/* แก้ไขสำหรับไพ่ที่คว่ำ */
.card-reversed {
    transform: rotate(180deg);
}
/* ส่วนแสดงผลการทำนาย */
.detailed-reading {
    font-family: 'Sarabun', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.reading-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.reading-date {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 5px;
}

.reading-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reading-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

    .reading-section:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(138, 43, 226, 0.3);
    }

.reading-category {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffc107;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.reading-card-info {
    display: flex;
    gap: 15px;
}

.reading-card-image {
    flex: 0 0 80px;
}

    .reading-card-image img {
        width: 100%;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

.reading-details {
    flex: 1;
}

.reading-card-name {
    font-weight: bold;
    margin-bottom: 8px;
    color: #e91e63;
}

.reading-card-meaning {
    font-size: 0.9em;
    line-height: 1.5;
}

.reading-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

@media (max-width: 600px) {
    .reading-sections {
        grid-template-columns: 1fr;
    }

    .selected-cards-container {
        grid-template-columns: 1fr;
    }
}
.gypsy-btn-primary {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 5px rgba(138, 43, 226, 0.4);
    transition: all 0.3s ease;
}

    .gypsy-btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(138, 43, 226, 0.6);
    }

.show-reading-btn-container {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}