/* ==========================================================================
   라온 스톤에이지 (RAON StoneAge) 공식 홈페이지 & 가이드 포털 스타일시트
   Senior Game UI/UX Design System (Studio Production Edition)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 디자인 시스템 토큰 (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* 배경 & 베이스 (Dark Slate & Deep Stone Surfaces) */
  --bg-canvas: #090c0f;
  --bg-base: #0d1117;
  --bg-surface: #131820;
  --bg-card: #181f2a;
  --bg-card-hover: #1e2735;
  --bg-elevated: #232d3d;
  --bg-subtle: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(19, 24, 32, 0.85);
  --bg-glass-card: rgba(24, 31, 42, 0.75);

  /* 보더 & 구분선 (Crisp Hairline Borders) */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --border-brand: rgba(245, 158, 11, 0.35);
  --border-brand-hover: rgba(245, 158, 11, 0.65);

  /* 시그니처 앰버 & 골드 (Refined StoneAge Amber) */
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --amber-glow-strong: rgba(245, 158, 11, 0.45);

  /* 상태 & 서브 액센트 (Semantic Accents) */
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.28);

  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --sky-bg: rgba(14, 165, 233, 0.12);
  --sky-border: rgba(14, 165, 233, 0.28);

  --rose-500: #f43f5e;
  --rose-bg: rgba(244, 63, 94, 0.12);

  /* 텍스트 컬러 스케일 (Typography Hierarchy) */
  --text-white: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --text-gold: #fde68a;

  /* 폰트 패밀리 (Typography) */
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "Outfit", "Pretendard", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* 섀도우 & 입체감 (Elevation) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px -1px rgba(0, 0, 0, 0.5), 0 2px 6px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.65), 0 4px 12px -2px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 28px -4px var(--amber-glow);

  /* 인터랙션 타이밍 */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. 전역 리셋 & 기본 세팅 (Global Resets)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: -0.015em;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(245, 158, 11, 0.05), transparent 70%),
    linear-gradient(180deg, #090c0f 0%, #0d1117 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

img, svg {
  display: block;
}

.svg-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

.wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

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

/* 스킵 링크 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--amber-500);
  color: #000;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  left: 20px;
}

/* --------------------------------------------------------------------------
   3. GNB 유틸리티 바 (Global Utility Bar)
   -------------------------------------------------------------------------- */
.top-utility-bar {
  background: #06080a;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

.top-utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
}

.server-liveness {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.liveness-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
}
.liveness-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
}
.liveness-ring {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--emerald-400);
  opacity: 0.7;
  animation: pulse-ring 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
.liveness-indicator.indicator-amber .liveness-dot {
  background: var(--amber-400);
}
.liveness-indicator.indicator-amber .liveness-ring {
  border-color: var(--amber-400);
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.server-label {
  color: var(--text-secondary);
}
.server-badge {
  color: var(--amber-400);
  font-weight: 600;
}

.utility-nav-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.utility-item {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.utility-item:hover {
  color: var(--text-primary);
}

.utility-separator {
  width: 1px;
  height: 10px;
  background: var(--border-subtle);
}

.quick-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  transition: all var(--transition-fast);
}
.quick-search-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
  color: var(--text-primary);
}
.quick-search-trigger kbd {
  font-size: 10px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   4. 메인 헤더 & 네비게이션 (Global Navigation Header)
   -------------------------------------------------------------------------- */
.main-site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal);
}

.gnb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
}

/* 브랜드 로고 */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-symbol {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 2px 8px var(--amber-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-fast);
}
.site-logo:hover .logo-symbol {
  transform: translateY(-1px) scale(1.03);
}

.logo-meta {
  display: flex;
  flex-direction: column;
}

.logo-title {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text-white);
}
.logo-title strong {
  color: #fff;
}
.logo-title em {
  font-style: normal;
  font-size: 12px;
  color: var(--amber-400);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* 데스크톱 주 네비게이션 메뉴 */
.gnb-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gnb-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.gnb-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.gnb-link.current {
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.08);
}
.gnb-link.current::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
}

