/* ==========================================================================
   MAPLE REMAKE — 공개 프론트 공통 스타일
   2000년대 감성의 밝은 레트로 테마 · 파란 하늘 + 초록 언덕 + 주황 포인트
   디자인 계약 토큰 준수
   ========================================================================== */

:root {
  --sky: #7ec8f0;
  --sky-light: #c8ecff;
  --grass: #58b449;
  --grass-deep: #3e8e2f;
  --accent: #ff9a2e;
  --accent-deep: #e8590c;
  --cream: #fff6e3;
  --card: #fffdf6;
  --wood: #8a5a2b;
  --text: #3d2c17;
  --muted: #8a7a5f;
  --line: #e8d9bd;
  --ok: #3ba832;
  --danger: #e04f4f;

  --crimson: #c0281c;
  --ink: #171310;

  --nav-h: 68px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 0 rgba(138, 90, 43, 0.12), 0 14px 30px rgba(138, 90, 43, 0.16);
  --shadow-soft: 0 3px 0 rgba(138, 90, 43, 0.1), 0 8px 20px rgba(138, 90, 43, 0.12);
  --font-script: "Dancing Script", "Brush Script MT", "Segoe Script", "Snell Roundhand", "Apple Chancery", cursive;
  --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(--sky);
}

body {
  margin: 0;
  background-color: var(--sky);
  background-image: linear-gradient(180deg, var(--sky-light) 0%, var(--sky) 100%);
  background-repeat: no-repeat;
  background-size: 100% 1200px;
  color: var(--text);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", 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(--accent-deep);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

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

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

button {
  font-family: inherit;
}

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

::selection {
  background: rgba(255, 154, 46, 0.4);
}

.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: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.btn svg {
  flex: none;
}

.btn-primary {
  background: linear-gradient(180deg, #ffb45c 0%, var(--accent) 55%, #f47f12 100%);
  border-color: rgba(232, 89, 12, 0.55);
  color: var(--text);
  box-shadow: 0 4px 0 rgba(232, 89, 12, 0.45), 0 10px 22px rgba(232, 89, 12, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #f97b24 0%, var(--accent-deep) 100%);
  border-color: var(--accent-deep);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(180, 66, 6, 0.5), 0 14px 28px rgba(232, 89, 12, 0.35);
}

.btn-ghost {
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--text);
  box-shadow: 0 3px 0 rgba(138, 90, 43, 0.12);
}

.btn-ghost:hover {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
  background: #fff9ec;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(232, 89, 12, 0.2);
}

.btn-discord {
  background: #5a6cff;
  color: #f2f4ff;
  box-shadow: 0 4px 0 rgba(58, 72, 200, 0.5), 0 8px 18px rgba(90, 108, 255, 0.3);
}

.btn-discord:hover {
  color: #ffffff;
  background: #4a5cf2;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(58, 72, 200, 0.55), 0 12px 24px rgba(90, 108, 255, 0.4);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.08rem;
  border-radius: 13px;
}

.btn-sm {
  padding: 9px 18px;
  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(255, 246, 227, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 4px 14px rgba(138, 90, 43, 0.1);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-14deg) scale(1.08);
}

.brand-word {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-word em {
  font-style: normal;
  color: var(--crimson);
}

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

.nav-menu a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.97rem;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-menu a:hover {
  color: var(--accent-deep);
}

.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-menu a[aria-current="page"] {
  color: var(--accent-deep);
}

.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: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--accent-deep);
}

.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);
}

/* ---------- 히어로 ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 200px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #dff5ff 0%, var(--sky-light) 30%, #9dd7f4 68%, var(--sky) 100%);
}

/* 뭉게구름 (오리지널 SVG 데코) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.9;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 130'%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='70' cy='88' rx='54' ry='30'/%3E%3Cellipse cx='120' cy='58' rx='48' ry='34'/%3E%3Cellipse cx='172' cy='88' rx='52' ry='28'/%3E%3Cellipse cx='118' cy='96' rx='84' ry='26'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 130'%3E%3Cg fill='%23ffffff' fill-opacity='0.85'%3E%3Cellipse cx='80' cy='84' rx='50' ry='26'/%3E%3Cellipse cx='130' cy='62' rx='44' ry='30'/%3E%3Cellipse cx='170' cy='88' rx='46' ry='24'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 130'%3E%3Cg fill='%23ffffff' fill-opacity='0.7'%3E%3Cellipse cx='90' cy='86' rx='56' ry='24'/%3E%3Cellipse cx='140' cy='66' rx='42' ry='28'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 6% 14%, 82% 24%, 55% 8%;
  background-size: 300px auto, 240px auto, 190px auto;
  animation: cloud-drift 26s ease-in-out infinite alternate;
}

/* 해님 */
.hero::after {
  content: "";
  position: absolute;
  z-index: -4;
  top: 11%;
  right: 12%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fffbe8 0%, #ffe98f 46%, #ffc94d 100%);
  box-shadow: 0 0 70px 30px rgba(255, 224, 130, 0.55), 0 0 190px 90px rgba(255, 210, 96, 0.28);
}

