:root {
  --canvas: #0F1216;
  --surface: #171B21;
  --raised: #1E242C;
  --ink: #E9EDF2;
  --ink-strong: #FFFFFF;
  --mute: #98A4B3;
  --mute-dim: #6B7684;
  --border: #2A313A;
  --border-strong: #3A434F;
  --accent: #DDA150;
  --accent-soft: #2C2418;
  --accent-ink: #1A1206;
  --danger: #E3766B;
  --success: #6BBF8A;

  --ring: 0 0 0 3px rgba(221, 161, 80, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fast: 120ms var(--ease);
  --slow: 240ms var(--ease);

  --font: 'Pretendard Variable', system-ui, -apple-system, sans-serif;
  --wrap: 62rem;
  --hdr-h: 122px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

p,
ul {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

:where(button, a, input, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

.ico {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 60;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--fast);
}

.skip:focus {
  top: 12px;
}

/* ─────────── 헤더 ─────────── */

.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 18, 22, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.hdr__in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 11px 16px 9px;
}

.hdr__row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.hdr__title {
  flex: 1;
  min-width: 0;
  font-size: clamp(1.0625rem, 3.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: .4em;
  flex-wrap: wrap;
}

/* 공지 버튼 */
.bell {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--mute);
  cursor: pointer;
  transition: border-color var(--fast), color var(--fast);
}

.bell:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.bell.has-new {
  color: var(--accent);
  border-color: var(--accent);
}

.bell__n {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--canvas);
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 공지 탭 */
.nseg {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 14px;
}

.nseg__b {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--mute);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--fast), background var(--fast);
}

.nseg__b:hover {
  color: var(--ink);
}

.nseg__b.is-on {
  background: var(--accent-soft);
  color: var(--accent);
}

.nseg__b b {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--mute-dim);
  font-size: .6875rem;
  font-variant-numeric: tabular-nums;
}

.nseg__b.is-on b {
  color: var(--accent);
}

/* 공지 시트 */
.nh {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.01em;
  padding-right: 40px;
  margin-bottom: 4px;
}