/* 네비게이션 드롭다운 */
.gnb-dropdown-container {
  position: relative;
}
.gnb-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition-fast);
  z-index: 100;
}
.gnb-dropdown-container:hover .gnb-dropdown-menu,
.gnb-dropdown-container:focus-within .gnb-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-entry {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.dropdown-entry:hover {
  background: var(--bg-elevated);
  color: var(--amber-300);
  transform: translateX(3px);
}
.dropdown-entry span.count-tag {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-display);
}

/* 헤더 우측 런처 CTA */
.gnb-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-game-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--amber-500);
  color: #080c10;
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all var(--transition-fast);
}
.btn-game-launcher:hover {
  background: var(--amber-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--amber-glow);
  color: #080c10;
}
.btn-game-launcher:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.mobile-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  place-items: center;
}

/* --------------------------------------------------------------------------
   5. 히어로 섹션 (Cinematic Game Showcase with Timeline Tabs)
   -------------------------------------------------------------------------- */
.hero-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-slider-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide-pane {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--transition-normal), transform 6s linear;
  transform: scale(1.03);
}
.hero-slide-pane.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slide-bg-1 {
  background-image:
    linear-gradient(90deg, rgba(9, 12, 15, 0.94) 0%, rgba(9, 12, 15, 0.78) 46%, rgba(9, 12, 15, 0.3) 100%),
    url("assets/web/stoneage-world-keyart.jpg");
  background-position: center 65%;
}

.slide-bg-2 {
  background-image:
    linear-gradient(90deg, rgba(9, 12, 15, 0.95) 0%, rgba(9, 12, 15, 0.8) 48%, rgba(9, 12, 15, 0.35) 100%),
    url("assets/web/stoneage-golos-teaser.png");
  background-position: center 30%;
}

.slide-bg-3 {
  background-image:
    linear-gradient(90deg, rgba(9, 12, 15, 0.94) 0%, rgba(9, 12, 15, 0.76) 46%, rgba(9, 12, 15, 0.3) 100%),
    url("assets/web/stoneage-world-story.jpg");
  background-position: center;
}

.slide-bg-4 {
  background-image:
    linear-gradient(90deg, rgba(9, 12, 15, 0.94) 0%, rgba(9, 12, 15, 0.8) 48%, rgba(9, 12, 15, 0.35) 100%),
    url("assets/web/stoneage-world-keyart.jpg");
  background-position: center 75%;
}

.hero-vignette-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(9, 12, 15, 0.5) 0%, transparent 15%, transparent 75%, var(--bg-canvas) 100%),
    radial-gradient(ellipse at 85% 40%, transparent 40%, rgba(9, 12, 15, 0.7) 100%);
  pointer-events: none;
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  padding: 70px 0 110px;
  max-width: 650px;
}

.hero-category-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-brand);
  border-radius: 4px;
  color: var(--amber-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-headline {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}
.hero-headline strong {
  color: var(--amber-400);
  font-weight: 800;
}

.hero-lead-text {
  margin: 0 0 28px;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  background: var(--amber-500);
  color: #080c10;
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: 0 4px 14px var(--amber-glow);
  transition: all var(--transition-fast);
}
.btn-hero-primary:hover {
  background: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--amber-glow);
  color: #080c10;
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  font-weight: 600;
  font-size: 14.5px;
  transition: all var(--transition-fast);
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-white);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* 실시간 데이터 지표 바 */
.hero-metric-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.metric-cell {
  display: flex;
  flex-direction: column;
}
.metric-figure {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.metric-figure small {
  font-size: 12px;
  color: var(--amber-400);
  margin-left: 2px;
}
.metric-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.metric-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
}

