/**
 * 游戏页左上角：打赏 + 茶杯回首页
 * 视觉对齐 /application/daily/quote（daily-common.css）
 * 仅在非 APP WebView 下强制可见；APP 内由 app_webview_lib 隐藏
 */

.game-reward-btn,
.reward-btn-game.game-reward-btn,
#rewardBtn.game-reward-btn,
#rewardBtnFixed.game-reward-btn {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%) !important;
    border-radius: 50% !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.6) !important;
    z-index: 10050 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    flex-shrink: 0 !important;
    animation: gameChromeHeartBeat 1.5s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-reward-btn:hover,
.reward-btn-game.game-reward-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.85) !important;
}

.game-reward-btn i,
.reward-btn-game.game-reward-btn i {
    font-size: 28px !important;
    color: #fff !important;
    line-height: 1 !important;
}

@keyframes gameChromeHeartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.08); }
    50% { transform: scale(1); }
    75% { transform: scale(1.04); }
}

.game-home-btn,
a.game-home-btn,
a.game-site-logo.game-home-btn {
    position: fixed !important;
    top: 20px !important;
    left: 100px !important;
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border-radius: 50% !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 10050 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-home-btn:hover,
a.game-home-btn:hover {
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.game-home-btn img,
a.game-home-btn img {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain !important;
    display: block !important;
}

.game-home-btn i,
a.game-home-btn i {
    font-size: 28px !important;
    color: #667eea !important;
}

/* 旧版「返回主页」文字链：与今日一句一致，网页版不再展示 */
.game-home-link {
    display: none !important;
}

/* 兼容旧包一层的 game-top-left：不再作为定位容器 */
.game-top-left {
    position: static !important;
    display: contents !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    pointer-events: none !important;
    z-index: auto !important;
}

.game-top-left > .game-reward-btn,
.game-top-left > .game-home-btn,
.game-top-left > .reward-btn-game,
.game-top-left > .game-site-logo {
    pointer-events: auto !important;
}

@media (max-width: 768px) {
    .game-reward-btn,
    .reward-btn-game.game-reward-btn,
    #rewardBtn.game-reward-btn,
    #rewardBtnFixed.game-reward-btn {
        top: 14px !important;
        left: 12px !important;
        width: 52px !important;
        height: 52px !important;
    }

    .game-reward-btn i,
    .reward-btn-game.game-reward-btn i {
        font-size: 24px !important;
    }

    .game-home-btn,
    a.game-home-btn,
    a.game-site-logo.game-home-btn {
        top: 14px !important;
        left: 76px !important;
        width: 52px !important;
        height: 52px !important;
    }

    .game-home-btn img,
    a.game-home-btn img {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    .game-reward-btn,
    .reward-btn-game.game-reward-btn,
    #rewardBtn.game-reward-btn,
    #rewardBtnFixed.game-reward-btn {
        top: 10px !important;
        left: 10px !important;
        width: 46px !important;
        height: 46px !important;
    }

    .game-reward-btn i,
    .reward-btn-game.game-reward-btn i {
        font-size: 22px !important;
    }

    .game-home-btn,
    a.game-home-btn,
    a.game-site-logo.game-home-btn {
        top: 10px !important;
        left: 66px !important;
        width: 46px !important;
        height: 46px !important;
    }

    .game-home-btn img,
    a.game-home-btn img {
        width: 34px !important;
        height: 34px !important;
    }
}
