/* ============================================================
   joy-talk.com — game community landing
   ============================================================ */
:root {
  --bg: #070a14;
  --bg-soft: #0f1628;
  --surface: #131c33;
  --surface-2: #192541;
  --line: #2c3961;
  --text: #f5f7ff;
  --muted: #9ba6c9;
  --brand: #7d5cff;
  --brand-2: #19d3c5;
  --pink: #ff4f9a;
  --gold: #ffd166;
  --green: #69e891;
  --danger: #ff6b6b;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
/* 오버스크롤(고무줄)·루트 영역이 흰색 대신 하단(푸터) 색과 맞도록 */
html { background: #080d19; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  background:
    linear-gradient(180deg, #070a14 0%, #0a1022 46%, #070a14 100%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 28px;
  /* 위는 바디색으로 시작 → 아래 opacity .5 (사용자 지정). 프로스트 블러 유지. */
  background: linear-gradient(180deg, #070a14 0%, rgba(7, 10, 20, .88) 28%, rgba(7, 10, 20, .5) 100%);
  backdrop-filter: blur(13px) saturate(1.2);
  -webkit-backdrop-filter: blur(13px) saturate(1.2);
}
/* 맨 위에선 경계선 없음, 스크롤하면 경계선 생겨 콘텐츠와 구분 */
.site-header.scrolled {
  border-bottom: 1px solid rgba(125, 92, 255, .22);
}
/* 모바일 메뉴 펼침 상태: 아래 항목까지 배경이 필요하니 불투명하게 */
.site-header.nav-open {
  background: rgba(7, 10, 20, .96);
}
.site-header .logo {
  color: var(--text);
  font-size: 19px;
  font-weight: 950;
  letter-spacing: 1.5px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-header .logo:hover {
  color: var(--brand-2);
  text-decoration: none;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* 서버 상태 픽 — 오픈 전이므로 '준비중'(골드) */
.server-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px;
  border: 1px solid rgba(255, 209, 102, .42);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px; font-weight: 900; letter-spacing: 1px;
  white-space: nowrap;
}
.server-pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.site-header nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  opacity: .86;
}
.site-header nav a:hover {
  color: var(--brand-2);
  opacity: 1;
  text-decoration: none;
}
.site-header nav .hi {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* 햄버거 버튼 (모바일에서만 노출) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 40px;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}
.nav-toggle:hover { transform: none; filter: none; box-shadow: none; border-color: rgba(125,92,255,.5); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 게시판 탭 — 데스크톱에선 숨김(본문 사이드바 사용), 모바일에선 헤더 안에서 노출 */
.header-boards { display: none; }

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .site-header nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(125, 92, 255, .2);
  }
  .site-header.nav-open nav { display: flex; }
  .site-header nav a,
  .site-header nav .hi,
  .site-header nav .linklike { padding: 11px 6px; font-size: 15px; text-align: left; }
  .site-header nav .btn-sm { align-self: flex-start; padding: 9px 18px; margin-top: 4px; }
  .site-header nav .inline-form { width: 100%; }

  /* 헤더 안 게시판 탭(가로 스크롤) — 헤더가 길어져 프로스트가 탭까지 덮는다 */
  .header-boards {
    display: flex;
    order: 3;
    width: 100%;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .header-boards::-webkit-scrollbar { display: none; }
  .header-boards a {
    flex: 0 0 auto;
    padding: 7px 13px;
    border-radius: 999px;
    color: #cdd5f0;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
  }
  .header-boards a:hover { color: #fff; text-decoration: none; }
  .header-boards a.active {
    background: linear-gradient(180deg, rgba(125, 92, 255, .3), rgba(25, 211, 197, .15));
    color: #fff;
  }
  /* 모바일에선 본문 사이드바 탭 숨김(헤더로 이동) */
  .board-nav { display: none; }
}

.site-main { position: relative; }
.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Hero */
.hero {
  position: relative;
  /* 아트워크 비율(≈16:9)이 허용하는 선에서 크게, 상한만 둠 */
  min-height: clamp(560px, 82vh, 880px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 104px 20px 128px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(14, 20, 42, .94) 0%, rgba(7, 10, 20, .55) 50%, rgba(7, 10, 20, .98) 100%),
    repeating-linear-gradient(90deg, rgba(125, 92, 255, .16) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(25, 211, 197, .08) 0 1px, transparent 1px 92px);
}
/* 떠다니는 네온 글로우 */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(300px 300px at 22% 32%, rgba(125, 92, 255, .32), transparent 70%),
    radial-gradient(260px 260px at 78% 60%, rgba(25, 211, 197, .22), transparent 70%),
    radial-gradient(220px 220px at 58% 18%, rgba(255, 79, 154, .16), transparent 70%);
  filter: blur(12px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
/* 스캔라인 + 비네트 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 8%, transparent 55%, rgba(0, 0, 0, .42) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 3;
  width: min(800px, 100%);
}
.hero .badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 18px;
}
.hero .badge::before {
  content: "";
  width: 8px; height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: blink 1.6s ease-in-out infinite;
}
.hero .badge {
  border: 1px solid rgba(255, 209, 102, .56);
  border-radius: 999px;
  background: rgba(20, 16, 8, .42);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero h1 {
  margin: 24px 0 14px;
  color: #fff;
  font-size: 66px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
  /* 사진 배경 위 가독성: 근접 그림자 + 넓은 확산 */
  text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 12px 34px rgba(0,0,0,.6);
}
.hero h1 .grad {
  background: linear-gradient(92deg, var(--brand-2) 0%, var(--gold) 42%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none; /* 투명 글자에 부모 그림자가 비쳐 음각처럼 보이는 것 제거 */
}
.hero p.lead {
  max-width: 610px;
  margin: 0 auto 30px;
  color: #eaeeff;
  font-size: 18px;
  text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 6px 20px rgba(0,0,0,.55);
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Hero — 아트워크 배경 롤링(forest→desert→마을맵) + 씬별 파티클 효과 */
.hero-scenes::before { opacity: .5; } /* 사진 위 네온 글로우는 옅게 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease;
  will-change: opacity;
}
.hero-bg.is-active { opacity: 1; }
/* 가독성 스크림 — 모든 씬 공통으로 사진을 살짝 눌러줌 */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* 상단은 헤더 색으로, 하단은 다음 섹션 색으로 부드럽게 녹아들도록 위아래 페이드 강화 */
  background: linear-gradient(180deg,
    rgba(7, 10, 20, .92) 0%,
    rgba(9, 13, 28, .5) 15%,
    rgba(9, 13, 28, .42) 48%,
    rgba(7, 10, 20, .72) 82%,
    rgba(7, 10, 20, .98) 100%);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Sections — 히어로 숲과 이어지는 '캐노피 사이 빛' 무드로 통일 */
section.block {
  position: relative;
  padding: 82px 0;
  /* 상단에서 은은히 스며드는 민트빛(반딧불과 같은 색) */
  background: radial-gradient(1100px 340px at 50% -8%, rgba(25, 211, 197, .06), transparent 72%);
}
section.block.alt {
  background:
    radial-gradient(1100px 360px at 50% -8%, rgba(25, 211, 197, .11), transparent 72%),
    radial-gradient(900px 500px at 82% 120%, rgba(125, 92, 255, .10), transparent 70%),
    linear-gradient(180deg, rgba(16, 24, 46, .95), rgba(9, 14, 28, .97));
}
.sec-tag {
  margin: 0 0 8px;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}
.sec-title {
  margin: 0 0 42px;
  color: #fff;
  font-size: 36px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.22;
  text-align: center;
}

/* Story / 세계관 */
.story {
  max-width: 760px;
  margin: 0 auto;
}
.story p {
  margin: 0 0 22px;
  color: #d5daf2;
  font-size: 17px;
  line-height: 1.9;
  word-break: keep-all;
}
.story p:last-child {
  margin-bottom: 0;
}
.story .drop {
  color: var(--brand-2);
  font-weight: 800;
}
@media (max-width: 720px) {
  .story p { font-size: 16px; }
}

/* 세계관: 상단에 자연스럽게 떨어지는 별똥별 */
#story { overflow: hidden; }
#story > .wrap { position: relative; z-index: 2; }
.stars {
  position: absolute;
  inset: 0 0 auto 0;
  height: 48%;                 /* 상단쪽에만 */
  z-index: 1;
  pointer-events: none;
}
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px 1px rgba(255, 255, 255, .5), 0 0 4px 1px rgba(190, 220, 255, .6);
  opacity: 0;
  animation: shoot var(--dur, 6s) ease-in var(--delay, 0s) infinite;
}
.star::after {                 /* 꼬리 — 진행 반대(오른쪽 위)로 뻗음 (흐리게) */
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  width: 120px;
  height: 2px;
  transform-origin: left center;
  transform: rotate(-35deg);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(200, 225, 255, .16) 42%, transparent);
}
@keyframes shoot {
  0%   { opacity: 0; transform: translate(0, 0); }
  6%   { opacity: 1; }
  55%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-300px, 210px); }   /* 왼쪽-아래로 낙하 */
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.features-more { display: none; }   /* 데스크톱 숨김 — 모바일에서만 노출 */
.feature {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(26, 38, 69, .96), rgba(14, 21, 40, .98));
  transition: transform .2s ease, border-color .2s ease;
}
/* 우측 상단에서 밝아지는 그라데이션 글로우 */
.feature::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 90%;
  background: radial-gradient(135px 135px at 100% 0%, rgba(125, 92, 255, .40), rgba(25, 211, 197, .13) 45%, transparent 72%);
  pointer-events: none;
  transition: filter .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 211, 197, .55);
}
.feature:hover::before { filter: brightness(1.3); }
/* 아이콘: 단색 라인 아이콘을 우측 상단 배경처럼 자연스럽게 */
.feature .ico {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 48px;
  height: 48px;
  color: rgba(25, 211, 197, .72);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
  pointer-events: none;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}