/* 히어로 타임라인 네비게이션 트랙 */
.hero-timeline-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: rgba(9, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.timeline-tab {
  position: relative;
  padding: 14px 18px;
  text-align: left;
  border-right: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}
.timeline-tab:last-child {
  border-right: 0;
}
.timeline-tab:hover {
  background: rgba(255, 255, 255, 0.03);
}

.timeline-tab-index {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.timeline-tab-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-tab.active .timeline-tab-label {
  color: var(--amber-400);
}

/* 액티브 진행 바 */
.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
}
.timeline-tab.active .timeline-progress {
  background: var(--border-brand);
}
.timeline-tab.active .timeline-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: var(--amber-500);
  animation: tab-progress 5.5s linear infinite;
}
@keyframes tab-progress {
  0% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* --------------------------------------------------------------------------
   6. 섹션 공통 헤딩 & 레이아웃 (Section Architecture)
   -------------------------------------------------------------------------- */
.section-block {
  padding: 60px 0;
  position: relative;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title-wrap h2 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-white);
}

.section-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.link-more-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.link-more-action:hover {
  color: var(--amber-400);
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   7. 포털 보드 & 공식 새소식 (Official News Portal Grid)
   -------------------------------------------------------------------------- */
.portal-news-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 20px;
}

/* 좌측 주요 포커스 배너 카드 */
.featured-article-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  min-height: 330px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.featured-article-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-2px);
}

.featured-poster-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(9, 12, 15, 0.1) 0%, rgba(13, 17, 23, 0.95) 80%),
    url("assets/web/stoneage-world-story.jpg");
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.featured-article-card:hover .featured-poster-bg {
  transform: scale(1.04);
}

.featured-meta-content {
  position: relative;
  z-index: 2;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.tag-pill.tag-notice { background: rgba(245, 158, 11, 0.15); color: var(--amber-300); border: 1px solid var(--border-brand); }
.tag-pill.tag-patch { background: var(--sky-bg); color: var(--sky-400); border: 1px solid var(--sky-border); }
.tag-pill.tag-guide { background: var(--emerald-bg); color: var(--emerald-400); border: 1px solid var(--emerald-border); }

.featured-headline {
  margin: 0 0 8px;
  font-size: 18.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.featured-excerpt {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.featured-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 우측 탭형 보드 컨테이너 */
.tabbed-board-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
}

.board-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.filter-tab-pills {
  display: flex;
  gap: 6px;
}

.filter-btn-pill {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.filter-btn-pill:hover {
  color: var(--text-white);
  background: var(--bg-subtle);
}
.filter-btn-pill.active {
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.1);
  font-weight: 700;
}

.board-articles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.article-row-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}
.article-row-item:last-child a {
  border-bottom: 0;
}
.article-row-item a:hover {
  background: var(--bg-subtle);
  transform: translateX(3px);
}

.article-title-text {
  flex: 1;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-row-item a:hover .article-title-text {
  color: var(--text-white);
}

.article-post-time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. 4대 종합 도감 코덱스 허브 (Encyclopedia 4 Databases)
   -------------------------------------------------------------------------- */
.encyclopedia-showcase-section {
  background: linear-gradient(180deg, transparent 0%, rgba(19, 24, 32, 0.4) 100%);
}

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

.codex-entry-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.codex-entry-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md), 0 0 16px var(--amber-glow);
}

.codex-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.codex-entry-card:hover .codex-card-bg {
  transform: scale(1.06);
  opacity: 0.45;
}

.bg-codex-pet {
  background-image:
    linear-gradient(180deg, rgba(13, 17, 23, 0.5) 0%, rgba(9, 12, 15, 0.95) 75%),
    url("assets/web/stoneage-world-keyart.jpg");
  background-position: center 60%;
}
.bg-codex-item {
  background-image:
    linear-gradient(180deg, rgba(13, 17, 23, 0.5) 0%, rgba(9, 12, 15, 0.95) 75%),
    url("assets/web/stoneage-world-story.jpg");
  background-position: center;
}
.bg-codex-ride {
  background-image:
    linear-gradient(180deg, rgba(13, 17, 23, 0.5) 0%, rgba(9, 12, 15, 0.95) 75%),
    url("assets/web/stoneage-golos-teaser.png");
  background-position: 25% center;
}
.bg-codex-hunt {
  background-image:
    linear-gradient(180deg, rgba(13, 17, 23, 0.5) 0%, rgba(9, 12, 15, 0.95) 75%),
    url("assets/web/stoneage-world-story.jpg");
  background-position: 70% center;
}