.nsub {
  color: var(--mute-dim);
  font-size: .8125rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.nrow {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.nrow:last-of-type {
  border-bottom: 0;
}

.nrow__i {
  width: 1rem;
  height: 1rem;
  color: var(--mute-dim);
}

.nrow--warn .nrow__i,
.nrow--warn .nrow__from {
  color: var(--accent);
}


.nrow__from {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--mute);
  font-size: .75rem;
  font-weight: 600;
}

.nrow__from i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.nrow__t {
  font-size: .9375rem;
  line-height: 1.65;
  white-space: pre-line;   /* 편집기에서 넣은 줄바꿈 살리기 */
}

.nrow__at {
  color: var(--mute-dim);
  font-size: .75rem;
  font-weight: 500;
  margin-top: 3px;
}

.nrow__go {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 5px;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
}

.hdr__sep {
  color: var(--accent);
  font-weight: 500;
}

.hdr__sub {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search__ico {
  position: absolute;
  left: 13px;
  color: var(--mute-dim);
  pointer-events: none;
}

.search__spin {
  position: absolute;
  left: 14px;
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}

.is-loading .search__ico {
  visibility: hidden;
}

.is-loading .search__spin {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.search__in {
  width: 100%;
  min-height: 44px;
  padding: 0 42px;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  transition: border-color var(--fast), box-shadow var(--fast);
}

.search__in::placeholder {
  color: var(--mute-dim);
  font-weight: 400;
}

.search__in::-webkit-search-cancel-button {
  display: none;
}

.search__in:hover {
  border-color: #4A5460;
}

.search__in:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.search__in:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.search__clear {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--mute);
  cursor: pointer;
}

.search__clear:hover {
  color: var(--ink);
  background: var(--surface);
}

/* 최근 검색 */
.recent {
  display: flex; gap: 6px; align-items: center;
  margin-top: 8px; overflow-x: auto; scrollbar-width: none;
}
.recent::-webkit-scrollbar { display: none; }
.recent__l { flex: none; color: var(--mute-dim); font-size: .75rem; font-weight: 600; }
.recent__x {
  flex: none; background: none; border: 0; padding: 4px 6px;
  color: var(--mute-dim); font-size: .75rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.recent__x:hover { color: var(--mute); }

/* 칩 */
.chips {
  display: flex;
  gap: 7px;
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips:empty {
  display: none;
}

.chip__div {
  flex: none;
  width: 1px;
  height: 20px;
  background: var(--border);
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  min-height: 34px;
  padding: 4px 13px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--mute);
  font-size: .8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--fast), color var(--fast), background var(--fast);
}

.chip::after {
  content: '';
  position: absolute;
  inset: -5px 0;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.chip.is-on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.chip[aria-disabled='true'] {
  opacity: .4;
  pointer-events: none;
}

.chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex: none;
}

.chip__star {
  width: .875rem;
  height: .875rem;
}

.chip.is-on .chip__star {
  fill: currentColor;
}

.chip__n {
  color: var(--mute-dim);
  font-variant-numeric: tabular-nums;
}

.chip.is-on .chip__n {
  color: var(--accent);
  opacity: .75;
}

.chip--skel {
  width: 84px;
  height: 34px;
  background: var(--raised);
  border-color: transparent;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: .45;
  }
}

/* ─────────── 레이아웃 ─────────── */

.main {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 16px 40px;
  display: grid;
  gap: 12px;
}

.listcol {
  min-width: 0;
}

/* 모바일: 지도가 위에 붙어 따라온다 */
.mapcol {
  position: sticky;
  top: var(--hdr-h);
  z-index: 20;
  background: var(--canvas);
  padding: 10px 0 8px;
  margin: 0 -16px;
  padding-inline: 16px;
}

/* 넓거나 가로로 눕히면 지도를 옆으로 — 세로 공간을 잡아먹지 않게 */
@media (min-width: 900px),
(orientation: landscape) and (min-width: 700px) {
  :root {
    --wrap: 76rem;
  }

  .main {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem);
    gap: 20px;
    align-items: start;
    padding-top: 14px;
  }

  .listcol {
    order: 1;
  }

  .mapcol {
    order: 2;
    top: calc(var(--hdr-h) + 14px);
    margin: 0;
    padding: 0;
  }

  .map__stage {
    height: auto;
    aspect-ratio: 1.5;
    max-height: 58dvh;
  }
}

/* 가로로 누운 휴대폰: 헤더·지도 모두 낮게 */
@media (orientation: landscape) and (max-height: 520px) {
  .hdr__title {
    margin-bottom: 7px;
  }

  .map__stage {
    aspect-ratio: auto;
    height: 40dvh;
    min-height: 150px;
  }

  .sheet {
    max-height: 94dvh;
  }

  .sheet__body {
    max-height: calc(94dvh - 22px);
  }
}

/* ─────────── 지도 패널 ─────────── */

.mp {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.mp__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 4px;
  min-height: 44px;
}

.mp__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--mute);
  font-size: .8125rem;
  font-weight: 600;
}

.mp__toggle:hover {
  color: var(--ink);
}

.mp__chev {
  transition: transform var(--fast);
}

.mp.is-closed .mp__chev {
  transform: rotate(-90deg);
}

.mp__box {
  position: relative;
  border-top: 1px solid var(--border);
}

.map__stage {
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background: var(--surface);
  height: 34dvh;
  min-height: 190px;
}

.map__stage:active {
  cursor: grabbing;
}

.map__stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

.slot {
  cursor: pointer;
}

.slot rect {
  stroke: var(--canvas);
  stroke-width: 2;
  transition: opacity var(--fast);
}

.slot text {
  pointer-events: none;
  user-select: none;
  font-family: var(--font);
}

.slot:hover rect {
  stroke: var(--ink);
}

.slot:focus-visible {
  outline: none;
}

.slot:focus-visible rect,
.slot.is-on rect {
  stroke: var(--accent);
  stroke-width: 4;
}

