@charset "utf-8";
/* CSS Document */
:root {
            --card-width: 120px;
            --card-height: 220px;
            --spread-base-size: 800px; /* 基準寬度 (桌機使用) */
        }

        /* ------------------------------------- */
        /* 2. 牌陣區域樣式 (桌機預設) */
        /* ------------------------------------- */

        #spread-area {
            position: relative;
            width: var(--spread-base-size); 
            height: 650px; 
            margin: 40px auto;
            transition: all 0.5s ease;
        }

        .card-slot {
            position: absolute;
            width: var(--card-width);
            height: var(--card-height);
            border: 2px dashed #95a5a6;
            background-color: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            cursor: default;
        }
        .card-slot:hover {
            border-color: #f1c40f;
            box-shadow: 0 0 10px #f1c40f;
        }
        .card-slot img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
            display: none;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        }
        .card-pos-label {
            position: absolute;
            top: -25px;
            color: #CCC;
            font-weight: bold;
            font-size: 1rem;
        }

        /* ------------------------------------- */
        /* 3. 定義十字占卜卡片位置 (固定像素 - 桌機) */
        /* ------------------------------------- */

        .slot-1 { top: 200px; left: 250px; }
        .slot-2 { top: 200px; left: 250px; transform: rotate(90deg); }
        .slot-3 { top: 380px; left: 250px; }
        .slot-4 { top: 20px; left: 250px; }
        .slot-5 { top: 200px; left: 80px; }
        .slot-6 { top: 200px; left: 420px; }
        .slot-7 { top: 460px; left: 600px; }
        .slot-8 { top: 310px; left: 600px; }
        .slot-9 { top: 160px; left: 600px; }
        .slot-10 { top: 10px; left: 600px; }

        /* ------------------------------------- */
        /* 4. 占卜結果區 (Result Area) 樣式 - 桌機 */
        /* ------------------------------------- */
        #reading-result {
            margin-top: 3em;
            border-top: 2px solid #D9B380;
            padding-top: 20px;
            text-align: left;
        }

        .card-result-item {
            display: flex; /* 圖片和文字並排 */
            margin-bottom: 25px;
            padding: 15px;
            border-left: 5px solid #C96;
            background: rgba(0, 0, 0, 0.2);
			backdrop-filter:blur(5px) ;
            border-radius: 5px;
            gap: 15px;
            align-items: flex-start;
        }

        .result-card-img {
            width: 80px;
            height: auto;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            flex-shrink: 0;
            transition: transform 0.3s;
        }
        
        .result-text-content {
            flex-grow: 1; 
        }

        .card-result-item strong {
            color:#E9CD8B;
            font-size: 1.1rem;
            display: block;
            margin-bottom: 5px;
        }
        
        .card-result-item p {
            margin: 0;
            font-size: 0.95rem;
            color: #bdc3c7;
        }
        .card-result-item .google-link {
			color:#C96;
			font-size:0.8em;
		}


        /* ------------------------------------- */
        /* 5. RWD 響應式調整 (手機/小螢幕) */
        /* ------------------------------------- */
        @media (max-width: 650px) {
            /* 牌陣 RWD 縮放 */
            :root {
                --card-width: 15vw; 
                --card-height: 27.5vw; 
                --spread-base-size: 85vw;
            }
            #spread-area {
                width: var(--spread-base-size);
                height: 65vw;
                margin: 20px auto; 
            }
            
            /* 卡片定位百分比 (維持十字形狀) */
            .slot-1 { top: 30%; left: 30%; } 
            .slot-2 { top: 30%; left: 30%; transform: rotate(90deg); }
            .slot-3 { top: 58%; left: 30%; } 
            .slot-4 { top: 5%; left: 30%; } 
            .slot-5 { top: 30%; left: 5%; } 
            .slot-6 { top: 30%; left: 55%; } 
            .slot-7 { top: 60%; left: 75%; } 
            .slot-8 { top: 40%; left: 75%; } 
            .slot-9 { top: 20%; left: 75%; } 
            .slot-10 { top: 0%; left: 75%; } 
            
            .card-pos-label {
                font-size: 0.75rem; 
                top: -18px;
            }

            /* 修正解讀區佈局 */
            .container {
                padding: 10px;
            }

            .card-result-item {
                flex-direction: column; 
                align-items: center; 
                padding: 15px 10px;
                border-left: none;
                border-top: 5px solid #f1c40f;
                width: 95%;
                margin: 0 auto 20px auto;
            }

            .result-card-img {
                width: 100px;
                margin-bottom: 10px;
            }

            .result-text-content {
                width: 100%;
                text-align: left;
            }

            .card-result-item strong {
                 text-align: center;
                 margin-bottom: 10px;
                 border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
                 padding-bottom: 5px;
            }
            
            .card-result-item p {
                text-align: left;
            }
            
            /* 確認 .google-link 在手機上不會被隱藏或擠壓 */
            .google-link {
                display: inline; /* 確保它是內聯顯示 */
                margin-left: 8px; /* 稍微縮小間距 */
            }
			
        }
        
        
        /* ------------------------------------- */
        /* 6. 互動元素樣式 */
        /* ------------------------------------- */
        #draw-button {
            background:linear-gradient(90deg,rgba(0,0,0,.8), rgba(102,51,51,1));
            color: white;
            border: none;
            padding: 15px 40px;
            border-radius: 30px;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s, transform 0.1s;
            margin-top: 20px;
        }
        #draw-button:hover { background: linear-gradient(270deg,rgba(0,0,0,.8), rgba(102,51,51,1)); transform: scale(1.05); }
        #draw-button:disabled { background: #95a5a6; cursor: not-allowed; transform: none; }