.feature:hover .ico {
  color: #8ffaf1;
  opacity: .9;
  transform: translateY(-1px);
}
.feature h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  padding-right: 54px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}
.feature p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Preview shots */
/* 아트워크 롤링(마퀴) — 스크롤은 marquee.js 가 rAF 로 구동(끝에서 순간이동 없음).
   정지·복제 개수·되감기 모두 JS 담당. 여기선 레이아웃과 가장자리 페이드만. */
.shots-marquee {
  position: relative;
  overflow: hidden;
  /* 양쪽 가장자리를 은은히 페이드해 화면 밖으로 자연스럽게 사라지게 */
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  touch-action: pan-y;   /* 세로는 페이지 스크롤 유지, 가로 스와이프는 JS 드래그로 처리 */
  cursor: grab;          /* 잡아끌 수 있다는 표시 */
  -webkit-user-select: none;
          user-select: none;
}
.shots-marquee.is-grabbing { cursor: grabbing; }
.shots-track img { -webkit-user-drag: none; user-drag: none; }   /* 마우스 드래그 시 이미지 고스트 방지 */
.shots-track {
  display: flex;
  width: max-content;            /* 복제본이 줄바꿈 없이 한 줄로 늘어서게 */
}
.shots-track .shot {
  flex: 0 0 clamp(280px, 30vw, 400px);
  margin-right: 18px;            /* JS 가 이 마진까지 포함해 한 세트 폭을 측정 */
}