.slot.is-off {
  opacity: .16;
  pointer-events: none;
}

.map__dir {
  fill: var(--mute-dim);
  font-family: var(--font);
  font-weight: 700;
}

.map__ctl {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}

.mbtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(23, 27, 33, .92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--fast);
}

.mbtn:hover {
  border-color: var(--accent);
}

.mbtn::after {
  content: '';
  position: absolute;
  inset: -3px;
}

/* 터치 영역 44px */
.mbtn {
  position: relative;
}

/* ─────────── 목록 ─────────── */

.count {
  color: var(--mute);
  font-size: .8125rem;
  font-weight: 500;
  margin-bottom: 11px;
  min-height: 1.4em;
}

.count b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--mute);
  border-radius: 12px;
}

.notice--warn {
  border-left-color: var(--accent);
}

button.notice {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  align-items: center;
}

button.notice:hover {
  border-color: var(--border-strong);
}

.notice--more .notice__t {
  color: var(--accent);
  font-weight: 600;
}

.notice__ico {
  color: var(--mute);
  margin-top: 3px;
}

.notice--warn .notice__ico {
  color: var(--accent);
}

.notice__t {
  font-size: .875rem;
  line-height: 1.65;
  white-space: pre-line;   /* 편집기에서 넣은 줄바꿈 살리기 */
}

.notice__at {
  display: block;
  margin-top: 2px;
  color: var(--mute-dim);
  font-size: .75rem;
  font-weight: 500;
}

.shared { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.shared .btn { flex: none; }

.stale {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(221, 161, 80, .3);
  border-radius: 12px;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 500;
}

.grp {
  margin-bottom: 24px;
}

.grp__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.grp__dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}

.grp__pin {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.grp__name {
  font-size: .9375rem;
  font-weight: 600;
}

.grp__n {
  color: var(--mute-dim);
  font-size: .8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 9px;
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  }
}

/* 카드 */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--fast);
}

.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--stripe, var(--border-strong));
  z-index: 1;
}

.card:hover {
  border-color: var(--border-strong);
}

.card__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 13px 15px 13px 17px;
  background: none;
  border: 0;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform var(--fast);
}

.card__main:active {
  transform: scale(.99);
}

.card__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.45;
}

.card__sub {
  color: var(--mute);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.5;
}

.card__pad {
  padding-right: 30px;
}

/* 별 아래로는 메뉴가 폭 전체를 쓴다 */

/* 스크롤 연동 강조 — 지도에 표시된 부스만 도드라지게 */
#list.has-focus .card {
  opacity: .38;
  transition: opacity var(--fast);
}

#list.has-focus .card.is-focus {
  opacity: 1;
  border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  #list.has-focus .card {
    transition: none;
  }
}

.card__tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--raised);
  color: var(--mute);
  font-size: .75rem;
  font-weight: 600;
}

.tag .ico {
  width: .75rem;
  height: .75rem;
}