.codex-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
}

.codex-category-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

.codex-stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}
.codex-stat-number small {
  font-size: 12px;
  color: var(--amber-400);
  margin-left: 2px;
}

.codex-card-footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

.codex-card-footer h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-white);
}

.codex-card-footer p {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 38px;
}

.btn-open-codex {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.codex-entry-card:hover .btn-open-codex {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: #080c10;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. 인게임 퀘스트 도우미 쇼케이스 (In-Game Quest Helper)
   -------------------------------------------------------------------------- */
.quest-helper-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.quest-helper-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.flow-step-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  transition: border-color var(--transition-fast);
}
.flow-step-box:hover {
  border-color: var(--border-brand);
}

.step-marker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--amber-400);
  margin-bottom: 8px;
}

.flow-step-box h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
}

.flow-step-box p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.flow-step-box b {
  color: var(--amber-300);
}

/* 퀘스트 3대 원칙 요약 */
.verification-principles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.principle-box {
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--border-brand);
}
.principle-box.confirmed-box { border-left-color: var(--emerald-400); }
.principle-box.review-box { border-left-color: var(--amber-400); }
.principle-box.rule-box { border-left-color: var(--sky-400); }

.principle-box h5 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-white);
}
.principle-box p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   10. 지도 & 레벨별 사냥터 데이터 테이블 (Hunting Codex Table)
   -------------------------------------------------------------------------- */
.map-hunt-container {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
}

.map-ambient-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.map-ambient-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.2), var(--bg-card) 95%),
    url("assets/client-ui/map-window.png");
  background-size: 75% auto;
  background-position: right bottom;
  background-repeat: no-repeat;
  opacity: 0.35;
}

.map-ambient-info {
  position: relative;
  z-index: 2;
}
.map-ambient-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--text-white);
}
.map-ambient-info p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.map-level-badges {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.level-badge-pill {
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
}

/* 사냥터 데이터 테이블 */
.hunt-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.hunt-table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hunt-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  width: 200px;
}
.hunt-search-field input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-white);
  font-size: 12.5px;
  width: 100%;
}

.hunt-tier-tabs {
  display: flex;
  gap: 4px;
}
.tier-tab-btn {
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
}
.tier-tab-btn:hover {
  color: var(--text-white);
}
.tier-tab-btn.active {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-400);
}

.hunt-table-scroller {
  overflow-x: auto;
}

.hunt-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hunt-data-table th {
  padding: 9px 12px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
}
.hunt-data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.hunt-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.map-level-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--amber-400);
}

.map-id-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--sky-400);
  background: var(--sky-bg);
  padding: 2px 5px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   11. 게임 시스템 6대 코어 (Core Systems Grid)
   -------------------------------------------------------------------------- */
.systems-core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.system-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all var(--transition-fast);
}
.system-tile:hover {
  border-color: var(--border-brand);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.system-icon-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--border-brand);
  display: grid;
  place-items: center;
  color: var(--amber-400);
  font-size: 18px;
}

.system-tile-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
}
.system-tile-body p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.system-status-indicator {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald-400);
}

/* --------------------------------------------------------------------------
   12. 클라이언트 다운로드 & 시스템 사양 (Client Download Hub)
   -------------------------------------------------------------------------- */
.client-download-box {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-brand);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.download-info-pane h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
}
.download-info-pane p {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.download-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-client-pkg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--amber-500);
  color: #080c10;
  font-weight: 800;
  font-size: 14px;
  transition: all var(--transition-fast);
}
.btn-client-pkg:hover {
  background: var(--amber-400);
  transform: translateY(-1px);
}

.btn-client-patch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
}
.btn-client-patch:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.system-spec-table {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
}
.system-spec-table h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--amber-400);
  font-weight: 700;
}
.spec-key-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.spec-pair {
  font-size: 12px;
  color: var(--text-secondary);
}
.spec-pair strong {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. 커뮤니티 채널 (Community Channels)
   -------------------------------------------------------------------------- */
.community-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.channel-card {
  padding: 20px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}
.channel-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-2px);
}

