/* ==========================================================================
   단풍의 전설 (LEGEND OF MAPLE) — 공개 프론트 공통 스타일 v2
   다크 게임 런처 테마: 인게임 배경 히어로 + 유리 패널 공지 + 주홍 포인트
   ========================================================================== */

:root {
  --bg: #191210;
  --bg-deep: #100b08;
  --panel: #241a14;
  --panel-soft: #2c211a;
  --line: #3a2b20;
  --line-soft: rgba(255, 255, 255, 0.1);

  --maple: #e8742c;
  --maple-bright: #ff8f45;
  --maple-deep: #c2531a;
  --crimson: #e05446;

  --text: #f2e7da;
  --muted: #c2ab94;
  --ok: #9fd98f;
  --danger: #ff8d82;

  --nav-h: 76px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 기본 ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  /* 번체 중국어(zh) 표시를 위해 Noto Sans TC 를 함께 둔다 — 한글은 KR 이 우선 적용됨 */
  font-family: "Noto Sans KR", "Noto Sans TC", "Apple SD Gothic Neo", "Malgun Gothic",
    "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  color: var(--text);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--maple-bright);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #ffb27d;
  text-decoration: underline;
}

.btn:hover,
.nav-menu a:hover,
.notice-row:hover,
.page-btn:hover,
.notice-more:hover,
.brand:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--maple-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(232, 116, 44, 0.45);
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  flex: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--maple-bright), var(--maple-deep));
  border-color: rgba(255, 143, 69, 0.55);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(120, 45, 0, 0.35);
  box-shadow: 0 6px 18px rgba(232, 116, 44, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffa262, var(--maple));
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(232, 116, 44, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  color: #ffffff;
  border-color: var(--maple-bright);
  background: rgba(232, 116, 44, 0.16);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.08rem;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.9rem;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- 상단 내비게이션 (다크 반투명) ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(16, 11, 8, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-menu a {
  position: relative;
  display: inline-block;
  padding: 8px 15px;
  color: rgba(242, 231, 218, 0.88);
  font-weight: 700;
  font-size: 0.97rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: #ffffff;
  background: rgba(232, 116, 44, 0.22);
}

.nav-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--maple-bright);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 언어 전환기 (내비 안, 모바일에선 드롭다운 안으로) ---------- */

.nav-lang {
  display: inline-flex;
  margin-left: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(242, 231, 218, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-btn:hover {
  color: #ffffff;
  background: rgba(232, 116, 44, 0.22);
}

.lang-btn.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, var(--maple-bright), var(--maple-deep));
  box-shadow: 0 2px 8px rgba(232, 116, 44, 0.35);
}

/* ---------- 번역 폴백 안내 배너 (공지 상세) ---------- */

.article-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 116, 44, 0.4);
  background: rgba(232, 116, 44, 0.12);
  color: #ffd0ad;
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-fallback[hidden] {
  display: none;
}

.article-fallback::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) center 4px / 2px 6px no-repeat,
    linear-gradient(currentColor, currentColor) center 12px / 2px 2px no-repeat;
  transform: rotate(180deg);
}

/* ---------- 히어로 (인게임 배경 + 좌 공지 / 우 로고·CTA) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 24px 72px;
  isolation: isolate;
  background: var(--bg);
  overflow: hidden;
}

/* 배경 이미지 레이어 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/img/hero-bg.png?v=1");
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}

/* 자연스러운 블렌딩: 상단(내비 가독성)·하단(페이지 배경으로 페이드)·좌우 비네트 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 11, 8, 0.55) 0%, rgba(16, 11, 8, 0) 30%, rgba(16, 11, 8, 0) 70%, rgba(16, 11, 8, 0.55) 100%),
    linear-gradient(180deg, rgba(16, 11, 8, 0.82) 0%, rgba(16, 11, 8, 0.3) 20%, rgba(16, 11, 8, 0.18) 55%, rgba(20, 14, 10, 0.72) 85%, var(--bg) 100%);
}

.hero-layout {
  position: relative;
  width: min(1280px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

/* 왼쪽: 공지사항 유리 패널 */
.notice-card {
  flex: 0 1 430px;
  min-width: 0;
  background: rgba(16, 11, 8, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 20px 22px 10px;
  box-shadow: var(--shadow);
  animation: rise-in 0.9s var(--ease) both;
}

.notice-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.notice-card-head h2 {
  font-size: 1.12rem;
  margin: 0;
}

.notice-card-head h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--maple-bright);
  margin-right: 9px;
  vertical-align: 2px;
}