.tag--live {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag--fav {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag--fav .ico {
  fill: currentColor;
}

/* 카드 안 메뉴 요약 */
.mini {
  margin-top: 9px;
  border-top: 1px solid var(--border);
  padding-top: 7px;
}

.mini__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px 0;
}

.mini__n {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini__p {
  flex: none;
  color: var(--ink-strong);
  font-size: .875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mini__p.is-none {
  color: var(--mute-dim);
  font-weight: 500;
  font-size: .8125rem;
}

.mini__more {
  margin-top: 3px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
}

.mini__empty {
  margin-top: 9px;
  border-top: 1px solid var(--border);
  padding-top: 9px;
  color: var(--mute-dim);
  font-size: .8125rem;
  font-weight: 500;
}

/* 북마크 버튼 */
.fav {
  position: absolute;
  top: 9px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  border-radius: 9px;
  color: var(--mute-dim);
  cursor: pointer;
  transition: color var(--fast), background var(--fast), transform var(--fast);
}

/* 히트 영역 확장은 카드 우상단 별에만 — 메뉴 줄의 작은 별에 주면 옆 버튼을 덮는다 */
.card > .fav::after {
  content: '';
  position: absolute;
  inset: -6px;
}

.fav:hover {
  color: var(--mute);
  background: var(--raised);
}

.fav.is-on {
  color: var(--accent);
}

.fav.is-on .ico {
  fill: currentColor;
}

.fav:active {
  transform: scale(.88);
}

.fav--sm {
  position: static;
  width: 30px;
  height: 30px;
  flex: none;
  margin-left: -5px;
}

.fav--sm .ico {
  width: 1rem;
  height: 1rem;
}

mark {
  background: rgba(221, 161, 80, .22);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 1px;
}

/* 스켈레톤 */
.skel {
  padding: 13px 17px;
  pointer-events: none;
}

.skel .bar {
  height: 11px;
  border-radius: 5px;
  background: var(--raised);
  animation: pulse 1.4s ease-in-out infinite;
}

.skel .bar--line {
  height: 1px;
  margin-top: 12px;
  background: var(--border);
  animation: none;
}

/* 지도 칸 말풍선 */
.tip {
  position: absolute; z-index: 5;
  width: min(17rem, calc(100% - 16px));
  padding: 12px 14px 10px;
  background: var(--raised);
  border: 1px solid var(--accent);
  border-radius: 13px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
}
.tip__n { font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; padding-right: 26px; }
.tip__h { color: var(--mute); font-size: .75rem; font-weight: 500; }
.tip__m { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 7px; }
.tip__row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: .8125rem; padding: 1px 0;
}
.tip__row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tip__more { color: var(--mute-dim); font-size: .75rem; margin-top: 3px; }
.tip__none { color: var(--mute-dim); font-size: .8125rem; margin-top: 6px; }
.tip__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.tip__foot .btn { flex: 1; }
.tip__x {
  position: absolute; top: 8px; right: 8px;
  display: grid; place-items: center; width: 28px; height: 28px;
  background: none; border: 0; border-radius: 8px; color: var(--mute-dim); cursor: pointer;
}
.tip__x:hover { color: var(--ink); }
.btn--sm { min-height: 36px; padding: 0 13px; font-size: .8125rem; }

/* 빈 상태 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px;
  text-align: center;
}

.empty svg {
  width: 44px;
  height: 44px;
  color: var(--border-strong);
  stroke-width: 1.25;
  fill: none;
  stroke: currentColor;
}

.empty__t {
  font-size: .9375rem;
  font-weight: 600;
}

.empty__d {
  color: var(--mute);
  font-size: .875rem;
  max-width: 24rem;
}

.btn {
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--fast);
}

.btn:active {
  transform: scale(.97);
}

.btn--ghost {
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

/* 광고 */
.ads {
  display: grid;
  gap: 9px;
  margin: 2px 0 22px;
}

.ads--inline {
  margin: 20px 0 6px;
}

.ad {
  display: block;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.ad__tag {
  display: inline-block;
  margin-bottom: 3px;
  color: var(--mute-dim);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.ad__t {
  font-size: .9375rem;
  font-weight: 600;
}

.ad__b {
  color: var(--mute);
  font-size: .8125rem;
  white-space: pre-line;   /* 편집기에서 넣은 줄바꿈 살리기 */
}

/* ─────────── 시트 (상세 · 필터) ─────────── */

.sheet {
  width: 100%;
  max-width: 34rem;
  max-height: 88dvh;
  padding: 0;
  margin: auto auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  color: var(--ink);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .5);
  overflow: hidden;
}

.sheet::backdrop {
  background: rgba(8, 10, 13, .68);
}

.sheet[open] {
  animation: sheetUp var(--slow);
}

@keyframes sheetUp {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
}

.sheet__grab {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  margin: 9px auto 0;
}

.sheet__x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--mute);
  cursor: pointer;
}

.sheet__x:hover {
  color: var(--ink);
}

.sheet__body {
  padding: 14px 20px 28px;
  overflow-y: auto;
  max-height: calc(88dvh - 22px);
  overscroll-behavior: contain;
}

@media (min-width: 640px) {
  .sheet {
    margin: auto;
    border-radius: 18px;
    border-bottom: 1px solid var(--border);
  }

  .sheet__grab {
    display: none;
  }

  .sheet__body {
    padding-top: 22px;
  }
}

/* 닫기 버튼은 맨 위 오른쪽에 있으니 배지 줄만 비켜주면 됨 */
.d__head .d__slot {
  margin-right: 44px;
}

/* 제목 바로 옆에 별. flex:1을 주면 별이 저 멀리 오른쪽으로 밀림 */
.d__titlerow {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.d__titlerow .d__name {
  flex: 0 1 auto;
  min-width: 0;
}

/* 상세의 별 — 제목 오른쪽에 작게 */
.fav--d {
  position: static;
  width: 34px;
  height: 34px;
  flex: none;
}

.fav--d .ico {
  width: 1.1875rem;
  height: 1.1875rem;
}

.d__slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  margin-bottom: 7px;
  background: var(--raised);
  border-radius: 7px;
  color: var(--mute);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.d__dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.d__name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.d__host {
  color: var(--mute);
  font-size: .875rem;
  font-weight: 500;
  margin-top: 3px;
}

.d__desc {
  margin-top: 12px;
  max-width: 34rem;
  font-size: .9375rem;
  white-space: pre-line;   /* 편집기에서 넣은 줄바꿈 살리기 */
}

.d__none {
  color: var(--mute);
  font-size: .875rem;
}

.d__sec {
  margin-top: 22px;
}

.d__sech {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: .04em;
}

.d__n {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--mute-dim);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.nlist {
  display: grid;
  gap: 7px;
}

.nitem {
  padding: 10px 13px;
  background: var(--raised);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}

.nitem__t {
  font-size: .875rem;
  line-height: 1.6;
  white-space: pre-line;   /* 편집기에서 넣은 줄바꿈 살리기 */
}

.nitem__at {
  color: var(--mute-dim);
  font-size: .75rem;
  font-weight: 500;
  margin-top: 2px;
}

.mgrp {
  margin-bottom: 14px;
}

.mgrp__h {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.mrow {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.mrow:last-child {
  border-bottom: 0;
}

.mrow__l {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mrow__n {
  font-size: .9375rem;
  font-weight: 500;
}

.mrow__d {
  color: var(--mute);
  font-size: .8125rem;
  line-height: 1.55;
  white-space: pre-line;   /* 편집기에서 넣은 줄바꿈 살리기 */
}

.mrow__p {
  flex: none;
  color: var(--ink-strong);
  font-size: .9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mrow__p--none {
  color: var(--mute-dim);
  font-weight: 500;
  font-size: .8125rem;
}

.d__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
}

.d__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.d__mini {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--canvas);
  overflow: hidden;
}

.d__mini svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 스위치 */
.sw {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  padding: 4px 0;
}

.sw input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sw__box {
  flex: none;
  position: relative;
  width: 44px;
  height: 26px;
  margin-top: 2px;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: background var(--fast), border-color var(--fast);
}

.sw__box::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mute);
  transition: transform var(--fast), background var(--fast);
}

.sw input:checked+.sw__box {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.sw input:checked+.sw__box::after {
  transform: translateX(18px);
  background: var(--accent);
}

.sw input:focus-visible+.sw__box {
  box-shadow: var(--ring);
}

.sw__t {
  font-size: .875rem;
  font-weight: 500;
}

.sw__t em {
  display: block;
  color: var(--mute-dim);
  font-size: .75rem;
  font-style: normal;
  font-weight: 500;
}

/* 가격 2-핸들 슬라이더 */
.rng {
  position: relative;
  height: 30px;
  margin-top: 2px;
}

.rng__track,
.rng__fill {
  position: absolute;
  top: 13px;
  height: 5px;
  border-radius: 3px;
  pointer-events: none;
}

.rng__track {
  left: 0;
  right: 0;
  background: var(--border-strong);
}

.rng__fill {
  left: var(--lo);
  right: calc(100% - var(--hi));
  background: var(--accent);
}

.rng input[type=range] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 30px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  pointer-events: none;
}

.rng input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--canvas);
  cursor: grab;
}

