/* 定義浮動動畫 */
@keyframes ydFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

#ydPwaBtn {
    position: fixed;
    right: 14px;
    top: auto !important;
    bottom: 40% !important; /* 螢幕偏下方 */
    
    /* 方形垂直排列設定 */
    width: 42px;
    height: 42px;
    flex-direction: column; /* 垂直排列 */
    border-radius: 15px;    /* 圓角方形 */
    padding: 2px;
    gap: 4px;

    /* 外觀 */
    background: #333333;
    color: #ffffff;
    border: none;
    
    /* 排版 */
    display: none;
    align-items: center;
    justify-content: center;
    
    /* 字體 */
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1;
    
    cursor: pointer;
    z-index: 99999;
    border: 1px solid #e6cd8c;    
    animation: ydFloat 3s ease-in-out infinite;
}

#ydPwaBtn svg {
    width: 22px;
    height: 22px;
    stroke: #e6cd8c;
    margin-bottom: 2px;
}

#ydPwaBtn span {
    display: block;
}

#ydPwaBtn:active {
    transform: scale(0.95);
    animation: none;
}