/* ========================================
   Q北舉牌提示（練習頁偷看答案）
   從卷軸右側邊緣探出
   ======================================== */

.qbei-hint-container {
    position: absolute;
    right: -60px;
    bottom: 25%;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.qbei-hint-container.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Q北圖片 */
.qbei-hint-avatar {
    width: 250px;
    height: auto;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

/* 答案牌子 */
.qbei-hint-board {
    position: absolute;
    top: 10px;
    left: -70px;
    background: #fffef0;
    border: 3px solid #8b4513;
    border-radius: 10px;
    padding: 12px 24px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    transform: rotate(-5deg);
    animation: board-wiggle 0.5s ease-in-out;
}

.qbei-hint-answer {
    font-family: 'Yuji Syuku', serif;
    font-size: 3rem;
    font-weight: bold;
    color: #c41e3a;
    text-align: center;
    min-width: 60px;
}

/* 對話泡泡 */
.qbei-hint-bubble {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    font-size: 1rem;
    color: #333;
    animation: bubble-appear 0.3s ease-out 0.2s both;
}

.qbei-hint-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 40px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

/* 動畫 */
@keyframes board-wiggle {
    0%, 100% { transform: rotate(-5deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(-2deg); }
}

@keyframes bubble-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   朵朵顯示御守啟用
   ======================================== */

.duoduo-hint-container {
    position: absolute;
    right: -60px;
    bottom: 25%;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.duoduo-hint-container.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.duoduo-hint-avatar {
    width: 200px;
    height: auto;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

.duoduo-hint-bubble {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    font-size: 1rem;
    color: #333;
    animation: bubble-appear 0.3s ease-out 0.2s both;
}

.duoduo-hint-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 40px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

/* 響應式 */
@media (max-width: 768px) {
    .qbei-hint-container {
        right: -70px;
        bottom: 20%;
    }
    
    .qbei-hint-avatar {
        width: 100px;
    }
    
    .qbei-hint-board {
        left: -50px;
        padding: 10px 18px;
    }
    
    .qbei-hint-answer {
        font-size: 2.2rem;
        min-width: 45px;
    }
    
    .qbei-hint-bubble {
        font-size: 0.85rem;
        padding: 10px 14px;
        top: -45px;
    }
}