.rng input[type=range]::-moz-range-thumb {
  pointer-events: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--canvas);
  cursor: grab;
}

.rng input[type=range]:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--ring);
}

/* 필터 패널 */
.fp__h {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.01em;
  padding-right: 40px;
}

.fp__sec {
  margin-top: 20px;
}

.fp__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--mute);
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 9px;
}

.fp__out {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fp__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fp__hint {
  color: var(--mute-dim);
  font-size: .75rem;
  font-weight: 500;
  margin-top: 7px;
}

.fp__foot {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}

.fp__foot .btn {
  flex: 1;
}

/* ─────────── 푸터 ─────────── */

.foot {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px 16px 34px;
  border-top: 1px solid var(--border);
  color: var(--mute-dim);
  font-size: .75rem;
  font-weight: 500;
}

.foot__stamp {
  font-variant-numeric: tabular-nums;
}

.foot__note {
  margin-top: 4px;
}

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 80; padding: 11px 18px;
  background: var(--raised); border: 1px solid var(--border-strong);
  border-radius: 999px; color: var(--ink);
  font-size: .875rem; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  animation: toastIn 220ms var(--ease);
}
@keyframes toastIn { from { transform: translate(-50%, 8px); opacity: 0; } }

/* ─────────── 전면 광고 ─────────── */

