/* =====================================================================
   Scroll to Top — 원형 진행률 버튼 (틸 테마)
   ===================================================================== */

#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    transform: translateY(-3px);
}

.scroll-top-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-accent, #16a085);
    box-shadow: 0 4px 16px rgba(22, 160, 133, 0.45);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#scrollTopBtn:hover .scroll-top-bg {
    background: var(--color-accent-hover, #0e7a65);
    box-shadow: 0 6px 22px rgba(22, 160, 133, 0.6);
}

.scroll-progress-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.scroll-progress-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 3;
}

.scroll-progress-fill {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 113.1;
    stroke-dashoffset: 113.1;
    transition: stroke-dashoffset 0.12s linear;
}

.scroll-top-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    pointer-events: none;
    user-select: none;
}

.scroll-top-arrow {
    width: 14px;
    height: 14px;
    color: #ffffff;
    display: block;
}

#scrollTopBtn:hover .scroll-top-arrow {
    animation: hstyle-arrow-bounce 0.45s ease forwards;
}

@keyframes hstyle-arrow-bounce {
    0%   { transform: translateY(0); }
    35%  { transform: translateY(-4px); }
    65%  { transform: translateY(-1px); }
    100% { transform: translateY(-2px); }
}

.scroll-top-pct {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    letter-spacing: -0.3px;
    font-family: var(--font-primary);
}
