/* ==========================================================================
   LOBBI — Discord server discovery
   넷플릭스 느낌: 검정 배경 + 빨강 포인트 + 가로로 넘기는 줄(row) + 호버 시 커지는 카드.
   흐름은 단순하게: 검색 → 줄/카테고리 → 카드 → [참가하기]
   ========================================================================== */

:root {
  --bg: #0e0e0e;
  --bg-2: #141414;
  --surface: #1c1c1c;
  --surface-2: #262626;
  --line: #2c2c2c;
  --text: #ffffff;
  --sub: #b3b3b3;
  --faint: #7a7a7a;
  --red: #ffffff;        /* 포인트 색: 흰색 (이름은 예전 그대로 --red) */
  --red-hover: #e2e2e2;
  --red-soft: rgba(255, 255, 255, .10);
  --online: #46d369;

  --font-body: "Pretendard", -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  --font-brand: "Bebas Neue", "Anton", Impact, sans-serif;

  --radius: 8px;
  --container: 1320px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 4%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------- 버튼 ---------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 0; border-radius: 6px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .15s, transform .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn--red { background: var(--red); color: #0e0e0e; }
.btn--red:hover { background: var(--red-hover); }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: rgba(255,255,255,.82); }
.btn--gray { background: rgba(109,109,110,.7); color: #fff; }
.btn--gray:hover { background: rgba(109,109,110,.5); }
.btn--ghost { background: transparent; color: var(--sub); }
.btn--ghost:hover { color: #fff; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------------------------------- 헤더 ---------------------------------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%);
  transition: background .12s;
}
.site-header.is-solid { background: var(--bg-2); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 30px; max-width: none; }
.logo {
  font-family: var(--font-brand); font-size: 34px; letter-spacing: .04em; line-height: 1;
  color: var(--red); text-shadow: 0 2px 12px rgba(255, 255, 255, .25);
}
.nav { display: flex; gap: 20px; }
.nav a { color: #e5e5e5; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--sub); }
.nav a.is-active { color: #fff; font-weight: 800; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  height: 34px; padding: 0 10px; border-radius: 4px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.4); font-size: 13px; font-weight: 700; color: #fff;
}
.lang:hover { border-color: #fff; }

/* ---------------------------------- 히어로 --------------------------------- */

.hero {  /* 은은한 빨간 빛 + 격자 무늬 (디렉토리 사이트 느낌, 넷플릭스 포스터 벽은 뺌) */
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% -10%, rgba(255, 255, 255, .13) 0%, transparent 70%),
    radial-gradient(40% 60% at 90% 30%, rgba(88, 101, 242, .16) 0%, transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; text-align: center; padding-top: 130px; padding-bottom: 46px; width: 100%; }
.hero__stats { display: flex; justify-content: center; gap: 44px; margin-top: 38px; }
.hero__stats div { display: flex; flex-direction: column; align-items: center; }
.hero__stats b { font-size: 26px; font-weight: 900; }
.hero__stats span { font-size: 13px; color: var(--sub); }
.hero h1 { margin: 0; font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }
.hero p { margin: 16px 0 30px; font-size: clamp(16px, 2vw, 21px); color: #e5e5e5; }

.search { display: flex; gap: 8px; max-width: 680px; margin: 0 auto; }
.search__box {
  flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0;
  height: 58px; padding: 0 18px; border-radius: 6px;
  background: rgba(22,22,22,.78); border: 1px solid rgba(128,128,128,.7);
}
.search__box:focus-within { border-color: #fff; outline: 2px solid rgba(255,255,255,.25); }
.search__box svg { flex: none; color: var(--sub); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; }
.search input::placeholder { color: #8c8c8c; }
.search .btn { height: 58px; padding: 0 30px; font-size: 18px; }

.quick-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.quick-tags > span { color: var(--sub); font-size: 13px; align-self: center; margin-right: 4px; }

/* ---------------------------------- 태그 ---------------------------------- */

.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 4px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #e5e5e5;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
button.chip, a.chip { cursor: pointer; transition: border-color .15s, background .15s; }
button.chip:hover, a.chip:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.chip.is-on { background: var(--red); border-color: var(--red); color: #0e0e0e; }

/* ---------------------------------- 툴바 ---------------------------------- */

.browse { position: relative; z-index: 2; margin-top: -40px; }
.toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  background: linear-gradient(180deg, var(--bg) 70%, rgba(14,14,14,0));
}
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: transparent;
  color: #e5e5e5; font-weight: 600; font-size: 14px; transition: all .15s;
}
.tab:hover { border-color: #fff; color: #fff; }
.tab.is-active { background: #fff; color: #000; border-color: #fff; }
.sort {
  flex: none; height: 36px; padding: 0 32px 0 12px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.25); background-color: #000; color: #fff;
  font-weight: 600; font-size: 13px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.result-count { color: var(--sub); font-size: 14px; margin: 6px 0 18px; display: flex; align-items: center; gap: 10px; }
.result-count b { color: #fff; }

/* ---------------------------------- 줄(row) ------------------------------- */

.row { margin: 10px 0 36px; }
.row__title { margin: 0 0 12px; font-size: 20px; font-weight: 800; display: flex; align-items: baseline; gap: 12px; }
.row__title small { font-size: 13px; color: var(--sub); font-weight: 500; }
.row__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr);
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 18px 2px 24px; margin: -18px -2px -24px; scrollbar-width: none;
}
.row__track::-webkit-scrollbar { display: none; }
.row__track > * { scroll-snap-align: start; }
@media (min-width: 1200px) { .row__track { grid-auto-columns: calc((100% - 40px) / 5); } }
@media (min-width: 900px) and (max-width: 1199px) { .row__track { grid-auto-columns: calc((100% - 30px) / 4); } }

/* TOP 10: 큰 숫자 + 카드 */
.top10 { grid-auto-columns: minmax(320px, 1fr); }   /* 숫자 + 카드라서 일반 줄보다 넓게 */
@media (min-width: 1200px) { .top10 { grid-auto-columns: calc((100% - 30px) / 4); } }
.rank { display: flex; align-items: flex-end; }
.rank__num {
  flex: none; width: 66px; margin-right: -4px; font-family: var(--font-brand); position: relative; z-index: 0;
  font-size: 128px; line-height: .8; color: var(--bg);
  -webkit-text-stroke: 3px #595959; letter-spacing: -.04em; text-align: right;
}
.rank .tile { flex: 1; min-width: 0; }

/* ---------------------------------- 서버 타일 ------------------------------ */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px 10px; }

.tile {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.tile:hover { transform: scale(1.05); box-shadow: 0 14px 40px rgba(0,0,0,.75); z-index: 3; }
.tile__link { position: absolute; inset: 0; z-index: 1; }
.tile__art {  /* 위쪽 커버: 서버 색 그라데이션 + 아이콘 */
  position: relative; aspect-ratio: 16 / 8; display: flex; align-items: flex-end; padding: 12px;
}
.tile__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.65) 100%); }
.tile__art .avatar { position: relative; z-index: 1; }
.tile__badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 800; letter-spacing: .03em;
  background: var(--red); color: #0e0e0e;
}
.tile__new { position: absolute; top: 10px; right: 10px; z-index: 1; font-size: 11px; font-weight: 800; color: #fff;
  background: rgba(0,0,0,.6); padding: 2px 7px; border-radius: 3px; }
.tile__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile__name { margin: 0; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; color: var(--sub); }
.tile__meta > span { white-space: nowrap; }
.tile__desc {
  margin: 0; font-size: 13.5px; color: #cfcfcf;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(13.5px * 1.55 * 2);
}
.tile__tags { display: flex; flex-wrap: nowrap; gap: 5px; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tile__foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile__up { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tile .btn { position: relative; z-index: 2; height: 34px; padding: 0 14px; font-size: 13px; flex: none; }

.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; font-weight: 900; font-size: 22px; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.12);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 120px; height: 120px; border-radius: 28px; font-size: 48px; border-width: 3px; }

.stat-online { display: inline-flex; align-items: center; gap: 5px; }
.stat-online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--online); }

.empty { text-align: center; padding: 70px 20px; color: var(--sub); grid-column: 1 / -1; }
.empty b { display: block; font-size: 20px; color: #fff; margin-bottom: 8px; }

/* ------------------- 목록: 사이드바(한디리) + 긴 카드 목록(디스보드) ------------------- */

#rows { padding-top: 26px; }
.browse { display: grid; grid-template-columns: 236px 1fr; gap: 28px; align-items: start; padding: 10px 0 20px; scroll-margin-top: calc(var(--header-h) + 10px); }
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.sidebar__title { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.cats { display: grid; gap: 2px; margin-bottom: 26px; }
.cat {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
  border: 0; border-radius: 8px; background: transparent; color: #d4d4d4;
  font-size: 14.5px; font-weight: 600; text-align: left; transition: background .12s, color .12s;
}
.cat:hover { background: var(--surface); color: #fff; }
.cat.is-active { background: var(--red-soft); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.cat__icon { flex: none; width: 20px; height: 20px; opacity: .85; }
.cat.is-active .cat__icon { opacity: 1; }
.cat__name { flex: 1; }
.cat__n { font-size: 12px; color: var(--faint); font-weight: 700; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.list-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.list-head__info { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.list-head__info h2 { margin: 0; font-size: 22px; font-weight: 900; }
.list-head__info span { color: var(--sub); font-size: 14px; }
.btn--xs { height: 26px; padding: 0 10px; font-size: 12px; align-self: center; }
.sorts { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 10px; }
.sort-pill {
  height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent;
  color: var(--sub); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.sort-pill:hover { color: #fff; }
.sort-pill.is-active { background: var(--surface-2); color: #fff; }

#list { display: grid; gap: 10px; }
.lcard {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, background .15s, transform .15s;
}
.lcard:hover { border-color: #444; background: #202020; transform: translateX(2px); }
.lcard--pick { border-color: rgba(255, 255, 255, .45); background: linear-gradient(90deg, rgba(255,255,255,.07), var(--surface) 45%); }
.lcard__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.lcard .avatar { align-self: start; width: 64px; height: 64px; border-radius: 18px; }
.lcard__body { min-width: 0; }
.lcard__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lcard__title h3 { margin: 0; font-size: 18px; font-weight: 800; }
.lcard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; font-size: 13px; color: var(--sub); }
.lcard__desc { margin: 8px 0 10px; color: #d0d0d0; font-size: 14.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 2; }
.lcard__actions { position: relative; z-index: 2; }
.lcard__actions .btn { height: 44px; padding: 0 22px; }
.pill { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); color: #fff; letter-spacing: .02em; }
.pill--red { background: var(--red); color: #0e0e0e; }
.heart { color: #ff6b81; font-weight: 700; }
.pill--adult, .tile__badge--adult { background: #ff3b5c !important; color: #fff !important; }
.tile__badge--adult { left: auto; right: 10px; top: 38px; }
.adult-gate { max-width: 460px; margin: 30px auto; padding: 34px 28px; text-align: center; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); }
.adult-gate__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid #ff3b5c; color: #ff3b5c; font-weight: 900; font-size: 18px; }
.adult-gate h3 { margin: 0 0 6px; font-size: 20px; }
.adult-gate p { margin: 0 0 20px; color: var(--sub); }
.adult-gate .form-actions { justify-content: center; }
.heart-btn b { color: #ff8fa0; }
.heart-btn.is-done { background: rgba(255, 107, 129, .16); color: #ff8fa0; cursor: default; font-size: 15px; }

/* ---------------------------------- 등록 안내 줄 --------------------------- */

.promo {
  margin: 20px 0 50px; padding: 34px; border-radius: var(--radius);
  background: linear-gradient(100deg, #1f1f1f 0%, #262626 45%, #141414 100%);
  border: 1px solid #333;
  display: grid; grid-template-columns: 1.1fr 2fr; gap: 30px; align-items: center;
}
.promo h2 { margin: 0 0 8px; font-size: 26px; font-weight: 900; }
.promo p { margin: 0 0 18px; color: var(--sub); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step__num { font-family: var(--font-brand); font-size: 40px; line-height: 1; color: var(--red); }
.step h3 { margin: 6px 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--sub); font-size: 13.5px; }
code { background: #2a2a2a; color: #fff; padding: 1px 6px; border-radius: 4px; font-size: .92em; }

/* ---------------------------------- 상세 페이지 ----------------------------- */

.billboard { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.billboard__bg { position: absolute; inset: 0; }
.billboard__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.2) 100%),
    linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 40%, var(--bg) 100%);
}
.billboard .wrap { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 40px; }
.billboard__head { display: flex; gap: 24px; align-items: flex-end; }
.billboard h1 { margin: 0; font-size: clamp(34px, 5vw, 60px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.billboard__stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; color: #e5e5e5; font-size: 15px; }
.billboard__stats .hl { color: var(--online); font-weight: 700; }
.billboard__short { max-width: 640px; margin: 20px 0 22px; font-size: 18px; color: #e5e5e5; }
.billboard__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--sub); font-weight: 600; margin-bottom: 20px; }
.back:hover { color: #fff; }

.detail { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; padding: 10px 0 40px; }
.detail__desc { white-space: pre-line; color: #d6d6d6; font-size: 15.5px; line-height: 1.8; margin: 0; }
.detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.info { display: grid; gap: 0; margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.info div { display: flex; justify-content: space-between; padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--line); }
.info div:last-child { border-bottom: 0; }
.info dt { color: var(--sub); }
.info dd { margin: 0; font-weight: 700; }
.note { font-size: 12.5px; color: var(--faint); margin: 10px 0 0; }

/* ---------------------------------- 등록 안내 페이지 ------------------------ */

.page-head { padding: calc(var(--header-h) + 50px) 0 10px; }
.page-head h1 { margin: 0; font-size: 40px; font-weight: 900; letter-spacing: -0.02em; }
.page-head p { color: var(--sub); margin: 8px 0 0; font-size: 17px; }
.guide { display: grid; gap: 12px; max-width: 820px; margin: 30px 0 24px; }
.guide .step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 22px; }
.guide .step h3 { margin-top: 0; }
.soon { font-size: 12px; font-weight: 700; color: var(--sub); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

/* ---------------------------------- 헤더: 언어 · 로그인 ---------------------------------- */

select.lang {
  appearance: none; cursor: pointer; padding: 0 28px 0 10px;
  background: rgba(0,0,0,.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center;
}
select.lang option, .server-lang option, .field select option { background: #1c1c1c; color: #fff; }
.auth { display: flex; align-items: center; gap: 6px; }
.me { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.08); }
.me:hover { background: rgba(255,255,255,.16); }
.me img, .me span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #333; font-size: 13px; font-weight: 800; }
.me b { font-size: 13px; }
.list-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.server-lang {
  height: 40px; padding: 0 30px 0 12px; border-radius: 10px; border: 0; background-color: var(--surface);
  color: #fff; font-weight: 700; font-size: 13px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}

/* ---------------------------------- 내 서버 관리 ---------------------------------- */

.notice { padding: 12px 16px; border-radius: 8px; font-weight: 600; margin: 0 0 16px; }
.notice--ok { background: rgba(70, 211, 105, .12); color: #7be29a; border: 1px solid rgba(70, 211, 105, .3); }
.notice--err { background: rgba(255, 107, 129, .1); color: #ff9aaa; border: 1px solid rgba(255, 107, 129, .3); }
.login-card { max-width: 820px; padding: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-align: center; margin-bottom: 70px; }
.login-card p { margin: 0 0 18px; color: var(--sub); font-size: 16px; }
.is-disabled { opacity: .4; pointer-events: none; }
.dash-head h2 { margin: 10px 0 4px; font-size: 24px; font-weight: 900; }
.dash-head p { margin: 0 0 18px; color: var(--sub); font-size: 14px; }
.glist { display: grid; gap: 10px; max-width: 900px; margin-bottom: 70px; }
.grow { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.grow.is-open { border-color: #555; }
.grow__main { display: flex; align-items: center; gap: 14px; padding: 14px 16px; flex-wrap: wrap; }
.grow__info { flex: 1; min-width: 160px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.grow__info b { font-size: 16px; }
.grow__info small { flex-basis: 100%; color: var(--faint); font-size: 12.5px; }
.grow__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 4px; background: var(--surface-2); color: var(--sub); }
.status--on { background: #fff; color: #0e0e0e; }
.status--warn { background: rgba(255, 196, 0, .14); color: #ffd060; }

.sform { display: grid; gap: 16px; padding: 4px 16px 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 700; }
.field small { color: var(--faint); font-weight: 500; margin-left: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid #3a3a3a; background: #111; color: #fff; font-size: 14.5px; outline: 0;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid #3a3a3a; color: #d4d4d4; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.check span .cat__icon { width: 16px; height: 16px; }
.check input:checked + span { background: #fff; color: #0e0e0e; border-color: #fff; }
.check input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.taginput {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 9px;
  border-radius: 8px; border: 1px solid #3a3a3a; background: #111; cursor: text;
}
.taginput:focus-within { border-color: #fff; }
.taginput input { flex: 1; min-width: 140px; border: 0 !important; padding: 4px !important; background: none !important; outline: 0; }
.tagchip {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px 0 10px;
  border-radius: 999px; background: #fff; color: #0e0e0e; font-size: 13px; font-weight: 700;
}
.tagchip button { border: 0; background: none; color: #555; font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer; }
.tagchip button:hover { color: #000; }
.form-err { margin: 0; color: #ff9aaa; font-weight: 600; }
.form-actions { display: flex; gap: 8px; }

/* ---------------------------------- 약관 · 개인정보 ---------------------------------- */

.legal { max-width: 820px; padding-top: calc(var(--header-h) + 44px); padding-bottom: 60px; color: #d6d6d6; line-height: 1.8; }
.legal h1 { margin: 0; font-size: 34px; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.legal__date { color: var(--faint); margin: 6px 0 30px; font-size: 14px; }
.legal h2 { margin: 30px 0 8px; font-size: 18px; color: #fff; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin: 4px 0; }
.legal a { text-decoration: underline; }

/* ---------------------------------- 푸터 ---------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 50px; color: var(--faint); font-size: 13px; margin-top: 20px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--sub); text-decoration: underline; }

/* ---------------------------------- 모바일 --------------------------------- */

.mobile-join { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  /* 사이드바 → 위쪽 가로 스크롤 카테고리 */
  .browse { grid-template-columns: 1fr; gap: 14px; }
  .sidebar { position: static; min-width: 0; }
  .sidebar__title, .tag-cloud { display: none; }
  .cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { width: auto; flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid #333; }
  .cat.is-active { box-shadow: none; background: #fff; color: #000; border-color: #fff; }
  .cat__n { display: none; }
  .promo { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .mobile-join {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(14,14,14,.95); border-top: 1px solid var(--line);
  }
  body[data-page="detail"] { padding-bottom: 84px; }
  .billboard__actions .btn--red { display: none; }  /* 아래 고정 참가 버튼과 중복이라 숨김 (하트는 남김) */
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 28px; }
  .header-actions > .btn--ghost, #logout { display: none; }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 100px; padding-bottom: 60px; }
  .search { flex-direction: column; }
  .search .btn { height: 50px; }
  .toolbar { flex-wrap: wrap; position: static; }
  .sort { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .rank__num { width: 52px; font-size: 96px; margin-right: -4px; }
  .hero__stats { gap: 22px; }
  .hero__stats b { font-size: 20px; }
  .lcard { grid-template-columns: auto 1fr; padding: 14px; gap: 12px; }
  .lcard .avatar { width: 52px; height: 52px; border-radius: 14px; }
  .lcard__actions { grid-column: 1 / -1; }
  .lcard__actions .btn { width: 100%; }
  .sorts { width: 100%; overflow-x: auto; }
  .row__track { grid-auto-columns: 72%; }
  .top10 { grid-auto-columns: 88%; }
  .billboard { min-height: 0; }
  .billboard__head { flex-direction: column; align-items: flex-start; }
  .avatar--lg { width: 88px; height: 88px; font-size: 36px; }
  .guide .step { grid-template-columns: 40px 1fr; }
  .guide .soon { grid-column: 2; justify-self: start; }
  .page-head h1 { font-size: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .me b { display: none; }
  .site-header .btn--red { display: none; }
}