.fa {
  width: min(26rem, calc(100vw - 32px));
  padding: 0;
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .6);
  overflow: hidden;
}

.fa::backdrop {
  background: rgba(8, 10, 13, .8);
}

.fa[open] {
  animation: faIn 240ms var(--ease);
}

@keyframes faIn {
  from {
    transform: scale(.97);
    opacity: 0;
  }
}

.fa__in {
  padding: 22px 22px 18px;
}

.fa__t {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 6px;
  line-height: 1.4;
}

.fa__b {
  color: var(--mute);
  font-size: .9375rem;
  line-height: 1.7;
  margin-top: 8px;
  white-space: pre-line;   /* 편집기에서 넣은 줄바꿈 살리기 */
}

.fa__foot {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.fa__foot .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ─────────── 첫 방문 안내 (스포트라이트) ─────────── */

body.tour-on {
  overflow: hidden;
}

.tour {
  position: fixed;
  inset: 0;
  z-index: 70;
}

/* 구멍: 바깥쪽으로 퍼지는 그림자가 곧 어두운 막이다 */
.tour__hole {
  position: absolute;
  box-shadow: 0 0 0 9999px rgba(8, 10, 13, .78);
  border: 2px solid var(--accent);
  pointer-events: none;
  transition: all 260ms var(--ease);
}

.tour__pop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(23rem, calc(100vw - 28px));
  padding: 16px 18px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
  transition: top 260ms var(--ease);
}

.tour__step {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.tour__t {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 2px;
}

.tour__b {
  color: var(--mute);
  font-size: .875rem;
  line-height: 1.65;
  margin-top: 6px;
}

.tour__foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
}

.tour__sp {
  flex: 1;
}

.tour__never {
  background: none;
  border: 0;
  padding: 6px 2px;
  color: var(--mute-dim);
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tour__never:hover {
  color: var(--mute);
}

.tour__btn {
  min-height: 40px;
  padding: 0 15px;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}

.tour__btn:hover {
  border-color: var(--accent);
}

.tour__btn--pri {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

@media (prefers-reduced-motion: reduce) {

  .tour__hole,
  .tour__pop {
    transition: none;
  }
}

/* 공지 시트 하단 확인 버튼 */
.nfoot {
  display: flex;
  margin-top: 22px;
}

.nfoot .btn {
  flex: 1;
}

/* ─────────── 접근성: 모션 축소 ─────────── */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}