/* ============================================
   Anniversary Btn Top — 맨 위로 버튼 (공통 컴포넌트)
   모든 서브페이지에서 공유. btn-top.twig 전용.
   ============================================ */

.anniversary-btn-top {
	position: fixed;
	bottom: 40px;
	right: 40px;
	z-index: 44;
	width: 60px;
	height: 60px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.anniversary-btn-top.is-visible {
	opacity: 1;
	visibility: visible;
}

@media (hover: hover) {
	.anniversary-btn-top:hover {
		background: rgba(0, 0, 0, 0.6);
		border-color: rgba(255, 255, 255, 0.5);
	}
}

/* ── SVG 프로그레스 링 — border 위에 정확히 오버레이 ── */
.anniversary-btn-top__progress {
	position: absolute;
	inset: -1px;
	width: calc(100% + 2px);
	height: calc(100% + 2px);
	transform: rotate(-90deg);
	pointer-events: none;
}

.anniversary-btn-top__progress-bar {
	transition: stroke-dashoffset 0.05s linear;
}

/* ── 아이콘 ── */
.anniversary-btn-top__icon {
	position: relative;
	z-index: 1;
}

/* ============================================
   Tablet: 768–1023px
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
	.anniversary-btn-top {
		right: 20px;
		bottom: 20px;
		width: 40px;
		height: 40px;
	}

	/* 40px border-box: content 36 + 4 = 40px SVG
	   viewBox 60 → 40px (scale 0.667) → stroke-width 2 / 0.667 = 3 */
	.anniversary-btn-top__progress-bar {
		stroke-width: 3;
	}
}

/* ============================================
   Mobile: ≤767px
   ============================================ */
@media (max-width: 767px) {
	.anniversary-btn-top {
		right: 20px;
		bottom: 20px;
		width: 40px;
		height: 40px;
	}

	.anniversary-btn-top__progress-bar {
		stroke-width: 3;
	}

	.anniversary-btn-top:active {
		opacity: 1;
		background: rgba(0, 0, 0, 0.6);
		border-color: rgba(255, 255, 255, 0.5);
	}
}