/* 패널 뒤 배경 레이어 — 카드에 hover 하면 '그 카드의 사진'이 어둡게·살짝 흐리게 뒤에 뜬다.
   이미지 지정과 표시/숨김은 marquee.js 담당. 마우스 떼면 사라지고 원래 글로우 배경으로. */
#shots { overflow: hidden; }     /* 블러 배경 가장자리가 밖으로 새지 않게 */
.shots-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;                    /* 패널 전체 표시/숨김(hover 진입·이탈) */
  transition: opacity .45s ease;
}
.shots-backdrop .shots-bd-img {  /* 이미지 레이어 2장 — JS 가 번갈아 크로스페이드 */
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;  /* url 은 JS 가 hover 한 카드 기준으로 넣음 */
  filter: blur(4px);             /* 살짝만 흐리게(선명한 편) */
  transform: scale(1.05);        /* 블러 번짐이 가장자리에 빈 틈을 안 남기게 살짝 확대 */
  opacity: 0;
  transition: opacity .5s ease;  /* 이미지 전환 페이드 */
}
.shots-backdrop::after {         /* 어둡게 덮기(두 이미지 위에 균일하게) */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(6, 10, 20, .80), rgba(6, 10, 20, .90));
}
#shots.shots-lit .shots-backdrop { opacity: 1; }
/* 배경 위로 제목·롤링이 오도록 */
#shots .wrap,
#shots .shots-marquee { position: relative; z-index: 1; }

.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 31, 56, .8), rgba(11, 17, 32, .95));
  transition: border-color .2s ease, transform .2s ease;
}
.shot:hover {
  border-color: rgba(125, 92, 255, .5);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.shot:hover img {
  transform: scale(1.18);
}
.shot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

/* CTA band */
.cta-band {
  position: relative;
  padding: 48px 28px;
  border: 1px solid rgba(125, 92, 255, .35);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(125,92,255,.22), rgba(25,211,197,.1)),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
  box-shadow: var(--shadow);
  text-align: center;
}
.cta-band h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: 0;
}
.cta-band p {
  margin: 0 0 24px;
  color: var(--muted);
}
/* CTA 밴드에도 HUD 브래킷(골드) */
.cta-band::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,209,102,.65), rgba(255,209,102,.65)),
    linear-gradient(rgba(255,209,102,.65), rgba(255,209,102,.65)),
    linear-gradient(rgba(255,209,102,.65), rgba(255,209,102,.65)),
    linear-gradient(rgba(255,209,102,.65), rgba(255,209,102,.65)),
    linear-gradient(rgba(255,209,102,.65), rgba(255,209,102,.65)),
    linear-gradient(rgba(255,209,102,.65), rgba(255,209,102,.65)),
    linear-gradient(rgba(255,209,102,.65), rgba(255,209,102,.65)),
    linear-gradient(rgba(255,209,102,.65), rgba(255,209,102,.65));
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
  background-size:
    20px 2px, 2px 20px,
    20px 2px, 2px 20px,
    20px 2px, 2px 20px,
    20px 2px, 2px 20px;
  background-repeat: no-repeat;
}

/* Forms */
.signup {
  display: flex;
  gap: 10px;
  max-width: 470px;
  margin: 0 auto;
}
.signup input[type=email] { flex: 1; }

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(25, 36, 65, .98), rgba(14, 21, 39, .98));
  box-shadow: var(--shadow);
}
.form-narrow {
  max-width: 450px;
  margin: 54px auto 94px;
  padding: 0 20px;
}
label {
  display: block;
  margin: 10px 0 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
input[type=text],
input[type=email],
input[type=password],
input[type=tel],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1223;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
input:focus,
textarea:focus {
  outline: 2px solid rgba(25, 211, 197, .72);
  border-color: transparent;
}
input:disabled {
  opacity: .6;
  cursor: not-allowed;
  color: var(--muted);
}
.field-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.field-check {
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 1em;          /* 값이 없어도 줄 높이 유지 → 폼이 덜 흔들림 */
}
.field-check.checking { color: var(--muted); font-weight: 500; }
.field-check.ok  { color: var(--green); }
.field-check.bad { color: var(--danger); }

.agree-box {
  margin: 20px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1223;
}
.agree-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 5px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.agree-item input[type=checkbox] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--brand-2);
  cursor: pointer;
}
.agree-item a { color: var(--brand-2); }