.notice-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.notice-more:hover {
  color: var(--maple-bright);
}

/* 오른쪽: 로고 + 슬로건 + CTA */
.hero-inner {
  flex: 0 1 auto;
  max-width: 520px;
  min-width: 0;
  text-align: center;
  animation: rise-in 0.9s var(--ease) 0.08s both;
}

.hero-logo {
  width: min(72vw, 430px);
  height: auto;
  /* 슬로건 제거(2026-08-31)로 로고와 버튼이 붙지 않도록 여백 확보 */
  margin: 0 auto 30px;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- 고객센터 운영 안내 (히어로, 문의하기 버튼 아래) ---------- */

.support-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 460px;
  margin: 22px auto 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  /* 히어로 배경 사진 위라 가독성 확보용 반투명 어두운 판 */
  background: rgba(16, 11, 8, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
}

.support-note-icon {
  flex: none;
  margin-top: 2px;
  color: var(--maple-bright);
}

.support-note-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: rgba(242, 231, 218, 0.9);
  font-size: 0.83rem;
  line-height: 1.55;
}

.support-note-text strong {
  color: #ffffff;
  font-size: 0.87rem;
  font-weight: 700;
}

/* ---------- 공지 리스트 (히어로 패널 + 서브 페이지 공용) ---------- */

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notice-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.notice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  color: var(--text);
  transition: background 0.2s var(--ease);
  border-radius: 8px;
}

.notice-row:hover {
  color: #ffffff;
  background: rgba(232, 116, 44, 0.12);
}

.notice-row .n-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.94rem;
}

.notice-row .n-date {
  flex: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.notice-row .n-views {
  flex: none;
  color: var(--muted);
  font-size: 0.8rem;
}

/* 히어로 패널에서는 조회수 생략 (좁은 폭) */
.notice-card .notice-row .n-views {
  display: none;
}

li.is-pinned .notice-row {
  background: rgba(232, 116, 44, 0.1);
}

li.is-pinned .notice-row:hover {
  background: rgba(232, 116, 44, 0.18);
}

.chip {
  flex: none;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(232, 116, 44, 0.18);
  color: #ffb27d;
  border: 1px solid rgba(232, 116, 44, 0.45);
}

.chip-ok {
  background: rgba(126, 201, 111, 0.14);
  color: var(--ok);
  border-color: rgba(126, 201, 111, 0.4);
}

.chip-danger {
  background: rgba(224, 84, 70, 0.16);
  color: var(--danger);
  border-color: rgba(224, 84, 70, 0.45);
}

.chip-muted {
  background: rgba(194, 171, 148, 0.14);
  color: var(--muted);
  border-color: rgba(194, 171, 148, 0.35);
}

.chip-pin {
  background: var(--maple);
  color: #ffffff;
  border-color: var(--maple-bright);
}

.panel-note {
  padding: 34px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

.panel-note.is-error {
  color: var(--danger);
}

/* 로딩 스켈레톤 */
.skeleton-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 4px;
}

.skeleton-row .sk {
  height: 13px;
  border-radius: 7px;
  background: linear-gradient(90deg, #2b2019 25%, #382a20 50%, #2b2019 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton-row .sk-chip { width: 52px; height: 19px; border-radius: 999px; }
.skeleton-row .sk-title { flex: 1; }
.skeleton-row .sk-date { width: 70px; }

/* ---------- 푸터 ---------- */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 48px 0 36px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  height: 54px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: rgba(242, 231, 218, 0.85);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--maple-bright);
  text-decoration: underline;
}

.footer-legal {
  width: 100%;
  color: rgba(194, 171, 148, 0.8);
  font-size: 0.82rem;
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  margin: 0;
}

/* ---------- 서브 페이지 (공지 목록/상세) ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 52px;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 120% at 50% -20%, rgba(232, 116, 44, 0.22), transparent 60%),
    linear-gradient(180deg, #221712 0%, var(--bg) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  top: 34px;
  width: 220px;
  height: 220px;
  background: url("/img/leaf.svg?v=2") center/contain no-repeat;
  opacity: 0.1;
  transform: rotate(24deg);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  margin-bottom: 8px;
  animation: rise-in 0.7s var(--ease) both;
}

.page-hero p {
  color: var(--muted);
  margin: 0;
  animation: rise-in 0.7s var(--ease) 0.08s both;
}

.page-body {
  padding: 48px 0 96px;
}

/* 서브 페이지 공지 패널 */
.notice-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 6px 18px;
}