.hero-ridge {
  position: absolute;
  z-index: -1;
  inset: auto 0 0 0;
  width: 100%;
  height: min(42vh, 400px);
  object-fit: cover;
  object-position: bottom;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
  animation: rise-in 0.9s var(--ease) both;
}

.hero-emblem {
  width: min(340px, 74vw);
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 8px 22px rgba(255, 255, 255, 0.65)) drop-shadow(0 4px 12px rgba(138, 90, 43, 0.18));
  animation: emblem-float 5s ease-in-out infinite;
}

.hero-eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(138, 90, 43, 0.3);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.75);
  color: var(--wood);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin-bottom: 14px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6), 0 10px 30px rgba(255, 255, 255, 0.35);
}

.hero-title .glow {
  background: linear-gradient(120deg, var(--accent-deep) 0%, var(--crimson) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: rgba(61, 44, 23, 0.88);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  max-width: 560px;
  margin: 0 auto 34px;
}

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

/* 서버 상태 뱃지 */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: rgba(255, 253, 246, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 3px 0 rgba(138, 90, 43, 0.1);
}

.status-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.status-badge.is-ok {
  color: var(--grass-deep);
  border-color: rgba(88, 180, 73, 0.55);
}

.status-badge.is-ok .dot {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(59, 168, 50, 0.5);
  animation: pulse-dot 2s var(--ease) infinite;
}

.status-badge.is-down {
  color: var(--accent-deep);
  border-color: rgba(232, 89, 12, 0.45);
}

.status-badge.is-down .dot {
  background: var(--accent-deep);
}

/* 흩날리는 단풍잎 · 반짝이 */
.hero-drift {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.drift-leaf {
  position: absolute;
  top: -8%;
  width: 30px;
  opacity: 0;
  animation: leaf-fall linear infinite;
}

.drift-leaf:nth-child(1) { left: 8%;  width: 26px; animation-duration: 13s; animation-delay: 0s; }
.drift-leaf:nth-child(2) { left: 24%; width: 18px; animation-duration: 17s; animation-delay: 4s; }
.drift-leaf:nth-child(3) { left: 41%; width: 32px; animation-duration: 15s; animation-delay: 8s; }
.drift-leaf:nth-child(4) { left: 63%; width: 20px; animation-duration: 18s; animation-delay: 2s; }
.drift-leaf:nth-child(5) { left: 78%; width: 28px; animation-duration: 14s; animation-delay: 6s; }
.drift-leaf:nth-child(6) { left: 91%; width: 16px; animation-duration: 19s; animation-delay: 10s; }

.ember {
  position: absolute;
  bottom: 4%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fffdf6;
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.75);
  opacity: 0;
  animation: ember-rise ease-in infinite;
}

.ember:nth-child(7)  { left: 12%; animation-duration: 9s;  animation-delay: 1s; }
.ember:nth-child(8)  { left: 30%; animation-duration: 11s; animation-delay: 5s;  width: 5px; height: 5px; }
.ember:nth-child(9)  { left: 52%; animation-duration: 8s;  animation-delay: 3s; }
.ember:nth-child(10) { left: 70%; animation-duration: 12s; animation-delay: 7s;  width: 4px; height: 4px; }
.ember:nth-child(11) { left: 86%; animation-duration: 10s; animation-delay: 0s;  width: 5px; height: 5px; }

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: rgba(255, 246, 227, 0.95);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-shadow: 0 1px 3px rgba(46, 100, 32, 0.6);
  animation: hint-bob 2.2s ease-in-out infinite;
}

/* ---------- 섹션 공통 ---------- */

.section {
  padding: 96px 0;
}

.section-alt {
  position: relative;
  padding-top: 130px;
  background: linear-gradient(180deg, rgba(88, 180, 73, 0.2) 0%, rgba(88, 180, 73, 0.05) 40%, rgba(88, 180, 73, 0) 100%);
}

/* 굽이치는 초록 언덕 구분선 */
.section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%2358b449' fill-opacity='0.28' d='M0 52 C240 8 480 8 720 40 C960 72 1200 70 1440 30 L1440 80 L0 80 Z'/%3E%3Cpath fill='%2358b449' fill-opacity='0.45' d='M0 66 C260 30 520 26 780 52 C1040 78 1240 74 1440 52 L1440 80 L0 80 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: block;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
}

.section-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 5px;
  margin: 16px auto 0;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.section-desc {
  color: var(--text);
  opacity: 0.8;
  max-width: 540px;
  margin: 14px auto 0;
}

/* ---------- 특징 카드 ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--grass), var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 154, 46, 0.6);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 154, 46, 0.2), rgba(88, 180, 73, 0.16));
  border: 1px solid rgba(232, 89, 12, 0.3);
  color: var(--accent-deep);
}

.feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text);
  opacity: 0.78;
  font-size: 0.93rem;
  margin: 0;
}

.feature-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(255, 154, 46, 0.16);
  border: 1px solid rgba(232, 89, 12, 0.22);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- 공지 (공통 리스트 · 크림 게시판 + 나무 헤더) ---------- */

.notice-panel {
  background: var(--card);
  border: 2px solid var(--line);
  border-top: 8px solid var(--wood);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

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

.notice-list li + li {
  border-top: 1px solid var(--line);
}

.notice-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 24px;
  color: var(--text);
  transition: background 0.2s var(--ease), padding-left 0.25s var(--ease);
}

.notice-row:hover {
  color: var(--text);
  background: rgba(255, 154, 46, 0.09);
  padding-left: 30px;
}

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

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

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

li.is-pinned .notice-row {
  background: linear-gradient(90deg, rgba(255, 154, 46, 0.16), rgba(255, 154, 46, 0.03));
  border-left: 4px solid var(--accent);
}

li.is-pinned .notice-row:hover {
  background: linear-gradient(90deg, rgba(255, 154, 46, 0.22), rgba(255, 154, 46, 0.06));
}

.chip {
  flex: none;
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 154, 46, 0.16);
  color: var(--accent-deep);
  border: 1px solid rgba(232, 89, 12, 0.3);
}

.chip-ok {
  background: rgba(88, 180, 73, 0.15);
  color: var(--grass-deep);
  border-color: rgba(62, 142, 47, 0.35);
}

.chip-danger {
  background: rgba(224, 79, 79, 0.12);
  color: #c73a3a;
  border-color: rgba(224, 79, 79, 0.35);
}

.chip-muted {
  background: rgba(138, 122, 95, 0.13);
  color: #6f6049;
  border-color: rgba(138, 122, 95, 0.3);
}

/* 고정 공지의 주황 핀 */
.chip-pin {
  background: var(--accent-deep);
  color: #ffffff;
  border-color: var(--accent-deep);
  box-shadow: 0 2px 0 rgba(180, 66, 6, 0.35);
}

.panel-note {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

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

.section-more {
  text-align: center;
  margin-top: 30px;
}

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

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

.skeleton-row .sk-chip { width: 56px; height: 20px; border-radius: 999px; }
.skeleton-row .sk-title { flex: 1; }
.skeleton-row .sk-date { width: 78px; }

/* ---------- 다운로드 ---------- */

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.download-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
}

.download-card h3 {
  font-size: 1.25rem;
}

.download-card > p {
  color: var(--text);
  opacity: 0.78;
  font-size: 0.94rem;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 18px;
}

.dl-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 13px;
  border: 2px solid var(--line);
  background: var(--cream);
  color: var(--text);
  box-shadow: 0 3px 0 rgba(138, 90, 43, 0.12);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.dl-btn:hover {
  color: var(--text);
  transform: translateY(-3px);
  border-color: var(--accent-deep);
  box-shadow: 0 6px 0 rgba(232, 89, 12, 0.22), 0 12px 24px rgba(232, 89, 12, 0.18);
}

.dl-btn .dl-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  box-shadow: 0 2px 0 rgba(180, 66, 6, 0.4);
}

.dl-btn strong {
  display: block;
  font-size: 1rem;
}

.dl-btn small {
  color: var(--muted);
  font-size: 0.82rem;
}

.download-note {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0;
}

.spec-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
}

.spec-card h3 {
  font-size: 1.25rem;
  margin-bottom: 18px;
}

/* ---------- 테이블 공통 ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--wood);
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 0.18s var(--ease);
}

tbody tr:hover {
  background: rgba(255, 154, 46, 0.08);
}

/* ---------- 랭킹 (크림 보드 + 나무 헤더) ---------- */

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

.rank-panel thead th {
  background: linear-gradient(180deg, #9a6835, var(--wood));
  color: var(--cream);
  border-bottom: 3px solid #6f4620;
}

.rank-no {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.9rem;
  background: #f3e8d2;
  color: #6f6049;
}

tr.rank-1 .rank-no {
  background: linear-gradient(135deg, #ffd76a, var(--accent-deep));
  color: #4a2503;
  box-shadow: 0 4px 12px rgba(232, 89, 12, 0.4);
}

tr.rank-2 .rank-no {
  background: linear-gradient(135deg, #eef2f8, #a7b2c4);
  color: #2c3547;
}

tr.rank-3 .rank-no {
  background: linear-gradient(135deg, #e0a370, #a05c33);
  color: #ffffff;
}

tr.rank-1 td { background: rgba(255, 154, 46, 0.1); }

.rank-name {
  font-weight: 700;
}

.rank-job {
  color: var(--muted);
}

.rank-level {
  font-weight: 700;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.rank-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 16px;
}

/* ---------- 푸터 (초록 언덕 위 잔디밭) ---------- */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--grass-deep) 0%, #2f6d24 100%);
  padding: 56px 0 40px;
  margin-top: 96px;
  color: #eaf6e6;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -46px;
  height: 47px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%2358b449' fill-opacity='0.55' d='M0 46 C240 6 480 4 720 34 C960 64 1200 62 1440 26 L1440 80 L0 80 Z'/%3E%3Cpath fill='%233e8e2f' d='M0 62 C260 26 520 24 780 48 C1040 72 1240 70 1440 48 L1440 80 L0 80 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.footer-brand .brand-word {
  color: #fff6e3;
  font-size: 1.5rem;
}

.footer-brand .brand-word em {
  color: #ffd9a0;
}

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

.footer-links a {
  color: #f4fbef;
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: #ffd9a0;
  text-decoration: underline;
}

.footer-legal {
  width: 100%;
  color: rgba(244, 251, 239, 0.85);
  font-size: 0.83rem;
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 24px;
  margin: 0;
}

.footer-legal strong {
  color: #ffffff;
}

.footer-legal a {
  color: #ffd9a0;
  font-weight: 700;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* ---------- 서브 페이지 공통 ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 110px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #dff5ff 0%, var(--sky-light) 45%, #a5dcf6 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 130'%3E%3Cg fill='%23ffffff' fill-opacity='0.85'%3E%3Cellipse cx='70' cy='88' rx='54' ry='30'/%3E%3Cellipse cx='120' cy='58' rx='48' ry='34'/%3E%3Cellipse cx='172' cy='88' rx='52' ry='28'/%3E%3Cellipse cx='118' cy='96' rx='84' ry='26'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 130'%3E%3Cg fill='%23ffffff' fill-opacity='0.7'%3E%3Cellipse cx='80' cy='84' rx='50' ry='26'/%3E%3Cellipse cx='130' cy='62' rx='44' ry='30'/%3E%3Cellipse cx='170' cy='88' rx='46' ry='24'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 8% 30%, 88% 46%;
  background-size: 210px auto, 160px auto;
}

/* 서브 페이지 하단 초록 언덕 */
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%2358b449' fill-opacity='0.5' d='M0 44 C240 6 480 4 720 32 C960 60 1200 58 1440 24 L1440 80 L0 80 Z'/%3E%3Cpath fill='%2358b449' d='M0 62 C260 26 520 24 780 48 C1040 72 1240 70 1440 46 L1440 80 L0 80 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.page-hero h1 {
  position: relative;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  margin-bottom: 8px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
  animation: rise-in 0.7s var(--ease) both;
}

.page-hero p {
  position: relative;
  color: rgba(61, 44, 23, 0.82);
  margin: 0;
  animation: rise-in 0.7s var(--ease) 0.08s both;
}

.page-body {
  padding: 56px 0 96px;
  background: linear-gradient(180deg, rgba(88, 180, 73, 0.14) 0%, rgba(88, 180, 73, 0) 320px);
}

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

.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: 2px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 2px 0 rgba(138, 90, 43, 0.1);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-btn:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  transform: translateY(-2px);
}

.page-btn.is-current {
  background: linear-gradient(180deg, #f97b24, var(--accent-deep));
  border-color: var(--accent-deep);
  color: #ffffff;
  pointer-events: none;
  box-shadow: 0 2px 0 rgba(180, 66, 6, 0.4);
}

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

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

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

.article-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-top: 8px solid var(--wood);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.article-head {
  padding: 32px 34px 24px;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 154, 46, 0.09), transparent);
}

.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;
}

