/* ══════════════════════════════════════════════
   리셋 & 전역
══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  /* iOS 탄성 스크롤이 fixed 레이아웃에 영향 주는 것 방지 */
  overscroll-behavior: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(
      ellipse 80% 35% at 50% -10%,
      rgba(62, 207, 142, 0.07) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );
  background-size: 100% 100%, 24px 24px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 모바일 바텀 패딩 (bottom-nav 공간 확보) */
  padding-bottom: calc(var(--bottom-nav-h) + 24px); /* 탭60 + 경고줄(1줄)24 */
}

/* 데스크탑: 사이드바가 있으면 바텀패딩 불필요 */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

::selection {
  background: rgba(62, 207, 142, 0.2);
  color: var(--text);
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--border3); }
* { scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }


