/* Talkerz 홈페이지 — 앱(Talkerz Classic 다크) 디자인 언어로 통일.
   색 토큰 출처: Scripts/Client/lib/theme/tokens.dart 의 darkPalette (Figma d7NMEu4mW3NTqOc12InPUB). */

:root {
  color-scheme: dark;

  /* 배경 계열 */
  --bg: #15151a;
  --surface: #191920;
  --panel: #23232a;
  --panel-alt: #1c1c22;
  --chrome-lo: #101013;

  /* 행(테이블) 계열 */
  --row: #1d1d24;
  --row-alt: #212129;
  --row-sel: #2a1730;
  --row-hover: #26262f;

  /* 라인 */
  --line: #34343d;
  --line-soft: #2a2a31;

  /* 잉크 */
  --ink: #d7d4cb;
  --ink-mut: #8e8a80;
  --ink-dim: #615e57;
  --ink-inv: #f2e9f4;

  /* 포인트(딥 플럼) + 상태 */
  --accent: #52155a;
  --accent-hi: #a24fab;
  --accent-dim: #3a0f40;
  --live: #6fb36f;
  --good: #62a862;
  --danger: #d9534f;

  /* 채팅 닉네임 팔레트에서 가져온 보조색 */
  --gold: #e0a45a;
  --blue: #7fb3e0;
  --rose: #e08a8a;

  /* 그라디언트 크롬 스톱 */
  --titlebar-top: #2c2c33;
  --titlebar-bot: #1f1f25;
  --toolbar-top: #33333b;
  --toolbar-bot: #26262c;
  --btn-top: #33333b;
  --btn-bot: #262630;
  --field-top: #2b2b32;
  --field-bot: #202026;
  --abtn-top: #a24fab;
  --abtn-bot: #52155a;
  --abtn-deep: #431148;
  --tab-top: #2c2c33;
  --tab-bot: #222228;
  --section-top: #2a2a31;
  --section-bot: #222228;
  --footer-top: #26262c;
  --footer-bot: #1d1d22;

  --shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.5);

  /* 각진 모서리 — 클래식 윈도우 톤 */
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 6px;

  --font-body: "Nanum Gothic", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-brand: "Gothic A1", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 52px; /* 고정 툴바 높이 */
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: var(--ink-inv);
}

/* 앱풍 스크롤바 */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--panel-alt);
}
::-webkit-scrollbar-thumb {
  background: #43434c;
  border: 3px solid var(--panel-alt);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #55555f;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
  text-wrap: pretty;
}

h1,
h2 {
  font-family: var(--font-brand);
  font-weight: 800;
}

/* ── 툴바(사이트 헤더) ───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 11;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 52px;
  padding: 0 clamp(0.8rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--toolbar-top), var(--toolbar-bot));
  border-bottom: 1px solid var(--chrome-lo);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.05rem;
}

/* 로고(logo-v3.png)는 말풍선 형태라 세로가 약간 긴 정사각에 가깝다(636:682).
   가로 박스에 담으면 폭에 맞춰 작아지므로 정사각 박스를 쓴다. */
.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.desktop-nav a {
  padding: 0.42rem 0.78rem;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  color: var(--ink-mut);
  font-size: 0.88rem;
  font-weight: 700;
}

.desktop-nav a:hover {
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
  border-color: var(--chrome-lo);
  color: var(--ink);
}

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.3rem 0.9rem;
  background: linear-gradient(180deg, var(--abtn-top), var(--abtn-bot));
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-xs);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: var(--ink-inv);
  font-weight: 800;
  font-size: 0.85rem;
}

.header-action:hover {
  filter: brightness(1.1);
}

.menu-button {
  display: none;
  justify-self: end;
  width: 38px;
  height: 34px;
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-xs);
  color: var(--ink);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
}

/* ── 공통 버튼 ───────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-xs);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(180deg, var(--abtn-top), var(--abtn-bot));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--ink-inv);
}

.button.secondary {
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

/* 텀블벅 응원 버튼 — 페리윙클 블루(#7E8DFF) + 공식 워드마크 */
.button.support {
  gap: 0.45rem;
  background: linear-gradient(180deg, #8f9cff, #6a7bf2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.button.support img {
  display: block;
  height: 15px;
  width: auto;
}

/* 디스코드 브랜드 버튼 — 블러플(#5865F2) 세로 그라디언트 크롬 */
.button.discord {
  gap: 0.55rem;
  background: linear-gradient(180deg, #6b76f3, #4854d8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.button.discord svg {
  width: 22px;
  height: auto;
  flex-shrink: 0;
}

.button:hover {
  filter: brightness(1.08);
}

.button:active {
  filter: brightness(0.94);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* ── 히어로 ─────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 52px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(82, 21, 90, 0.28), transparent 65%),
    radial-gradient(ellipse 50% 45% at 12% 88%, rgba(162, 79, 171, 0.1), transparent 70%),
    var(--surface);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-hi);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.95;
}