.btn,
button,
input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 26px;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(92deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(125, 92, 255, .32);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover,
button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(25, 211, 197, .24);
}
.btn-ghost {
  border: 1px solid rgba(255, 209, 102, .48);
  background: rgba(7, 10, 20, .54);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--gold); }
.btn-block {
  width: 100%;
  margin-top: 22px;
}
.btn-sm {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: var(--radius);
  background: linear-gradient(92deg, var(--brand), var(--brand-2));
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  box-shadow: 0 8px 18px rgba(125,92,255,.26);
}
.btn-sm:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

.inline-form {
  display: inline;
  margin: 0;
}
.linklike {
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  opacity: .86;
  box-shadow: none;
  filter: none;
  letter-spacing: 0;
}
.linklike:hover {
  color: var(--brand-2);
  opacity: 1;
  transform: none;
  filter: none;
  text-decoration: none;
  box-shadow: none;
}

/* Alerts and text helpers */
.alert {
  padding: 13px 15px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-error {
  border: 1px solid rgba(255,107,107,.42);
  background: rgba(255,107,107,.1);
  color: var(--danger);
}
.alert-ok {
  border: 1px solid rgba(25,211,197,.42);
  background: rgba(25,211,197,.1);
  color: var(--brand-2);
}
.muted { color: var(--muted); }
.center { text-align: center; }
h2.page-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.25;
}
.card h3 {
  margin-top: 24px;
  color: #fff;
}
.card ul {
  padding-left: 20px;
  color: var(--text);
}

/* Login — 소셜은 아이콘 원형 버튼 한 줄로 담백하게 */
.social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 0;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: transform .15s ease, filter .15s ease;
}
.social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  text-decoration: none;
}
.social-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}
.social-kakao { background: #fee500; color: #191919; }
.social-naver { background: #03c75a; color: #fff; }
.social-google { background: #fff; }
.social-apple { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.login-divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 24px 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.login-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
}
.login-divider span {
  position: relative;
  padding: 0 10px;
  background: #18233f;
}

/* Footer */
.site-footer {
  position: relative;
  border-top: 0;
  background: #080d19;
  color: var(--muted);
  text-align: center;
  padding: 34px 20px;
  font-size: 13px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand) 30%, var(--brand-2) 70%, transparent);
}
.site-footer .foot-logo {
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.site-footer .biz-info {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.9;
  color: var(--muted);
  font-size: 12.5px;
}
.site-footer .biz-info p { margin: 2px 0; }
.site-footer .biz-info strong { color: var(--text); font-weight: 700; }
.site-footer .biz-info a { color: var(--muted); }
.site-footer .biz-info a:hover { color: var(--brand-2); }
.site-footer .sep { margin: 0 6px; opacity: 0.35; }
.site-footer .pending { opacity: 0.6; }
.site-footer .foot-links { margin-top: 8px; }
.site-footer .foot-links a { color: var(--brand-2); }
.site-footer .foot-copy { margin-top: 14px; opacity: 0.6; }
@media (max-width: 620px) {
  .site-footer .sep { display: none; }
  .site-footer .biz-info p { margin: 6px 0; }
}

/* 약관·개인정보처리방침 등 정적 법적 문서 */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 64px;
  color: var(--text);
}
.legal-title {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 6px;
}
.legal-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.legal-doc h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 30px 0 10px;
  color: var(--text);
}
.legal-doc p {
  color: var(--muted);
  line-height: 1.8;
  margin: 8px 0;
}
.legal-doc ol,
.legal-doc ul {
  color: var(--muted);
  line-height: 1.8;
  margin: 8px 0;
  padding-left: 22px;
}
.legal-doc li { margin: 4px 0; }
.legal-doc ol ol,
.legal-doc ol ul,
.legal-doc ul ul { margin: 6px 0; }

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero h1 { font-size: 54px; }
}