/* ---------- 폼 (문의하기) ---------- */

.support-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  align-items: start;
}

.form-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-top: 8px solid var(--wood);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-soft);
}

.form-card h2 {
  font-size: 1.28rem;
  margin-bottom: 6px;
}

.form-card .form-desc {
  color: var(--text);
  opacity: 0.75;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.field .count {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.field .count.is-over {
  color: var(--danger);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(138, 122, 95, 0.65);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(255, 154, 46, 0.25);
}

.field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.7;
}

.field-hint {
  display: block;
  margin-top: 7px;
  font-size: 0.78rem;
  color: var(--muted);
}

.form-actions {
  margin-top: 24px;
}

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

.form-msg {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-msg.is-error {
  display: block;
  background: rgba(224, 79, 79, 0.1);
  border: 1px solid rgba(224, 79, 79, 0.4);
  color: #c22f2f;
}

.form-msg.is-ok {
  display: block;
  background: rgba(88, 180, 73, 0.12);
  border: 1px solid rgba(62, 142, 47, 0.4);
  color: var(--grass-deep);
}

/* 접수 완료 카드 */
.ticket-result {
  text-align: center;
  padding: 26px 0 6px;
  animation: rise-in 0.5s var(--ease) both;
}

.ticket-result .ticket-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.ticket-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.ticket-result .ticket-note {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 22px;
}

/* 조회 결과 */
.inquiry-view {
  margin-top: 26px;
  animation: rise-in 0.5s var(--ease) both;
}

.inquiry-box {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  padding: 20px 22px;
}

.inquiry-box .inq-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.inquiry-box .inq-title {
  font-weight: 900;
  font-size: 1.05rem;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.inquiry-box .inq-meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.inquiry-box .inq-body {
  font-size: 0.94rem;
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: anywhere;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.reply-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reply-box {
  border: 2px solid rgba(88, 180, 73, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(88, 180, 73, 0.1);
  padding: 16px 20px;
}

.reply-box .reply-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.reply-box .reply-who {
  font-weight: 700;
  color: var(--grass-deep);
  font-size: 0.88rem;
}

.reply-box .reply-date {
  color: var(--muted);
  font-size: 0.8rem;
}

.reply-box .reply-body {
  font-size: 0.93rem;
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.reply-empty {
  margin-top: 14px;
  padding: 16px 20px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

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

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

@keyframes emblem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(59, 168, 50, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(59, 168, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 168, 50, 0); }
}

@keyframes cloud-drift {
  from { transform: translateX(-18px); }
  to { transform: translateX(26px); }
}

@keyframes leaf-fall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg);
  }
  8% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(340deg);
  }
}

@keyframes ember-rise {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(1);
  }
  12% { opacity: 0.85; }
  60% { opacity: 0.55; }
  100% {
    opacity: 0;
    transform: translateY(-64vh) translateX(28px) scale(0.4);
  }
}

@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

@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: 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(255, 250, 238, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--line);
    box-shadow: var(--shadow);
    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 14px;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a:hover,
  .nav-menu a[aria-current="page"] {
    background: rgba(255, 154, 46, 0.14);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 76px 0;
  }

  .section-alt {
    padding-top: 110px;
  }
}

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

  .hero {
    padding-bottom: 150px;
  }

  .hero::after {
    width: 90px;
    height: 90px;
    top: 10%;
    right: 7%;
  }

  .hero-emblem {
    width: min(260px, 82vw);
  }

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

  .brand-word {
    font-size: 1.45rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-alt {
    padding-top: 96px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .notice-row {
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 15px 18px;
  }

  .notice-row:hover {
    padding-left: 18px;
  }

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

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

  .download-card,
  .spec-card,
  .form-card {
    padding: 26px 20px;
  }

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

  .field-row {
    grid-template-columns: 1fr;
  }

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