.channel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.channel-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.icon-discord-color { background: rgba(88, 101, 242, 0.12); color: #5865f2; }
.icon-cafe-color { background: rgba(3, 199, 90, 0.12); color: #03c75a; }
.icon-chat-color { background: rgba(254, 229, 0, 0.12); color: #fee500; }

.channel-card h3 {
  margin: 0;
  font-size: 15px;
  color: var(--text-white);
}

.channel-card p {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.btn-channel-enter {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.channel-card:hover .btn-channel-enter {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: #080c10;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   14. 사이트 푸터 (Footer)
   -------------------------------------------------------------------------- */
.global-footer {
  background: #06080a;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 30px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.footer-copy p {
  margin: 6px 0 0;
  max-width: 460px;
  line-height: 1.6;
}

.footer-sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-sitemap a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-sitemap a:hover {
  color: var(--amber-400);
}

.footer-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.btn-top-anchor {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-top-anchor:hover {
  color: var(--amber-400);
}

/* --------------------------------------------------------------------------
   15. 모달 다이얼로그 (Search & Download Modals)
   -------------------------------------------------------------------------- */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 600px;
  width: calc(100% - 32px);
  color: var(--text-primary);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.dialog-inner-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.dialog-close-action {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: all var(--transition-fast);
}
.dialog-close-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
}

.dialog-heading h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.dialog-heading p {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 12px;
}
.search-input-box:focus-within {
  border-color: var(--amber-500);
}
.search-input-box input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 14px;
}

.search-matches-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.match-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}
.match-item-row:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--border-brand);
  transform: translateX(2px);
}
.match-title {
  font-weight: 600;
  color: #fff;
  font-size: 13.5px;
}
.match-category-pill {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-brand);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s var(--transition-fast);
}
.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   16. 퀘스트 전용 페이지 (`quests.html`) 스타일 (Quest Codex System)
   -------------------------------------------------------------------------- */
.quest-codex-hero {
  position: relative;
  min-height: 380px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.quest-hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(9, 12, 15, 0.95) 0%, rgba(9, 12, 15, 0.78) 50%, rgba(9, 12, 15, 0.35) 100%),
    url("assets/web/stoneage-world-story.jpg");
  background-size: cover;
  background-position: center;
}

.quest-hero-inner {
  position: relative;
  z-index: 2;
  padding: 50px 0;
  max-width: 650px;
}
.quest-hero-inner h1 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
}
.quest-hero-inner h1 strong {
  color: var(--amber-400);
}

/* 퀘스트 필터 툴바 */
.quest-codex-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.quest-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  min-width: 250px;
}
.quest-search-field input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.quest-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quest-filter-pill {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}
.quest-filter-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.quest-filter-pill.selected {
  background: var(--amber-500);
  color: #080c10;
  font-weight: 700;
}

/* 퀘스트 2열 그리드 */
.quest-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.quest-card-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  scroll-margin-top: 90px;
}
.quest-card-entry:hover {
  border-color: var(--border-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quest-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.quest-id-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--amber-400);
}

.status-indicator-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.status-pill-confirmed {
  background: var(--emerald-bg);
  color: var(--emerald-400);
  border: 1px solid var(--emerald-border);
}
.status-pill-review {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-300);
  border: 1px solid var(--border-brand);
}

.quest-card-entry h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.quest-desc-paragraph {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.quest-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.badge-tag-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.badge-tag-chip.chip-accent {
  color: var(--amber-300);
}

.quest-card-entry details {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}
.quest-card-entry summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.quest-card-entry summary::-webkit-details-marker {
  display: none;
}
.quest-collapsible-content {
  padding-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.quest-collapsible-content ol {
  margin: 4px 0 8px 16px;
  padding: 0;
}
.btn-open-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-400);
  font-weight: 700;
  font-size: 11.5px;
}
.btn-open-guide-link:hover {
  background: var(--emerald-400);
  color: #080c10;
}

