/* back-to-top.css — 우측 하단 "맨 위로" 아이콘 (2026-04-30 사용자 지시)
   - 스크롤 다운 시 표시, 처음·맨위에서는 숨김
   - 데크(가로 스크롤) 페이지에서는 자동 비표시
*/
.btt {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1E40AF;        /* 코발트 블루 */
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 18px rgba(30, 64, 175, .28), 0 1px 3px rgba(0,0,0,.08);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
}
.btt.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.btt:hover {
  background: #1E3A8A;
}
.btt:active {
  transform: translateY(0) scale(0.96);
}
.btt:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .btt {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* 데크 모드(가로 스크롤)에서는 숨김 — 페이지 점·화살표가 그 역할 */
body.deck-mode .btt {
  display: none !important;
}

/* 모션 감소 환경 */
@media (prefers-reduced-motion: reduce) {
  .btt { transition: opacity .01s; transform: none; }
}
