        :root {
            --warm-bg: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); 
            --wheel-border: #ffffff;
            --pointer-color: #ff4757;
            --btn-color: #ffa502;
            --btn-hover: #ff7f50;
            --jiaobei-red: linear-gradient(to bottom, #ffdddd 0%, #e53935 35%, #b71c1c 70%, #7f0000 100%);
            --result-red: #ff4757; /* 統一紅色字體變數 */
        }

        body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: linear-gradient(to bottom, #1a1a1a 0%, #4a1414 100%);
            font-family: "Microsoft JhengHei", "Noto Serif TC", serif;
            color: #fff;
            overflow-x: hidden;
            padding-bottom: 50px;
        }

        h1 {
            color: #ffd700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
            font-size: 2rem;
            margin-top: 30px;
        }
        h3 {
            color: #ffd700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
            font-size: 1rem;
            margin-top: 10px;
        }

        /* --- 擲筊區樣式 --- */
        #jiaobei-section {
            text-align: center;
            width: 100%;
            max-width: 600px;
            padding: 20px;
        }

        .cups {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 40px 0;
        }

        .cup {
            width: 120px;
            height: 60px;
            border-radius: 60px 60px 20px 20px;
            position: relative;
            background: var(--jiaobei-red);
            box-shadow: inset 0 6px 10px rgba(255,255,255,0.35), inset 0 -6px 12px rgba(0,0,0,0.35), 0 12px 18px rgba(0,0,0,0.5);
            transition: transform 0.6s ease;
        }

        .cup.back { transform: rotate(180deg); }

        .rolling { animation: shakeFlip 0.7s infinite ease-in-out; }

        @keyframes shakeFlip {
            0%   { transform: translateY(0) rotate(0deg); }
            20%  { transform: translateY(-30px) rotate(120deg); }
            40%  { transform: translateY(0) rotate(240deg); }
            60%  { transform: translateY(-20px) rotate(360deg); }
            80%  { transform: translateY(0) rotate(520deg); }
            100% { transform: translateY(0) rotate(720deg); }
        }

        .action-btn {
            font-size: 1.2rem;
            padding: 12px 40px;
            border: none;
            border-radius: 30px;
            background: gold;
            color: #333;
            cursor: pointer;
            font-weight: bold;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: 0.3s;
        }

        .action-btn:hover { transform: scale(1.05); background: #ffeb3b; }
        .action-btn:disabled { opacity: 0.6; cursor: not-allowed; }

        #jiaobei-result {
            margin-top: 20px;
            font-size: 1.5rem;
            color: #ffeb3b;
            min-height: 1.6em;
        }

        /* --- 抽籤區樣式 (預設隱藏) --- */
        #hexagram-section {
            display: none;
            flex-direction: column;
            align-items: center;
            width: 100%;
            margin-top: 50px;
            padding-top: 50px;
            border-top: 2px dashed rgba(255,215,0,0.3);
        }

        .wheel-wrapper {
            position: relative;
            width: 90vw;
            max-width: 400px;
            aspect-ratio: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 30px 0;
        }

        .pointer {
            position: absolute;
            top: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 25px;
            height: 35px;
            background: var(--pointer-color);
            clip-path: polygon(100% 0, 50% 100%, 0 0);
            z-index: 20;
        }

        .wheel-border {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 8px solid #fff;
            overflow: hidden;
            background: #fff;
            position: relative;
        }

        .wheel {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            position: relative;
        }

        .segment-text {
            position: absolute;
            top: 0; left: 50%;
            width: 2px; height: 50%;
            transform-origin: 50% 100%;
            display: flex; justify-content: center; align-items: flex-start;
            font-size: 9px; font-weight: bold; color: #333;
        }

        .segment-text span {
            background: rgba(255, 255, 255, 0.9);
            padding: 2px 4px; border-radius: 5px;
            transform: rotate(90deg); margin-top: 5px;
        }

        .center-circle {
            position: absolute;
            width: 200px; height: 200px;
            background: #fff; border-radius: 50%;
            z-index: 10; display: flex; justify-content: center; align-items: center;
            padding: 10px; color: #333;
        }

        /* 彈窗樣式修改 - 改為紅色字體 */
        .modal {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.8); display: none;
            justify-content: center; align-items: center; z-index: 100;
        }
        .modal-box {
            background: white; padding: 30px; border-radius: 20px;
            text-align: center; color: #333; max-width: 85%;
        }
        #resultTitle { color: var(--result-red); } /* 標題紅色 */
        .result-highlight { color: var(--result-red); font-weight: bold; } /* 數字與卦名紅色 */
        .modal-explain { background: #f0f0f0; padding: 15px; border-radius: 10px; margin-top: 15px; text-align: left; }

        .countdown {
            margin-top: 15px; 
            color: #FFD700; 
            font-weight: bold;
            background: rgba(0, 0, 0, 0.3);
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }
        .hidden { display: none !important; }
        
        /* 已求得靈籤資訊 */
        #draw-info {
            margin-top: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            border: 1px solid rgba(255, 215, 0, 0.3);
            max-width: 500px;
            text-align: center;
        }
        
        #draw-info h3 {
            margin-top: 0;
            margin-bottom: 10px;
        }
        
        #draw-details {
            font-size: 0.9rem;
            color: #ffeb3b;
            line-height: 1.5;
        }