/* --------------------------------------------------------------------------
   17. 크레딧 페이지 (`credits.html`)
   -------------------------------------------------------------------------- */
.credits-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.credit-article-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
}
.credit-article-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--amber-400);
}
.credit-article-box p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.credit-source-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--sky-400);
}

/* --------------------------------------------------------------------------
   18. 미디어 쿼리 (Responsive Grid Breakpoints)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .portal-news-grid {
    grid-template-columns: 1fr;
  }
  .codex-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-hunt-container {
    grid-template-columns: 1fr;
  }
  .client-download-box {
    grid-template-columns: 1fr;
  }
  .timeline-tab {
    padding: 10px 12px;
  }
}

@media (max-width: 860px) {
  .main-site-header {
    position: relative;
  }
  .gnb-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: grid;
  }
  .systems-core-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quest-helper-flow {
    grid-template-columns: 1fr;
  }
  .verification-principles-row {
    grid-template-columns: 1fr;
  }
  .community-channels-grid {
    grid-template-columns: 1fr;
  }
  .quest-cards-grid {
    grid-template-columns: 1fr;
  }
  .credits-showcase-grid {
    grid-template-columns: 1fr;
  }
  .footer-main-row {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .top-utility-bar {
    display: none;
  }
  .hero-content-wrap {
    padding: 40px 0 90px;
  }
  .hero-headline {
    font-size: 30px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-hero-primary, .btn-hero-ghost {
    justify-content: center;
  }
  .timeline-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-tab:nth-child(2) {
    border-right: 0;
  }
  .timeline-tab:nth-child(3), .timeline-tab:nth-child(4) {
    border-top: 1px solid var(--border-subtle);
  }
  .codex-grid-4 {
    grid-template-columns: 1fr;
  }
  .systems-core-grid {
    grid-template-columns: 1fr;
  }
  .hunt-table-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .hunt-search-field {
    width: 100%;
  }
  .quest-codex-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .quest-search-field {
    min-width: 0;
    width: 100%;
  }
}

/* ==========================================================================
   20. 모달 다이얼로그 전역 스타일 (Glassmorphic Dialog System)
   ========================================================================== */
dialog {
  border: 0;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 92vw;
  outline: none;
}

dialog::backdrop {
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-inner-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  width: 580px;
  max-width: 100%;
  box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  color: var(--text-primary);
}

.dialog-close-action {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 16px;
  transition: all var(--transition-fast);
}

.dialog-close-action:hover {
  color: var(--text-white);
  background: var(--bg-elevated);
  border-color: var(--border-light);
}

.dialog-heading {
  margin-bottom: 20px;
}

.dialog-heading h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin: 6px 0 6px;
}

.dialog-heading p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   21. 계정 센터 & 회원가입·조회 전용 스타일 (Account System Styles)
   ========================================================================== */
.account-hero-section {
  padding: 44px 0 36px;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.08), transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.account-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.account-breadcrumb a:hover {
  color: var(--amber-400);
}

.account-breadcrumb .sep {
  opacity: 0.4;
}

.account-breadcrumb .current {
  color: var(--text-secondary);
}

.account-hero-header {
  margin-bottom: 28px;
}

.account-page-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin: 8px 0 12px;
  line-height: 1.25;
}

.account-page-title strong {
  color: var(--amber-400);
}

.account-page-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  max-width: 680px;
}

/* 가입 3단계 가이드 트랙 */
.account-step-track {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 20px;
  max-width: 720px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.step-item.active .step-num {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: #0b0f17;
  border-color: transparent;
  box-shadow: 0 0 16px var(--amber-glow);
}

.step-meta {
  display: flex;
  flex-direction: column;
}

.step-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.step-item.active .step-name {
  color: var(--amber-300);
}

.step-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.step-arrow {
  color: var(--text-dim);
  font-size: 14px;
}

/* 계정 콘텐츠 레이아웃 */
.account-content-section {
  padding: 40px 0 80px;
}

.account-card-wrapper {
  max-width: 620px;
  margin: 0 auto;
}

/* 계정 폼 카드 */
.account-core-form,
.account-query-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.required-mark {
  color: var(--rose-500);
  font-weight: 700;
}

.optional-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: #080c10;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.form-control::placeholder {
  color: var(--text-dim);
}