@media (max-width: 620px) {
  .site-header .logo {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .hero {
    min-height: 480px;
    padding: 70px 18px 86px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p.lead {
    font-size: 16px;
  }
  section.block {
    padding: 60px 0;
  }
  .sec-title {
    font-size: 29px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .shots-track .shot { flex-basis: 78vw; }   /* 모바일: 한 장 위주로 크게 흐르게 */
  /* FEATURES: 4개만 표시 + 더보기로 펼침 */
  .features:not(.expanded) .feature:nth-child(n+5) { display: none; }
  .features-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 18px 0 0;
    min-height: 46px;
    background: rgba(7, 10, 20, .5);
    border: 1px solid var(--line);
    color: var(--text);
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
  }
  .features-more:hover { border-color: rgba(25, 211, 197, .5); transform: none; filter: none; box-shadow: none; }
  .signup {
    flex-direction: column;
  }
  .social {
    grid-template-columns: 1fr;
  }
  .form-narrow {
    margin-top: 34px;
  }
  .card {
    padding: 24px;
  }
}

/* ============================================================
   게시판 (커뮤니티 · 목록 · 갤러리 · 글보기 · 댓글 · 작성)
   ============================================================ */
.board-page { padding: 54px 0 90px; }
.wrap-narrow { width: min(780px, calc(100% - 40px)); }

/* 2단 레이아웃: 좌측 게시판 사이드바(스티키) + 본문 */
.board-layout { display: grid; grid-template-columns: 190px 1fr; gap: 30px; align-items: start; }
.board-main { min-width: 0; }   /* 표 등 넓은 콘텐츠가 그리드를 밀지 않게 */
.board-nav { position: sticky; top: 80px; }
.board-nav-title { margin: 0 0 10px; padding-left: 4px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 900; }
.board-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.board-nav-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 13px; border-radius: var(--radius); border: 1px solid transparent; color: #cdd5f0; font-size: 14.5px; font-weight: 600; }
.board-nav-list a:hover { background: rgba(125,92,255,.1); text-decoration: none; }
.board-nav-list a.active { background: linear-gradient(180deg, rgba(125,92,255,.22), rgba(25,211,197,.1)); border-color: rgba(125,92,255,.42); color: #fff; }
.nav-chip { flex: 0 0 auto; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(255,209,102,.14); color: var(--gold); }
.nav-chip-mint { background: rgba(25,211,197,.14); color: var(--brand-2); }
@media (max-width: 860px) {
  /* 사이드바 → 가로 스크롤 탭바(한 줄, 넘치면 옆으로 스크롤).
     스티키 레이어 두지 않고 그냥 헤더 아래로 스크롤 → 라인 2줄·프로스트 중복 방지, 통일감. */
  .board-layout { display: block; }
  .board-nav {
    margin: 0 0 16px;
  }
  .board-nav-title { display: none; }
  .board-nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }
  .board-nav-list::-webkit-scrollbar { display: none; }
  .board-nav-list li { flex: 0 0 auto; }
  .board-nav-list a {
    justify-content: center;
    white-space: nowrap;
    padding: 8px 15px;
    font-size: 14px;
  }
  .board-nav-list a .nav-chip { display: none; }   /* 탭에선 칩 숨겨 깔끔하게 */
}

/* 공통 칩/뱃지 */
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(125, 92, 255, .12);
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  vertical-align: middle;
}
.chip-notice { border-color: rgba(255,209,102,.5); background: rgba(255,209,102,.12); color: var(--gold); }
.chip-cat    { border-color: rgba(25,211,197,.4); background: rgba(25,211,197,.1); color: var(--brand-2); }

/* 커뮤니티 허브 */
.board-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.hub-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26,38,69,.9), rgba(14,21,40,.96));
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease;
}
.hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px 100px at 100% 0%, rgba(25,211,197,.16), transparent 70%),
    linear-gradient(90deg, rgba(7,10,20,.12), rgba(7,10,20,.02));
  pointer-events: none;
}
.hub-card:hover { transform: translateY(-4px); border-color: rgba(25,211,197,.5); text-decoration: none; }
.hub-ico {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 58px;
  height: 58px;
  color: rgba(25,211,197,.64);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .62;
  pointer-events: none;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}