.hero-lede {
  max-width: 900px;
  margin-bottom: 1.2rem;
  font-family: var(--font-brand);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 800;
}


.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

/* 해시태그 칩 — 앱의 인기 해시태그 칩 모양 */
.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
}

.hero-tags span {
  padding: 0.32rem 0.68rem;
  background: linear-gradient(180deg, var(--tab-top), var(--tab-bot));
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-sm);
  color: var(--ink-mut);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-tags span::before {
  content: "# ";
  color: var(--accent-hi);
  font-weight: 800;
}

/* ── 섹션 공통 ──────────────────────────────────────── */
.section {
  width: min(1120px, 92vw);
  margin: 0 auto;
  min-height: calc(100vh - 52px);
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line-soft);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section h2,
.contact-section h2 {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 0.9rem;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.15;
}

/* 앱 목록 헤더의 "| 제목" 플럼 바 */
.section h2::before,
.contact-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  border-radius: 1px;
}

.intro {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 3rem;
  align-items: center;
}

.intro > p,
.section-head p,
.contact-section p {
  color: var(--ink-mut);
  font-size: 1.02rem;
}

.section-head {
  max-width: 920px;
  margin-bottom: clamp(1.6rem, 3.5vh, 2.4rem);
}

.section-head.compact {
  max-width: 820px;
}

/* ── WHY — 채팅 목업 (앱 음성방 채팅 그대로) ─────────── */
.why-section {
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 4vh, 2.6rem);
}

.why-chat {
  width: min(780px, 100%);
  background: var(--surface);
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.why-chat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.7rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(180deg, var(--section-top), var(--section-bot));
  border-bottom: 1px solid var(--chrome-lo);
  border-left: 4px solid var(--accent-hi);
}

.why-chat-title {
  font-weight: 800;
  font-size: 1rem;
}

.why-chat-sub {
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.why-chat-count {
  margin-left: auto;
  color: var(--ink-mut);
  font-size: 0.82rem;
  white-space: nowrap;
}

.why-chat-count::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: var(--live);
  vertical-align: 1px;
}

.why-chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.1rem 1.2rem;
}

.why-chat-day {
  margin: 0 0 0.3rem;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.why-chat-day::before,
.why-chat-day::after {
  content: "────";
  margin: 0 0.7rem;
  opacity: 0.45;
  letter-spacing: -1px;
}

.why-msg {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.why-msg span {
  color: var(--ink);
}

.why-who {
  flex-shrink: 0;
  font-weight: 800;
}

/* 앱 채팅 닉네임 팔레트로 매핑 */
.c-violet { color: var(--accent-hi); }
.c-cyan { color: var(--blue); }
.c-coral { color: var(--rose); }

.why-chat-input {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(180deg, #26262c, #1f1f24);
  border-top: 1px solid var(--chrome-lo);
}

.why-chat-input span {
  flex: 1;
  padding: 0.5rem 0.8rem;
  background: linear-gradient(180deg, var(--field-top), var(--field-bot));
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-xs);
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.why-chat-input em {
  padding: 0.5rem 1.2rem;
  background: linear-gradient(180deg, var(--abtn-top), var(--abtn-bot));
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-xs);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--ink-inv);
  font-weight: 800;
  font-style: normal;
  font-size: 0.9rem;
}

/* 결론 문장 */
.why-thesis {
  margin: clamp(0.4rem, 2vh, 1.2rem) 0 0;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.3;
}

.why-thesis b {
  color: var(--accent-hi);
}

/* 세 기둥 — 앱 패널 3열 */
.why-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}

.why-pillar {
  --pillar: var(--accent-hi);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.2rem 1.3rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--chrome-lo);
  border-top: 3px solid var(--pillar);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

.why-pillar.p-violet { --pillar: var(--accent-hi); }
.why-pillar.p-cyan { --pillar: var(--blue); }
.why-pillar.p-coral { --pillar: var(--rose); }

.why-pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.why-ico {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  background: linear-gradient(180deg, var(--tab-top), var(--tab-bot));
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-sm);
  font-size: 1.4rem;
  line-height: 1;
}