/* 인풋 액션 결합 (아이디 중복확인) */
.input-with-action {
  display: flex;
  gap: 8px;
}

.input-with-action .form-control {
  flex: 1;
}

.btn-input-addon {
  padding: 0 16px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-input-addon:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--amber-500);
  color: var(--amber-300);
}

.btn-input-addon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 비밀번호 표시/숨김 래퍼 */
.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrap .form-control {
  padding-right: 42px;
}

.btn-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.btn-pw-toggle:hover,
.btn-pw-toggle.active {
  color: var(--amber-400);
}

/* 필드 하단 안내 & 피드백 */
.field-help {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

.field-feedback {
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
  line-height: 1.4;
}

.field-feedback.text-success {
  color: var(--emerald-400);
  font-weight: 600;
}

.field-feedback.text-danger {
  color: var(--rose-500);
  font-weight: 600;
}

/* 약관 동의 카드 */
.terms-agreement-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  margin: 26px 0 24px;
}

.custom-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--amber-500);
  cursor: pointer;
  margin-top: 2px;
}

.checkbox-label {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.5;
}

.terms-summary-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.terms-summary-box p {
  margin: 2px 0;
}

/* 알림 박스 (에러/성공) */
.account-alert-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 13.5px;
  line-height: 1.5;
}

.account-alert-box.alert-error {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fecdd3;
}

.account-alert-box.alert-error .svg-icon {
  color: var(--rose-500);
}

.account-alert-box.alert-success {
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: #a7f3d0;
}

.account-alert-box.alert-success .svg-icon {
  color: var(--emerald-400);
}

.alert-icon-wrap {
  flex-shrink: 0;
  margin-top: 2px;
}

/* 계정 폼 제출 버튼 */
.btn-account-submit {
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  border: 0;
  border-radius: 10px;
  color: #0b0f17;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-account-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
  filter: brightness(1.05);
}

.btn-account-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: #0b0f17;
  animation: spinner-rot 0.7s linear infinite;
}

@keyframes spinner-rot {
  to { transform: rotate(360deg); }
}

.form-footer-notice {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.link-highlight {
  color: var(--amber-400);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-highlight:hover {
  color: var(--amber-300);
}

/* 로딩 & 마감 상태 */
.account-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.signup-closed-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
}

.closed-icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.12);
  color: var(--rose-500);
  font-size: 24px;
}

.closed-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 14px;
}

.closed-reason-box {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.closed-sub-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.closed-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   22. 가입 완료 영수증 화면 (Receipt Display Box)
   ========================================================================== */
.receipt-success-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-brand);
  border-radius: 18px;
  padding: 38px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px var(--amber-glow);
  text-align: center;
}

.receipt-badge-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.success-icon-badge {
  color: var(--emerald-400);
  font-weight: 800;
}

.receipt-badge-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-400);
}

.receipt-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 8px;
}

.receipt-subhead {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 26px;
}

/* 10자리 영수증 코드 대형 박스 */
.receipt-display-box {
  background: #070a0e;
  border: 2px dashed var(--amber-500);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.receipt-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.receipt-code {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--amber-400);
  text-shadow: 0 0 20px var(--amber-glow-strong);
  margin-bottom: 14px;
}

.receipt-copy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-copy-receipt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-receipt:hover {
  background: var(--bg-elevated);
  border-color: var(--amber-400);
  color: var(--amber-300);
}

.copy-feedback-msg {
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-400);
}

/* 중요 안내 경고 박스 */
.receipt-critical-warning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
}

.receipt-critical-warning .warning-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.receipt-critical-warning strong {
  display: block;
  font-size: 14px;
  color: var(--amber-300);
  margin-bottom: 4px;
}

.receipt-critical-warning p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* 요약 메타 테이블 */
.receipt-summary-meta {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 26px;
  text-align: left;
}

.receipt-summary-meta .meta-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}

.receipt-summary-meta .meta-row:last-child {
  border-bottom: 0;
}