.notice-panel .notice-row {
  padding: 15px 8px;
}

.board-wrap {
  max-width: 880px;
  margin-inline: auto;
}

/* ---------- 공지 목록: 카테고리 필터 탭 ---------- */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.tab-btn:hover {
  border-color: var(--maple-bright);
  color: var(--maple-bright);
}

.tab-btn.is-active {
  background: linear-gradient(180deg, var(--maple-bright), var(--maple-deep));
  border-color: rgba(255, 143, 69, 0.55);
  color: #ffffff;
}

/* ---------- 페이지네이션 ---------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-btn:hover {
  border-color: var(--maple-bright);
  color: var(--maple-bright);
}

.page-btn.is-current {
  background: linear-gradient(180deg, var(--maple-bright), var(--maple-deep));
  border-color: rgba(255, 143, 69, 0.55);
  color: #ffffff;
  pointer-events: none;
}

.page-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.page-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  color: var(--muted);
}

/* ---------- 공지 상세 ---------- */

.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-head {
  padding: 30px 34px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.article-head h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 12px 0 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.87rem;
}

.article-body {
  padding: 32px 34px 40px;
  font-size: 0.99rem;
  line-height: 1.9;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* 공지 본문 마크다운 렌더링 (marked + DOMPurify 파이프라인 전용) */
.md-body h1,
.md-body h2,
.md-body h3,
.md-body h4 {
  margin: 1.4em 0 0.55em;
  line-height: 1.35;
}

.md-body > :first-child {
  margin-top: 0;
}

.md-body h1 { font-size: 1.5rem; }
.md-body h2 { font-size: 1.3rem; }
.md-body h3 { font-size: 1.12rem; }
.md-body h4 { font-size: 1rem; }

.md-body h1,
.md-body h2 {
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
}

.md-body ul,
.md-body ol {
  margin: 0 0 1.1em;
  padding-left: 1.6em;
}

.md-body li {
  margin-bottom: 0.3em;
}

.md-body blockquote {
  margin: 0 0 1.1em;
  padding: 10px 18px;
  border-left: 4px solid var(--maple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--panel-soft);
  color: var(--text);
}

.md-body blockquote > :last-child {
  margin-bottom: 0;
}

.md-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.md-body pre {
  margin: 0 0 1.1em;
  padding: 16px 18px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  line-height: 1.6;
}

.md-body pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.86rem;
}

.md-body table {
  border-collapse: collapse;
  margin: 0 0 1.1em;
  max-width: 100%;
  display: block;
  width: max-content;
  overflow-x: auto;
  font-size: 0.92rem;
}

.md-body th,
.md-body td {
  border: 1px solid var(--line);
  padding: 8px 14px;
  text-align: left;
}

.md-body th {
  background: var(--panel-soft);
  font-weight: 700;
}

.md-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 0 0 1.1em;
}

.md-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6em 0;
}

/* ---------- 애니메이션 ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 반응형 ---------- */

@media (max-width: 1024px) {
  /* 히어로: 세로 스택 — 로고/CTA 먼저, 공지 패널 아래 */
  .hero {
    padding-bottom: 56px;
  }

  .hero-layout {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
  }

  .hero-inner {
    order: 1;
  }

  .notice-card {
    order: 2;
    flex: 0 1 auto;
    width: 100%;
    max-width: 560px;
  }
}

@media (max-width: 960px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    margin: 0;
    background: rgba(16, 11, 8, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 13px 16px;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* 드롭다운 안에서는 언어 전환기를 한 줄 전체로 */
  .nav-lang {
    display: flex;
    margin: 8px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .lang-switch {
    width: 100%;
    justify-content: stretch;
  }

  .lang-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(1120px, 100% - 32px);
  }

  :root {
    --nav-h: 68px;
  }

  .brand-logo {
    height: 42px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-logo {
    width: min(80vw, 360px);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .support-note {
    margin-top: 18px;
    padding: 11px 13px;
  }

  .support-note-text {
    font-size: 0.8rem;
  }

  .notice-card {
    padding: 16px 16px 8px;
  }

  .notice-row {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .notice-row .n-title {
    flex-basis: 100%;
    order: 2;
    white-space: normal;
  }

  .notice-row .n-date,
  .notice-row .n-views {
    order: 3;
  }

  .tab-btn {
    padding: 9px 18px;
  }

  .article-head,
  .article-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .footer-logo {
    height: 46px;
  }
}
