/* 2026-11-10 Noto Sans KR 300·400·500·700 @font-face 는 `app/base.css` 한 곳(1년 캐시 주소 `?h=v13`)으로 — 여기 선언은 지웠다(같은 글꼴을 다른 주소로 또 받던 것). ⚠️ 시안 final/ 에서 다시 가져오면 다시 지울 것. */
/* 2026-11-10 앱 CSS 정리 — 화면 전체(`*`·`html`·`body`·`[hidden]`·버튼) 규칙은 `app/base.css`·`globals.css` 로 옮기거나 이 화면으로 범위를 좁혔다.
   (앱 이동은 앞 화면 CSS 를 지우지 않아 다른 화면에 걸렸다.) ⚠️ 시안 `final/` 에서 이 파일을 다시 가져오면 이 부분을 다시 정리할 것. */
:where(html.index-page) [hidden] {
  display: none !important;
}
/* `:where()` 로 범위만 좁히고 특정도는 예전(요소 선택자)과 같게 — 높이면 머리말 버튼 글자 크기 규칙을 이긴다 */
:where(html.index-page),
:where(html.index-page) body {
  margin: 0;
  min-width: var(--bp-mobile-min);
  min-height: 100%;
}
:where(html.index-page) body.has-mobile-menu {
  overflow: hidden;
}
:where(html.index-page) button,
:where(html.index-page) input {
  font: inherit;
}
.index-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  border-bottom: var(--stroke-1) solid var(--semantic-border);
  background: var(--semantic-white);
}
.index-header__inner {
  display: flex;
  width: 100%;
  max-width: 1344px;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  margin: 0 auto;
  padding: 0 var(--spacing-2xl);
  transition: min-height 200ms ease;
}
.index-header.is-scrolled .index-header__inner {
  min-height: 80px;
}
.index-header__side {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  align-items: center;
}
.index-header__side--right {
  justify-content: flex-end;
}
.index-header__links,
.index-header__guest {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}
.index-header__links a,
.index-header__guest a {
  color: var(--neutral-tx2-title);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-16);
  text-decoration: none;
  white-space: nowrap;
}
.index-header__links > span,
.index-header__guest > span {
  width: var(--stroke-1);
  height: 12px;
  background: #d9d9d9;
}
.index-header__logo {
  display: flex;
  width: 230px; /* 2026-10-30 Figma logo-center 230 (예전 240) */
  flex: 0 0 230px;
  align-items: center;
  justify-content: center;
}
.index-header__logo img {
  display: block;
  width: 230px;
}
.index-header__search {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.index-header__search img {
  width: 20px;
}
.index-header__menu-button {
  display: none;
}
.index-profile {
  position: relative;
  display: flex;
}
.index-profile::after {
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  height: var(--spacing-xs);
  content: '';
}
.index-profile__button {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 2px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
}
.index-profile__button img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.index-profile__dropdown {
  position: absolute;
  top: calc(100% + var(--spacing-xs));
  right: 0;
  display: flex;
  width: 220px;
  flex-direction: column;
  padding: 0 var(--spacing-2xs);
  overflow: hidden;
  border: var(--stroke-1) solid var(--semantic-border);
  border-radius: var(--radius-sm);
  background: var(--semantic-white);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
  visibility: hidden;
}
.index-profile:hover .index-profile__dropdown,
.index-profile:focus-within .index-profile__dropdown,
.index-profile.is-open .index-profile__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
.index-profile__info {
  border-bottom: var(--stroke-1) solid var(--semantic-border);
}
.index-profile__info a,
.index-profile__dropdown > a {
  display: flex;
  height: 40px;
  align-items: center;
  gap: var(--spacing-micro);
  margin: 0;
  padding: 0 var(--spacing-sm);
  color: var(--neutral-tx2-title);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-16);
  text-decoration: none;
}
.index-profile__info strong {
  font-weight: var(--font-weight-medium);
}
.index-profile__point span {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--semantic-black);
  color: var(--semantic-white);
  font-size: 9px;
  font-style: normal;
  line-height: 14px;
}
.index-profile__dropdown > a {
  border-bottom: var(--stroke-1) solid var(--semantic-border);
}
.index-profile__info a:hover,
.index-profile__info a:focus-visible,
.index-profile__dropdown > a:hover,
.index-profile__dropdown > a:focus-visible {
  background: var(--semantic-bg-fill);
  outline: none;
}
.index-mobile-menu-layer {
  display: none;
}
.index-main {
  min-height: calc(100vh - 120px);
}
@media (max-width: 767px) {
  .index-header__inner {
    min-height: 68px;
    gap: 14px;
    padding: var(--spacing-base) var(--spacing-lg);
  }
  .index-header.is-scrolled .index-header__inner {
    min-height: 68px;
  }
  .index-header__links,
  .index-profile__dropdown {
    display: none;
  }
  .index-header__logo {
    width: 205px;
    flex-basis: 205px;
  }
  .index-header__logo img {
    width: 205px;
  }
  .index-header__menu-button {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .index-header__menu-button img {
    display: block;
    width: 36px;
    height: 36px;
  }
  .index-mobile-menu-layer {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    visibility: hidden;
  }
  .index-mobile-menu-layer.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .index-mobile-menu-layer__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: var(--badge-alpha-b-20);
  }
  .index-mobile-menu {
    position: relative;
    z-index: 1;
    width: min(360px, calc(100vw - 30px));
    height: 100%;
    overflow-y: auto;
    border-right: var(--stroke-1) solid var(--semantic-border);
    background: var(--semantic-white);
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }
  .index-mobile-menu-layer.is-open .index-mobile-menu {
    transform: translateX(0);
  }
  .index-mobile-menu__top {
    display: flex;
    min-height: 100%;
    flex-direction: column;
  }
  .index-mobile-menu__ui {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: flex-end;
    padding: var(--spacing-3xs) 0;
  }
  .index-mobile-menu__close {
    position: relative;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    margin: 0;
    border: 0;
    background: transparent;
  }
  .index-mobile-menu__close::before,
  .index-mobile-menu__close::after {
    position: absolute;
    top: 17px;
    left: 6px;
    width: 24px;
    height: 1.5px;
    background: var(--neutral-tx2-title);
    content: '';
  }
  .index-mobile-menu__close::before {
    transform: rotate(45deg);
  }
  .index-mobile-menu__close::after {
    transform: rotate(-45deg);
  }
  .index-mobile-menu__member {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-base) 14px;
  }
  .index-mobile-menu__avatar {
    display: block;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    overflow: hidden;
    border-radius: var(--radius-full);
  }
  .index-mobile-menu__avatar img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: cover;
  }
  .index-mobile-menu__member p {
    width: 100%;
    margin: 0;
    padding: 0 var(--spacing-2xs);
    overflow: hidden;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-20);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .index-mobile-menu__member strong {
    font-weight: var(--font-weight-bold);
  }
  .index-mobile-menu__member small {
    padding: 0 var(--spacing-2xs);
    color: var(--neutral-tx3-sub);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-16);
  }
  .index-mobile-menu__summary,
  .index-mobile-menu__deposit {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-base);
    padding: var(--spacing-md) 14px;
    border-bottom: var(--stroke-1) solid var(--semantic-border);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-16);
  }
  .index-mobile-menu__point {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-micro);
  }
  .index-mobile-menu__point img {
    display: block;
    width: 16px;
  }
  .index-mobile-menu__summary > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-micro) var(--spacing-3xs);
    border: var(--stroke-1) solid var(--semantic-border);
    border-radius: var(--radius-xs);
    color: var(--neutral-tx3-sub);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-16);
    text-decoration: none;
  }
  .index-mobile-menu__member--logout {
    border-bottom: var(--stroke-1) solid var(--semantic-border);
  }
  .index-mobile-menu__avatar--logout {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--semantic-border);
  }
  .index-mobile-menu__avatar--logout img {
    width: 38px;
  }
  .index-mobile-menu__login-link {
    padding: 0 var(--spacing-2xs);
    color: var(--neutral-tx3-sub);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-16);
    text-underline-position: from-font;
  }
  .index-mobile-menu__deposit button {
    padding: var(--spacing-micro) var(--spacing-3xs);
    border: var(--stroke-1) solid var(--semantic-black);
    border-radius: var(--radius-xs);
    background: var(--semantic-black);
    color: var(--semantic-white);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-16);
  }
  .index-mobile-menu__search {
    display: flex;
    height: 42px;
    align-items: center;
    margin: var(--spacing-lg);
    padding: 4px 4px 5px 18px;
    border-bottom: 1.2px solid var(--neutral-tx1-hero);
  }
  .index-mobile-menu__search input {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    color: var(--neutral-tx2-title);
    font-size: var(--font-size-base);
    line-height: var(--line-height-20);
  }
  .index-mobile-menu__search input::placeholder {
    color: var(--neutral-tx4-dissolved);
    opacity: 1;
  }
  .index-mobile-menu__search button {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 0;
    background: transparent;
  }
  .index-mobile-menu__search img {
    width: 20px;
  }
  .index-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md) 14px;
  }
  .index-mobile-menu__nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-xs);
    color: var(--neutral-tx2-title);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-20);
    text-decoration: none;
  }
  .index-mobile-menu__nav--secondary {
    border-top: var(--stroke-1) solid var(--semantic-border);
  }
  .index-main {
    min-height: calc(100vh - 68px);
  }
}
@media (max-width: 389px) {
  .index-header__inner {
    padding-right: var(--spacing-base);
    padding-left: var(--spacing-base);
  }
  .index-header__logo {
    width: min(205px, calc(100vw - 136px));
    flex-basis: min(205px, calc(100vw - 136px));
  }
  .index-header__logo img {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .index-header__inner,
  .index-profile__dropdown,
  .index-mobile-menu-layer,
  .index-mobile-menu {
    transition: none;
  }
}

/* 2026-11-03 요청 — 모바일 로고 = 360 기준 85%(205 → 174px) · 360 보다 좁으면 화면 폭에 맞춰 같은 비율로 줄인다(«오픈이벤트» 와 안 겹치게) */
@media (max-width: 767px) {
  .index-header__logo {
    width: 174px;
    flex-basis: 174px;
  }
  .index-header__logo img {
    width: 100%;
  }
}
@media (max-width: 360px) {
  .index-header__logo {
    width: calc(100vw * 174 / 360);
    flex-basis: calc(100vw * 174 / 360);
  }
}