.receipt-summary-meta .label {
  color: var(--text-muted);
}

.receipt-summary-meta .val {
  color: var(--text-primary);
  font-weight: 600;
}

.receipt-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   23. 가입 신청 상태 조회 전용 스타일 (Status Inquiry Card)
   ========================================================================== */
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.receipt-input-style {
  letter-spacing: 0.1em;
  font-weight: 700;
}

.status-display-card {
  margin-top: 24px;
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.status-display-card.status-pending {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, var(--bg-surface) 100%);
}

.status-display-card.status-approved {
  border-color: rgba(14, 165, 233, 0.4);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.04) 0%, var(--bg-surface) 100%);
}

.status-display-card.status-created {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-surface) 100%);
}

.status-display-card.status-rejected,
.status-display-card.status-failed {
  border-color: rgba(244, 63, 94, 0.4);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.04) 0%, var(--bg-surface) 100%);
}

.status-card-header {
  margin-bottom: 20px;
}

.status-badge-row {
  margin-bottom: 10px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-300);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-approved {
  background: var(--sky-bg);
  color: var(--sky-400);
  border: 1px solid var(--sky-border);
}

.badge-created {
  background: var(--emerald-bg);
  color: var(--emerald-400);
  border: 1px solid var(--emerald-border);
}

.badge-rejected, .badge-failed {
  background: var(--rose-bg);
  color: var(--rose-500);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.status-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  margin: 0;
}

.status-meta-table {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
}

.status-meta-table .meta-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.status-meta-table .meta-label {
  color: var(--text-muted);
}

.status-meta-table .meta-value {
  color: var(--text-primary);
}

.status-body-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.status-body-text p {
  margin: 0 0 6px;
}

.status-sub-desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

.status-actions-group {
  display: flex;
  gap: 10px;
}

.status-guide-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.guide-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
}

.guide-col h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.guide-col p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .account-step-track {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .step-arrow {
    display: none;
  }
  .account-core-form,
  .account-query-card,
  .receipt-success-card {
    padding: 22px 18px;
  }
  .receipt-code {
    font-size: 26px;
  }
  .form-row-grid,
  .status-guide-box {
    grid-template-columns: 1fr;
  }
  .status-actions-group {
    flex-direction: column;
  }
  .dialog-inner-card {
    padding: 22px 18px;
  }
}

/* ==========================================================================
   24. 클라이언트 다운로드 모달 & 설치 안내 전용 스타일 (Download Modal)
   ========================================================================== */
.download-dialog-card {
  width: 660px;
  max-width: 100%;
}

.download-tab-nav {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 20px;
}

.download-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.download-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.download-tab-btn.active {
  color: var(--amber-300);
  background: var(--bg-surface);
  border-color: var(--border-brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.platform-size-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.download-tab-btn.active .platform-size-tag {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-400);
}

.download-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-brand);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

.download-cta-card .cta-meta h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
}

.download-cta-card .cta-meta p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.btn-direct-download {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 20px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.install-guide-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.install-guide-box h5 {
  margin: 0 0 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--amber-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.install-step-list {
  margin: 0 0 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.install-step-list li {
  padding-left: 4px;
}

.install-step-list li b {
  color: var(--text-primary);
}

.guide-tip {
  display: inline-block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--sky-400);
}

.guide-warn {
  display: inline-block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--rose-500);
  font-weight: 600;
}

.system-req-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.download-account-reminder {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
}

.download-account-reminder .reminder-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.download-account-reminder .reminder-text {
  flex: 1;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.download-account-reminder .reminder-text strong {
  display: block;
  color: var(--amber-300);
  margin-bottom: 2px;
  font-size: 12.5px;
}

.btn-reminder-signup {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: #0b0f17;
  background: var(--amber-400);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.btn-reminder-signup:hover {
  background: var(--amber-300);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .download-tab-nav {
    flex-direction: column;
  }
  .download-cta-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-direct-download {
    justify-content: center;
  }
  .download-account-reminder {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-reminder-signup {
    text-align: center;
  }
}
