/* ============================================
 * 웹/모바일 브라우저용 오버라이드
 * (원본 styles.css 는 phone frame 고정높이 가정)
 * ============================================ */

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--paper-0);
}

body {
  font-family: var(--font-sans);
  color: var(--fg-primary);
  -webkit-text-size-adjust: 100%;
}

/* .screen 을 일반 웹페이지용으로 */
.screen {
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: visible;
  max-width: 480px;     /* 모바일 폭 제한 (PC 에서 가운데 정렬) */
  margin: 0 auto;
}

/* 페이지 자체 스크롤 사용 */
.screen-scroll {
  flex: none;
  overflow: visible;
  height: auto;
}

/* PC 에서 양옆 어두운 배경 */
@media (min-width: 481px) {
  body { background: #0a0a0c; }
  .screen {
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }
}

/* 폼 input reset */
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* 가로 스크롤 영역 (지역/필터 칩) - 스크롤바 숨김 */
.scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge legacy */
  white-space: nowrap;
}
.scroll-x::-webkit-scrollbar {
  display: none;                 /* Chrome / Safari / Opera */
  width: 0;
  height: 0;
}

/* 링크 */
a { color: inherit; text-decoration: none; }

/* 사이드 메뉴 (햄버거 클릭 시) */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 24, 19, 0.55);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.side-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.side-menu {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 78%;
  max-width: 340px;
  background: var(--paper-0);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.22s ease-out;
  z-index: 91;
  overflow-y: auto;
}
.side-menu.open { transform: translateX(0); }

.side-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.side-menu-item {
  text-align: left;
  padding: 14px 4px;
  border: none;
  background: transparent;
  font-size: 17px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-900);
  border-bottom: 1px solid var(--border-subtle);
  display: block;
  width: 100%;
}
.side-menu-item.active {
  color: var(--accent-deep);
  font-weight: 600;
}