.why-num {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--ink-dim);
}

.why-pillar h4 {
  margin: 0.15rem 0 0;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pillar);
}

.why-pillar p {
  margin: 0;
  color: var(--ink-mut);
  font-size: 0.94rem;
  line-height: 1.66;
}

.why-pillar p b {
  color: var(--ink);
  font-weight: 700;
}

/* ── 로드맵 — 앱 방 목록 테이블처럼 ─────────────────── */
.roadmap-section {
  width: min(1120px, 92vw);
}

.timeline-list {
  background: var(--surface);
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* 목록 헤더 행 */
.timeline-list::before {
  content: "일정 · 단계";
  display: block;
  padding: 0.45rem 1rem 0.45rem 2.6rem;
  background: linear-gradient(180deg, var(--section-top), var(--section-bot));
  border-bottom: 1px solid var(--chrome-lo);
  color: var(--ink-mut);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.timeline-list article {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: center;
  column-gap: 0.9rem;
  min-height: 44px;
  padding: 0.5rem 1rem 0.5rem 2.6rem;
  border-bottom: 1px solid var(--line-soft);
}

.timeline-list article:nth-child(even) {
  background: var(--row-alt);
}

.timeline-list article:nth-child(odd) {
  background: var(--row);
}

.timeline-list article:hover {
  background: var(--row-hover);
}

.timeline-list article:last-child {
  border-bottom: 0;
}

/* 상태 도트 */
.timeline-list article::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-radius: 999px;
  background: var(--accent-hi);
}

.timeline-list span {
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-list h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.timeline-list p {
  grid-column: 2;
  margin: 0.1rem 0 0;
  color: var(--ink-mut);
  font-size: 0.8rem;
  line-height: 1.35;
}

.stage-badge {
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.14rem 0.55rem;
  border: 1px solid rgba(111, 179, 111, 0.4);
  border-radius: var(--r-sm);
  background: rgba(111, 179, 111, 0.12);
  color: var(--live);
  font-size: 0.72rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* 완료 */
.timeline-list article.done::before {
  background: var(--good);
}

/* 취소 */
.timeline-list article.cancelled {
  opacity: 0.62;
}

.timeline-list article.cancelled::before {
  background: var(--ink-dim);
}

.timeline-list article.cancelled span,
.timeline-list article.cancelled h3 {
  color: var(--ink-mut);
}

.timeline-list article.cancelled h3 {
  text-decoration: line-through;
  text-decoration-color: var(--ink-dim);
}

.stage-badge.cancelled-badge {
  border-color: var(--line);
  background: rgba(142, 138, 128, 0.12);
  color: var(--ink-mut);
}

.cancel-icon {
  font-weight: 800;
}

/* 마일스톤 — 앱의 선택 행(플럼 틴트) */
.timeline-list article.milestone {
  background: var(--row-sel);
  box-shadow: inset 3px 0 0 var(--accent-hi);
}

.timeline-list article.milestone:hover {
  background: var(--row-sel);
  filter: brightness(1.12);
}

.timeline-list article.milestone::before {
  background: var(--accent-hi);
}

/* 미공개(???) */
.timeline-list article.mystery h3 {
  color: var(--ink-mut);
  letter-spacing: 0.08em;
}

.timeline-list article.mystery::before {
  background: transparent;
  border: 1px dashed var(--ink-dim);
}

/* 정식 런칭 */
.timeline-list article.launch {
  background: linear-gradient(90deg, var(--row-sel), rgba(224, 164, 90, 0.12));
  box-shadow: inset 3px 0 0 var(--gold);
}

.timeline-list article.launch::before {
  background: var(--gold);
}

.stage-badge.launch-badge {
  border-color: rgba(224, 164, 90, 0.5);
  background: rgba(224, 164, 90, 0.14);
  color: var(--gold);
}

/* 툴팁 — 앱 툴팁 테마(panelAlt + chromeLo) */
.timeline-list article[data-tooltip] {
  cursor: help;
}

.timeline-list article[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 2.6rem;
  bottom: calc(100% + 4px);
  transform: translateY(3px);
  width: max-content;
  max-width: 260px;
  padding: 0.5rem 0.7rem;
  background: var(--panel-alt);
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 6;
}

.timeline-list article[data-tooltip]:hover::after,
.timeline-list article[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── 베타 결과 ──────────────────────────────────────── */
.beta-section {
  width: min(1120px, 92vw);
}

.beta-section .section-head.compact {
  max-width: none;
}

.beta-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.beta-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-height: 120px;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

.beta-stat .check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(180deg, #2f5e2f, #244a24);
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-sm);
  color: #d8ecd8;
  font-size: 0.9rem;
  font-weight: 800;
}

.beta-stat strong {
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink);
}

.beta-done {
  align-self: flex-start;
  padding: 0.1rem 0.5rem;
  border: 1px solid rgba(111, 179, 111, 0.4);
  border-radius: var(--r-sm);
  background: rgba(111, 179, 111, 0.12);
  color: var(--live);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.beta-note {
  margin: 1.4rem 0 0;
  color: var(--ink-mut);
  font-size: 0.98rem;
}

.beta-note strong {
  color: var(--accent-hi);
}

/* ── 앨범 ───────────────────────────────────────────── */
.album-section {
  width: min(1120px, 92vw);
}

.gallery-label {
  margin: clamp(1.3rem, 3vh, 2rem) 0 0.8rem;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(180deg, var(--section-top), var(--section-bot));
  border: 1px solid var(--chrome-lo);
  border-left: 4px solid var(--accent-hi);
  border-radius: var(--r-xs);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.gallery-label:first-of-type {
  margin-top: 0;
}

.gallery-note {
  color: var(--ink-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.gallery {
  display: grid;
  gap: 0.8rem;
}

.gallery-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  background: var(--panel-alt);
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.gallery-item:hover {
  border-color: var(--accent-hi);
}

.gallery-item.is-empty img {
  display: none;
}

.gallery-item.is-empty {
  position: relative;
  min-height: 220px;
}

.gallery-item.is-empty::before {
  content: "사진 준비 중";
  display: grid;
  place-items: center;
  min-height: 220px;
  background: var(--panel);
  color: var(--ink-dim);
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* 라이트박스 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 4vw;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  cursor: zoom-out;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: max(1rem, 3vh);
  right: max(1rem, 3vw);
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-xs);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

/* ── 컨택트 ─────────────────────────────────────────── */
.contact-section {
  width: min(980px, 88vw);
  min-height: 60vh;
  margin: clamp(1.5rem, 4vh, 2.5rem) auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, var(--row-sel), var(--panel));
  border: 1px solid var(--accent-dim);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.contact-section p {
  max-width: 680px;
}

.contact-section .button {
  margin-top: 1rem;
}

/* ── 푸터 ───────────────────────────────────────────── */
.site-footer {
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem clamp(0.8rem, 3vw, 2rem) 1.3rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-dim);
  font-size: 0.85rem;
  scroll-snap-align: end;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand { font-weight: 700; color: var(--ink-mut); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.footer-links a { color: var(--ink-mut); }
.footer-links a:hover { color: var(--accent-hi); }
/* 전자상거래법 표시의무 블록 — 상호·대표자·주소·전화·사업자등록번호·통신판매업 신고번호 */
.footer-biz {
  margin: 0;
  line-height: 1.75;
  font-size: 0.78rem;
}
.footer-biz span { white-space: nowrap; }
.footer-biz span + span::before { content: "·"; margin: 0 0.45rem; color: var(--line-soft); }
.footer-biz a { color: inherit; }
/* 확정 전 값 자리 — 값이 오면 이 span 을 값으로 바꾼다 */
.footer-ph {
  border: 1px dashed var(--ink-dim);
  border-radius: 4px;
  padding: 0 0.35rem;
  color: var(--ink-mut);
}

/* ── 다운로드 페이지 ────────────────────────────────── */
.download-hero {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: calc(100vh - 52px - 64px - 4rem);
  padding: 2rem clamp(1rem, 5vw, 4rem);
}

/* 다이얼로그 패널처럼 */
.download-copy {
  width: min(680px, 100%);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--panel);
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
}

.download-copy h1 {
  max-width: 640px;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.02;
}

.download-copy p {
  max-width: 640px;
  color: var(--ink-mut);
  font-size: 0.98rem;
}

.download-copy .hero-actions {
  margin-top: 1.4rem;
}

/* ── 404 ────────────────────────────────────────────── */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.error-page {
  width: min(560px, 90vw);
  padding: 2.5rem;
  background: var(--panel);
  border: 1px solid var(--chrome-lo);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
}

.error-page h1 {
  max-width: 460px;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
}

.error-page p {
  color: var(--ink-mut);
}

/* ── 스크롤 리빌 ────────────────────────────────────── */
.timeline-list article,
.beta-stat,
.gallery-item,
.why-pillar {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 420ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 200ms ease,
    background-color 200ms ease,
    filter 200ms ease;
}

.timeline-list article.is-visible,
.beta-stat.is-visible,
.gallery-item.is-visible,
.why-pillar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .timeline-list article,
  .beta-stat,
  .gallery-item,
  .why-pillar {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 10;
    display: none;
    padding: 0.6rem;
    background: var(--panel);
    border-bottom: 1px solid var(--chrome-lo);
    box-shadow: var(--shadow-sm);
  }

  .mobile-nav.open {
    display: grid;
    gap: 0.15rem;
  }

  .mobile-nav a {
    padding: 0.7rem 0.8rem;
    border-radius: var(--r-xs);
    color: var(--ink-mut);
    font-weight: 700;
  }

  .mobile-nav a:hover {
    background: var(--row-hover);
    color: var(--ink);
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .why-pillars,
  .gallery-2 {
    grid-template-columns: 1fr;
  }

  .why-msg {
    flex-direction: column;
    gap: 0.1rem;
  }

  .beta-stats,
  .gallery-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-list article {
    grid-template-columns: 96px 1fr auto;
    column-gap: 0.6rem;
  }

  .timeline-list span {
    font-size: 0.78rem;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-lede {
    font-size: 1.45rem;
  }

  .hero {
    min-height: auto;
  }

  .section {
    width: 100%;
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .gallery-3 {
    grid-template-columns: 1fr;
  }

  .timeline-list::before {
    padding-left: 2.2rem;
  }

  .timeline-list article {
    grid-template-columns: 1fr auto;
    padding-left: 2.2rem;
  }

  .timeline-list span {
    grid-column: 1 / -1;
    order: -1;
  }

  .timeline-list h3 {
    grid-column: 1;
  }

  .timeline-list p {
    grid-column: 1;
  }

  .site-footer {
    display: grid;
    align-content: center;
    gap: 0.2rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  /* 사업자 정보 한 항목(특히 주소)이 폰 폭보다 길다 — nowrap 이면 푸터가 화면을 밀어
     페이지 전체가 가로로 넘친다(오른쪽이 잘려 보임, 2026-09-27). 폰에서는 항목 안에서도 줄바꿈. */
  .footer-biz span { white-space: normal; word-break: keep-all; }
}

/* ── 오픈 이벤트 + 오픈 알림 (#open) ─────────────────── */
/* 2026-09-27 /preorder 페이지를 홈 히어로 바로 아래로 흡수했다. 이 섹션만 골드가 포인트다.
   폰은 한 줄 기본값, 640px 이상에서 두 칸으로 펼친다. */
.open-event {
  scroll-snap-align: start;
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-bottom: 1px solid var(--line-soft);
}
.open-wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.open-event .eyebrow { margin: 0 0 0.8rem; color: var(--gold); font-size: 0.68rem; letter-spacing: 0.2em; }
.open-title {
  margin: 0 0 1.6rem; text-align: center; font-family: var(--font-brand);
  font-size: clamp(2.2rem, 8.6vw, 4rem); line-height: 1.2; letter-spacing: -0.04em;
}
.open-title em { font-style: normal; color: var(--gold); }

.open-sub { text-align: center; margin-bottom: 1.2rem; }
.open-sub h3 {
  margin: 0.3rem 0 0.5rem; font-family: var(--font-brand);
  font-size: 1.5rem; line-height: 1.4; letter-spacing: -0.03em;
}
.open-sub h3.gold { color: var(--gold); }
.open-date {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 0.7rem;
  padding: 0.45rem 0.85rem; border: 1px solid #6b5130; border-radius: 30px;
  background: rgba(224, 164, 90, 0.05); color: #f0c38c; font-size: 0.8rem; font-weight: 700;
}
.open-date i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* 선물 */
.open-gifts { padding: 1.5rem 0 1.9rem; }
.open-event .gift-grid { display: grid; gap: 0.75rem; }
.open-event .gift {
  position: relative; display: grid; grid-template-columns: 115px 1fr; column-gap: 1.05rem; align-items: center;
  padding: 1.2rem 1.25rem; border: 1px solid #514331; border-radius: 20px; overflow: hidden;
  background: linear-gradient(150deg, #2c271f, var(--panel-alt) 70%);
}
.open-event .gift-index { position: absolute; top: 0.75rem; right: 0.9rem; color: #a58e6d; font: 0.58rem monospace; letter-spacing: 0.2em; }
.open-event .gift-art {
  grid-row: 1 / 4; position: relative; display: flex; align-items: center; justify-content: center;
  height: 130px; background: radial-gradient(ellipse at center, rgba(224, 164, 90, 0.09), transparent 66%);
}
.open-event .gift-art .silver { width: 105px; height: 105px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.45)); }
.open-event .gift-art .qty {
  position: absolute; left: 62px; top: 82px; display: grid; place-items: center;
  width: max-content; min-width: 60px; height: 30px; padding: 0 0.8em;
  border-radius: 10px; border: 1px solid #c99b5c;
  background: linear-gradient(155deg, #493827, #2c241d 75%); color: #ffe0a6;
  box-shadow: 0 0 0 3px #27231f, inset 0 1px 0 rgba(255, 226, 179, 0.16), 0 5px 12px rgba(0, 0, 0, 0.3);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.035em;
  line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.open-event .gift-art.avatars { gap: 0; }
.open-event .gift-art .avatar { width: 65px; height: 120px; object-fit: contain; image-rendering: pixelated; }
.open-event .gift h4 { align-self: end; margin: 0.6rem 0 0.4rem; font-size: 1.2rem; letter-spacing: -0.02em; }
.open-event .gift .pill {
  display: block; width: max-content; margin: 0.3rem 0 0; padding: 0.2rem 0.5rem;
  border-radius: 5px; background: rgba(224, 164, 90, 0.08); color: #edc28c; font-size: 0.62rem; font-weight: 700;
}
.open-event .gift p { align-self: start; margin: 0; color: #b7afa2; font-size: 0.72rem; line-height: 1.85; }
.open-event .gift p strong { color: #f1cf9e; }

/* 알림 경로 */
.open-notify { padding: 1.9rem 0 0.5rem; border-top: 1px solid #343029; }
.open-event .store-grid { display: grid; gap: 0.85rem; }
.open-event .store {
  position: relative; display: flex; flex-direction: column;
  padding: 1.1rem; border: 1px solid #39363a; border-radius: 16px; background: var(--panel-alt);
}
.open-event .store.recommended { border-color: #987243; }
.open-event .store h4 { margin: 0 0 0.85rem; font-size: 1.05rem; line-height: 1.6; }
.open-event .store-head { display: flex; align-items: center; gap: 0.75rem; }
.open-event .store-logo {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px;
  border: 1px solid #44414a; border-radius: 11px; background: #27262d;
}
.open-event .store-logo svg { width: 22px; height: 22px; }
.open-event .store-logo.play svg { margin-left: 2px; }
.open-event .store-logo.apple { color: #f2efe9; }
.open-event .store-logo.apple svg { margin-top: -2px; }
.open-event .store-action {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin-top: auto;
  padding: 0.6rem 0.8rem; border: 1px solid #44414a; border-radius: 8px;
  background: #27262d; color: #ada7b0; font: inherit; font-size: 0.76rem; font-weight: 700; text-decoration: none;
}
.open-event .store-action:disabled { cursor: not-allowed; }
.open-event .store-action.active { border-color: #9d7643; background: #382d1e; color: #f3c78d; }
.open-event .store-action.active:hover { filter: brightness(1.08); }
.open-event .badge {
  position: absolute; top: -11px; right: 15px; padding: 0.1rem 0.55rem; border-radius: 20px;
  background: var(--gold); color: #261b0d; font-size: 0.62rem; font-weight: 800;
}

/* 디스코드 — 모바일은 스토어 카드 아래, PC 는 스크립트가 맨 위로 올린다(.recommended) */
.open-discord {
  position: relative; margin: 0.85rem 0 0; padding: 1.4rem 1.25rem;
  border: 1px solid #444466; border-radius: 16px; background: #20202e;
}
.open-discord.recommended { margin: 0 0 0.85rem; border-color: #987243; }
.open-event .discord-head { display: flex; align-items: center; gap: 0.75rem; }
.open-event .discord-head .eyebrow { margin: 0; color: #babaff; font-size: 0.72rem; }
.open-event .discord-logo {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px;
  border-radius: 11px; background: #5865f2; color: #ffffff;
}
.open-event .discord-logo svg { width: 24px; height: 18px; }
.open-event .discord-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 50px; margin-top: 1.1rem; padding: 0.75rem 1.1rem; border-radius: 9px;
  background: #5865f2; color: #ffffff; font-size: 0.82rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.open-event .discord-btn:hover { filter: brightness(1.08); }

@media (min-width: 640px) {
  .open-wrap { padding: 0 1.75rem; }
  .open-title { margin-bottom: 2.4rem; font-size: clamp(3rem, 6vw, 4rem); }
  .open-date { padding: 0.5rem 1.05rem; font-size: 0.88rem; }
  .open-sub h3 { font-size: 1.75rem; }
  .open-gifts { padding: 1.4rem 0 2.8rem; }
  .open-event .gift-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .open-event .gift { display: block; padding: 1.5rem 1.6rem; }
  .open-event .gift-index { position: static; display: block; font-size: 0.66rem; }
  .open-event .gift-art { height: 165px; margin: 0.4rem 0 0.5rem; }
  .open-event .gift-art .silver { width: 140px; height: 140px; }
  .open-event .gift-art .qty { left: calc(50% + 15px); top: 112px; min-width: 78px; height: 36px; font-size: 0.95rem; }
  .open-event .gift-art.avatars { gap: 0.9rem; }
  .open-event .gift-art .avatar { width: 112px; height: 144px; }
  .open-event .gift h4 { margin: 0 0 0.45rem; font-size: 1.45rem; }
  .open-event .gift .pill { display: inline-block; margin: 0 0 0 0.5rem; vertical-align: middle; }
  .open-event .gift p { font-size: 0.76rem; line-height: 1.7; }
  .open-notify { padding: 2.8rem 0 0.5rem; }
  .open-event .store-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .open-event .store { padding: 1.45rem 1.25rem 1.1rem; }
  .open-discord { display: flex; align-items: center; justify-content: space-between; gap: 1.9rem; padding: 1.7rem 1.75rem; }
  .open-event .discord-btn { margin-top: 0; justify-content: space-between; gap: 1.25rem; }
}

/* 얼리액세스 일정과 영상 제보 — 골드 이벤트 톤 */
.launch-eyebrow { text-align: center; }
.open-event .open-title { font-size: clamp(1.65rem, 5vw, 3rem); }
.launch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.launch-card { padding: 1.5rem; border: 1px solid #6b5130; border-radius: 16px; background: linear-gradient(150deg, #2c271f, var(--panel-alt) 70%); }
.launch-step { margin: 0 0 0.8rem; color: var(--gold); font-size: 0.8rem; font-weight: 800; }
.launch-card time { color: #f0c38c; font-weight: 800; }
.launch-card h3 { margin: 0.55rem 0 0; font-family: var(--font-brand); font-size: 1.6rem; }
.launch-hours { margin-left: 0.6rem; font-size: 0.85rem; color: #f0c38c; opacity: 0.8; white-space: nowrap; }
.launch-hours::before { content: "·"; margin-right: 0.6rem; }
.reset-notice { margin: 1rem 0 0; padding: 1rem 1.2rem; border-left: 3px solid var(--gold); background: rgba(224,164,90,0.05); color: var(--ink-mut); font-size: 0.85rem; }
.reset-notice strong { color: #f0c38c; }
.gift-note { color: var(--ink-mut); font-size: 0.88rem; }
.open-event .store-logo.windows { color: #8dcaff; }
.clips-section { padding: clamp(2.5rem, 6vh, 4rem) 0; border-bottom: 1px solid var(--line-soft); scroll-snap-align: start; }
.clips-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.clips-section .eyebrow, .clips-section h2 em { color: var(--gold); font-style: normal; }
.clips-section h2 { font-family: var(--font-brand); font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.4; }
.clips-section p { color: var(--ink-mut); }
.clips-inquiry { font-size: 0.8rem; }
.clips-callout { margin: 1.75rem 0 0; padding: 0.25rem 1.35rem; border-left: 3px solid var(--gold); background: linear-gradient(90deg, rgba(224,164,90,0.09), rgba(224,164,90,0) 90%); }
.clips-callout-item { padding: 1rem 0; }
.clips-callout-item + .clips-callout-item { border-top: 1px solid rgba(224,164,90,0.16); }
.clips-callout strong { display: block; margin-bottom: 0.5rem; color: #f6e7d2; font-size: 0.88rem; }
.clips-callout p { margin: 0; font-size: 0.83rem; line-height: 1.75; }
.clips-panel { min-width: 0; padding: 1.5rem; border: 1px solid #6b5130; border-radius: 16px; background: var(--panel-alt); }
.clips-panel h3 { margin: 0 0 1rem; }
.clip-specs { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.clip-specs li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.82rem; }
.clip-specs strong { flex-shrink: 0; color: #f0c38c; }
.clip-specs span { text-align: right; color: var(--ink-mut); }
.clip-submit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: 0.8rem 1rem; border-radius: 8px; background: var(--gold); color: #281d10; font-weight: 800; }
.clip-submit:hover { filter: brightness(1.08); }
.clip-submit:focus-visible, .store-action:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.clips-inquiry { margin: 1rem 0 0; }
.clips-inquiry a { color: #f0c38c; overflow-wrap: anywhere; }
@media (max-width: 980px) { .clips-layout { gap: 1.25rem; } }
@media (max-width: 640px) {
  .launch-grid, .clips-layout { grid-template-columns: minmax(0, 1fr); }
  .launch-card, .clips-panel { padding: 1.2rem; }
  .open-date { border-radius: 12px; font-size: 0.72rem; }
  .open-event .gift { grid-template-columns: 90px minmax(0, 1fr); gap: 0.65rem; padding: 1.15rem 0.8rem; }
  .open-event .gift-art .avatar { width: 45px; }
  .open-event .gift-art .silver { width: 85px; height: 85px; }
  .open-event .gift-art .qty { left: 32px; }
  .open-event .gift .pill { width: fit-content; max-width: 100%; }
}
/* 영상 제보 플랫폼 배지 */
.clip-platforms { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 0 0 1.35rem; }
.clip-platform { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.9rem 0.45rem 0.45rem; border: 1px solid var(--chrome-lo); border-radius: 12px; background: var(--panel-alt); color: var(--ink); font-size: 0.84rem; font-weight: 800; }
.clip-platform-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 9px; }
.clip-platform-icon svg { width: 24px; height: 24px; }
.clip-platform-icon.youtube { background: rgba(255,0,0,0.09); color: #ff3434; }
.clip-platform-icon.youtube svg { height: 19px; }
.clip-platform-icon.instagram { background: linear-gradient(145deg, #7338bc, #cd337d 55%, #e9a347); color: #fff; }
@media (max-width: 640px) { .clip-platforms { gap: 0.5rem; } .clip-platform { font-size: 0.8rem; } }

/* ── 배경음악 버튼 (2026-10-13) ───────────────────────── */
/* 첫 클릭·터치에서 음악이 켜지고, 이 버튼으로 끄면 다음 방문에도 꺼진 채다. 라이트박스(z 40) 아래. */
.bgm-toggle {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 0.9rem 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(28, 28, 34, 0.88);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  color: var(--ink-mut);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.bgm-toggle:hover { color: var(--ink); border-color: var(--ink-dim); }
.bgm-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.bgm-toggle.on { color: #f0c38c; border-color: #6b5130; }
.bgm-bars { display: inline-flex; align-items: flex-end; gap: 2px; width: 14px; height: 12px; }
.bgm-bars i { flex: 1; height: 45%; border-radius: 1px; background: currentColor; }
.bgm-bars i:nth-child(2) { height: 90%; }
.bgm-bars i:nth-child(3) { height: 65%; }
.bgm-toggle.on .bgm-bars i { animation: bgm-eq 0.9s ease-in-out infinite alternate; }
.bgm-toggle.on .bgm-bars i:nth-child(2) { animation-delay: -0.3s; }
.bgm-toggle.on .bgm-bars i:nth-child(3) { animation-delay: -0.6s; }
@keyframes bgm-eq { from { height: 25%; } to { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .bgm-toggle.on .bgm-bars i { animation: none; height: 80%; } }
@media (max-width: 640px) {
  .bgm-toggle { min-width: 40px; padding: 0.5rem; justify-content: center; }
  .bgm-toggle .bgm-label { display: none; }
}

/* 공식 디스코드 — 메뉴 끝에 묶는 A안 */
.site-header .header-discord {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #b98ec3;
}
.header-discord svg { width: 23px; height: 18px; flex: none; }
.header-discord::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 9px;
  height: 18px;
  width: 1px;
  background: #57505e;
}
.site-header .header-discord:hover { color: #e5c5ed; filter: none; }
.header-discord:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
@media (min-width: 981px) {
  .site-header:has(.header-discord) { column-gap: 1.1rem; }
  .site-header:has(.header-discord) .desktop-nav { justify-content: flex-end; }
}
@media (max-width: 640px) {
  .site-header:has(.header-discord) { gap: 0.6rem; }
  .header-discord::before { display: none; }
}

/* 지원 중인 플랫폼 강조 */
.hero-tags .platform-windows,
.hero-tags .platform-android { color: #c5afc9; font-weight: inherit; }

/* 다운로드 메뉴 — 스토어 섹션과 맞춘 차분한 골드 */
.desktop-nav .nav-download,
.mobile-nav .nav-download { color: #c8ad88; }
.desktop-nav .nav-download:hover,
.mobile-nav .nav-download:hover { color: #e0c49e; }
