/* ========================================
   朵朵初次見面 Onboarding
   全螢幕對話風格（與開光儀式完全一致）
   ======================================== */

/* 全螢幕容器 */
.duoduo-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.duoduo-fullscreen.active {
    opacity: 1;
    pointer-events: auto;
}

/* 遮罩 */
.duoduo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

/* 對話內容區 */
.duoduo-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 90vw;
}

/* 朵朵大圖 */
.duoduo-avatar {
    width: 280px;
    height: 280px;
    animation: duoduo-appear 0.5s ease-out;
}

@media (min-width: 768px) {
    .duoduo-avatar {
        width: 350px;
        height: 350px;
    }
}

@keyframes duoduo-appear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.duoduo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

/* 對話氣泡 - 用更特定的 selector 覆蓋 shrine-home.css */
.duoduo-fullscreen .duoduo-bubble {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: white;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: bubble-appear 0.4s ease-out 0.2s both;
    transition: opacity 0.3s ease;
}

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

/* 對話文字 */
.duoduo-fullscreen .duoduo-text {
    font-family: 'Yuji Syuku', serif;
    font-size: 1.3rem !important;
    color: #1c1917 !important;
    line-height: 1.6;
    min-height: 2.5rem;
}

@media (min-width: 768px) {
    .duoduo-fullscreen .duoduo-text {
        font-size: 1.5rem !important;
    }
}

/* 提示文字 */
.duoduo-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ========================================
   社務所引導提示
   ======================================== */

.shrine-office-guide {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.shrine-office-guide.active {
    opacity: 1;
    pointer-events: auto;
}

.shrine-office-guide .guide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.shrine-office-guide .guide-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.shrine-office-guide .guide-arrow {
    width: 80px;
    height: 80px;
    animation: paw-bounce 1s ease-in-out infinite;
}

.shrine-office-guide .guide-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes paw-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.shrine-office-guide .guide-bubble {
    background: #fffbeb;
    border: 3px solid #c9a86c;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.shrine-office-guide .guide-bubble p {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #5d4037;
    line-height: 1.6;
}

.shrine-office-guide .guide-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #c9a86c 0%, #a67c52 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.shrine-office-guide .guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 108, 0.4);
}

.shrine-office-guide .guide-skip {
    display: block;
    width: 100%;
    padding: 8px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.85rem;
    cursor: pointer;
}

.shrine-office-guide .guide-skip:hover {
    color: #6b7280;
}