.hub-card:hover .hub-ico {
  color: #8ffaf1;
  opacity: .82;
  transform: translateY(-1px);
}
.hub-head-link,
.hub-recent {
  position: relative;
  z-index: 1;
}
.hub-head-link { display: block; color: inherit; }
.hub-head-link:hover { text-decoration: none; }
.hub-head h3 { margin: 0 0 6px; font-size: 18px; color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hub-desc { margin: 0 64px 14px 0; color: var(--muted); font-size: 13.5px; }
.hub-recent { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.hub-recent li { font-size: 13.5px; }
.hub-recent li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; color: #cdd5f0; }
.hub-recent li a:hover { color: var(--brand-2); text-decoration: none; }
.hub-recent li .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-recent li .c { flex: 0 0 auto; color: var(--brand-2); font-weight: 800; }
.hub-recent li.empty { color: var(--muted); padding: 4px 0; }

/* 목록 헤더 + 검색 */
.board-head { margin-bottom: 16px; }
.board-title { margin: 0; font-size: 28px; font-weight: 950; color: #fff; }
.board-desc { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
/* 툴바: 왼쪽 검색 · 오른쪽 글쓰기 (연결된 한 줄) */
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.board-search { display: flex; gap: 8px; margin: 0; width: min(360px, 100%); }
.board-search input { min-height: 42px; flex: 1 1 auto; min-width: 0; }
.board-search .btn-sm { flex: 0 0 auto; min-height: 42px; }
.board-toolbar > .btn { flex: 0 0 auto; }
.board-empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* 목록(표) */
.post-list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.post-list thead th { padding: 12px 10px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 800; text-align: center; }
.post-list th.c-title { text-align: left; }
.post-list tbody td { padding: 13px 10px; border-bottom: 1px solid rgba(44,57,97,.5); text-align: center; color: #cdd5f0; }
.post-list td.c-title { text-align: left; }
.post-list td.c-title a { color: var(--text); font-weight: 600; }
.post-list td.c-title a:hover { color: var(--brand-2); }
.post-list tr.pinned td { background: rgba(255,209,102,.05); }
.post-list tr:hover td { background: rgba(125,92,255,.06); }
.c-num { width: 70px; } .c-writer { width: 120px; } .c-date { width: 80px; } .c-view { width: 64px; }
.cmt-count { margin-left: 5px; color: var(--brand-2); font-weight: 800; font-size: 13px; }

/* 갤러리 */
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gcard { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(14,21,40,.9); color: var(--text); transition: transform .18s ease, border-color .18s ease; }
.gcard:hover { transform: translateY(-4px); border-color: rgba(125,92,255,.5); text-decoration: none; }
.gthumb { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(180deg, rgba(22,31,56,.8), rgba(11,17,32,.95)); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb .noimg { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.gmeta { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.gtitle { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsub { color: var(--muted); font-size: 12.5px; }

/* 페이지네이션 */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius); color: #cdd5f0; font-size: 14px; font-weight: 700; }
.pager a:hover { border-color: rgba(25,211,197,.5); text-decoration: none; }
.pager .cur { background: linear-gradient(92deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.pager .gap { border: 0; min-width: 20px; color: var(--muted); }

/* 글 보기 */
.crumb { margin-bottom: 14px; font-size: 13px; }
.crumb a { color: var(--brand-2); font-weight: 700; }
.post-view { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(25,36,65,.7), rgba(14,21,39,.85)); padding: 28px 30px; }
.post-view-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.post-view-title { margin: 0 0 12px; font-size: 25px; line-height: 1.35; color: #fff; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.post-meta { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.post-meta .pm-writer { color: #cdd5f0; font-weight: 700; }
.post-meta .pm-sep { opacity: .5; }
.post-images { margin: 22px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.post-images img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.post-body { padding: 22px 2px 6px; font-size: 15.5px; line-height: 1.85; color: #e2e7fa; word-break: break-word; }
.post-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--line); }
.btn-danger { background: linear-gradient(92deg, #ff6b6b, #ff4f9a) !important; color: #fff !important; box-shadow: 0 8px 18px rgba(255,79,154,.26); }

/* 댓글 */
.comments { margin-top: 34px; }
.comments-title { font-size: 17px; color: #fff; margin: 0 0 16px; }
.comments-title span { color: var(--brand-2); }
.comment-list { list-style: none; margin: 0 0 20px; padding: 0; }
.comment { padding: 15px 2px; border-bottom: 1px solid rgba(44,57,97,.5); }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cm-writer { font-weight: 700; color: #cdd5f0; font-size: 14px; }
.cm-date { color: var(--muted); font-size: 12.5px; }
.cm-del { margin-left: auto; }
.cm-del .linklike { color: var(--muted); font-size: 12px; }
.comment-body { color: #dde3f6; font-size: 14.5px; line-height: 1.75; word-break: break-word; }
.comments-empty { padding: 8px 0 20px; }
.comment-form { display: flex; gap: 10px; align-items: flex-start; }
.comment-form textarea { min-height: 70px; }
.comment-form .btn-sm { flex: 0 0 auto; min-height: 48px; padding: 0 18px; }

/* 작성 폼 */
.post-form textarea { min-height: 280px; }
.form-buttons { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.img-manage { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.img-chip { display: inline-flex; flex-direction: column; gap: 6px; width: 120px; margin: 0; }
.img-chip img { width: 120px; height: 84px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.img-del { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.img-del input { width: 16px; height: 16px; min-height: 0; accent-color: var(--danger); }
input[type=file] { width: 100%; padding: 12px; border: 1px dashed var(--line); border-radius: var(--radius); background: #0b1223; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .board-toolbar { flex-direction: column; align-items: stretch; }
  .board-search { width: 100%; }
  .board-toolbar > .btn { width: 100%; }
  .post-view { padding: 22px 18px; }
  .comment-form { flex-direction: column; }
  .comment-form .btn-sm { width: 100%; }

  /* 게시글 목록: 표 → 카드형(제목 한 줄 + 메타 한 줄)으로 */
  .post-list thead { display: none; }
  .post-list, .post-list tbody, .post-list tr, .post-list td { display: block; }
  .post-list tr {
    padding: 13px 2px 14px;
    border-bottom: 1px solid rgba(44, 57, 97, .5);
  }
  .post-list tr.pinned {
    padding-left: 11px;
    border-left: 3px solid var(--gold);
    background: rgba(255, 209, 102, .04);
  }
  /* 카드에선 셀 배경 제거 → tr 단위 배경만(고정글 골드 톤이 균일하게) */
  .post-list tbody td { padding: 0; border: none; background: none; text-align: left; width: auto; }
  .post-list tr:hover td,
  .post-list tr.pinned td { background: none; }
  .post-list td.c-num { display: none; }
  .post-list td.c-title {
    font-size: 15.5px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  .post-list td.c-title a { font-weight: 600; }
  /* 메타 한 줄: 글쓴이 · 날짜 · 조회 N */
  .post-list td.c-writer,
  .post-list td.c-date,
  .post-list td.c-view { display: inline; color: var(--muted); font-size: 12.5px; }
  .post-list td.c-date::before { content: " · "; }
  .post-list td.c-view::before { content: " · 조회 "; }
}
