/**
 * 축복서버 전용 비주얼 테마 — 소프트 인디고
 * — 시즌2(다크 헤더 · 금속 세리프 · 4단 평면 그리드)와 구분
 * — 본문 Pretendard · 히어로·브랜드 Noto Serif KR
 * — 포인트: deep #312e81 · mid #4f46e5 · soft #a5b4fc
 */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600&family=Noto+Serif+KR:wght@400;500;600;700&display=swap");

.theme-bless {
  --font-ui: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "Noto Serif KR", "Batang", "Apple Myungjo", serif;
  --font-hero-classic: "Cinzel", "Noto Serif KR", serif;
  --bless-deep: #312e81;
  --bless-mid: #4f46e5;
  --bless-soft: #a5b4fc;
  --bless-accent: #4f46e5;
  --bless-accent-hover: #4338ca;
  --bless-mist: #eef2ff;
  --bless-sky: #f8fafc;
  --bless-line: rgba(79, 70, 229, 0.14);
  --bless-shadow: 0 10px 40px rgba(49, 46, 129, 0.1);
  --max: 1080px;
  --main-grid-max: 1080px;

  --gold: var(--bless-accent);
  --gold-hover: var(--bless-accent-hover);
  --gold-light: #a5b4fc;
  --gold-soft: rgba(79, 70, 229, 0.1);
  --header: rgba(255, 255, 255, 0.9);
  --bg: var(--bless-sky);
  --line: var(--bless-line);
}

.theme-bless,
.theme-bless body {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(165, 180, 252, 0.35), transparent 58%),
    linear-gradient(180deg, #eef2ff 0%, #f8fafc 38%, #f8fafc 100%);
  background-attachment: fixed;
}

/* ===== HEADER — 라이트 글래스 ===== */
.theme-bless .site-header {
  background: var(--header);
  border-bottom: 1px solid var(--bless-line);
  box-shadow: 0 4px 24px rgba(49, 46, 129, 0.06);
}

.theme-bless .header-inner {
  height: 64px;
}

.theme-bless .brand-name-line {
  font-size: 1.85rem;
}

.theme-bless .brand-gold,
.theme-bless .brand-white {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--bless-deep);
  filter: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.theme-bless .brand-white {
  color: var(--bless-mid);
  margin-left: 1px;
}

.theme-bless .brand-season:empty {
  display: none;
}

.theme-bless .nav-link {
  padding: 20px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: -0.02em;
}

.theme-bless .nav-link:hover,
.theme-bless .nav-item:hover > .nav-link,
.theme-bless .nav-link.active {
  color: var(--bless-accent);
}

.theme-bless .nav-link.active {
  box-shadow: inset 0 -2px 0 var(--bless-accent);
}

.theme-bless .nav-dropdown {
  background: #fff;
  border: 1px solid var(--bless-line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--bless-shadow);
}

.theme-bless .nav-dropdown a {
  border-radius: 8px;
  color: #475569;
}

.theme-bless .nav-dropdown a:hover {
  background: var(--bless-mist);
  color: var(--bless-deep);
}

.theme-bless .btn-download {
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-family: var(--font-ui);
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.theme-bless .btn-download:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.theme-bless .nav-toggle {
  border-color: var(--bless-line);
  color: var(--bless-deep);
}

/* ===== HERO — 배경 이미지 + 소프트 오버레이 ===== */
.theme-bless .hero {
  height: clamp(320px, 50vh, 520px);
  background: #312e81;
}

.theme-bless .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px),
    radial-gradient(circle at 85% 35%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px);
  background-size: 56px 56px, 40px 40px, 72px 72px;
  opacity: 0.7;
}

.theme-bless .hero-media {
  background: transparent;
}

.theme-bless .hero-bg-img {
  opacity: 1;
  filter: saturate(1.05) brightness(0.92);
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.02);
}

.theme-bless .hero-overlay {
  background:
    linear-gradient(180deg, rgba(30, 27, 75, 0.38) 0%, rgba(49, 46, 129, 0.22) 42%, rgba(49, 46, 129, 0.74) 100%),
    radial-gradient(ellipse 85% 60% at 50% 35%, rgba(79, 70, 229, 0.14), transparent 68%),
    linear-gradient(90deg, rgba(30, 27, 75, 0.42) 0%, transparent 22%, transparent 78%, rgba(30, 27, 75, 0.42) 100%);
}

.theme-bless .hero-status {
  z-index: 2;
}

.theme-bless .hero-title-brand {
  font-family: var(--font-display);
  font-size: clamp(4.1rem, 12vw, 7.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  filter: none;
  gap: 0.08em;
}

.theme-bless .hero-title-brand span,
.theme-bless .hero-title-brand #hero-name-white {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 24px rgba(30, 27, 75, 0.4);
}

.theme-bless .hero-title-brand #hero-name-white {
  font-weight: 600;
  opacity: 0.94;
}

.theme-bless .hero-subtitle {
  margin-top: clamp(16px, 2.8vw, 28px);
}

.theme-bless .hero-divider-gem {
  display: none;
}

.theme-bless .hero-divider-line {
  width: min(48px, 10vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.theme-bless .hero-classic-text {
  font-family: var(--font-hero-classic);
  font-size: clamp(1.35rem, 3.5vw, 1.95rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(30, 27, 75, 0.35);
  text-transform: uppercase;
}

.theme-bless .hero-classic-text::before {
  content: "✦ ";
  opacity: 0.75;
}

.theme-bless .hero-classic-text::after {
  content: " ✦";
  opacity: 0.75;
}

.theme-bless .hero-tagline {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.2vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 14px rgba(30, 27, 75, 0.35);
}

.theme-bless .hero-status-pill {
  margin-top: 16px;
  padding: 8px 16px;
  font-size: 13px;
  font-family: var(--font-ui);
  color: var(--bless-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px rgba(30, 27, 75, 0.12);
}

.theme-bless .hero-meta {
  color: rgba(255, 255, 255, 0.75);
  text-shadow: none;
  font-size: 12px;
}

/* ===== MAIN — 상단 공지/업데이트 ===== */
.theme-bless .main-grid {
  max-width: var(--main-grid-max);
  padding: 28px 20px 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: stretch;
}

.theme-bless .main-grid > .panel:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.theme-bless .main-grid > .panel:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.theme-bless .main-grid.main-grid--news-only {
  grid-template-rows: auto;
}

.theme-bless .main-grid .market-panel {
  grid-column: 1;
  grid-row: 2;
}

.theme-bless .main-grid .rank-panel {
  grid-column: 2;
  grid-row: 2;
}

/* 시세·랭킹 — 좌우 세로 롱 리스트 */
.theme-bless .main-grid .market-panel,
.theme-bless .main-grid .rank-panel {
  min-height: 520px;
}

.theme-bless .main-grid .market-panel .panel-body,
.theme-bless .main-grid .rank-panel .panel-body-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.theme-bless .main-grid .market-panel .market-list {
  flex: 1;
  min-height: 400px;
  max-height: 520px;
  overflow-y: auto;
}

.theme-bless .main-grid .rank-panel .panel-body-scroll {
  flex: 1;
  min-height: 400px;
  max-height: 520px;
}

.theme-bless .main-grid .market-panel .market-list li {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 11px 14px;
}

.theme-bless .main-grid .market-panel .market-list .market-item-name,
.theme-bless .main-grid .market-panel .market-list .market-name {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
  word-break: keep-all;
}

.theme-bless .main-grid .market-panel .market-list .market-item-tags {
  flex-wrap: wrap;
}

.theme-bless .main-grid .market-panel .market-list .market-price {
  margin-left: 0;
  align-self: flex-end;
  font-size: 13px;
}

.theme-bless .main-grid .rank-panel .rank-list li {
  padding: 11px 14px;
}

.theme-bless .main-grid .rank-panel .rank-panel-bonus {
  white-space: normal;
  line-height: 1.4;
  font-size: 11px;
}

.theme-bless .panel {
  min-height: 260px;
  border: 1px solid var(--bless-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(49, 46, 129, 0.05);
  background: #fff;
}

.theme-bless .panel-head {
  justify-content: flex-start;
  padding: 14px 18px 12px;
  text-align: left;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.08) 0%, transparent 72%);
  border-bottom: 1px solid var(--bless-line);
}

.theme-bless .panel-head h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--bless-deep);
  letter-spacing: -0.02em;
}

.theme-bless .panel-head .more {
  right: 14px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--bless-accent);
  background: #fff;
  border: 1px solid var(--bless-line);
  border-radius: 999px;
}

.theme-bless .panel-head .more:hover {
  background: var(--bless-mist);
  border-color: var(--bless-soft);
  box-shadow: none;
}

.theme-bless .list-rows li a {
  padding: 10px 18px;
  font-size: 13px;
  border-bottom-color: #e0e7ff;
}

.theme-bless .list-rows li a:hover {
  background: #eef2ff;
}

/* ===== GUIDE SHORTCUTS ===== */
.theme-bless .guide-shortcuts-bar {
  background: transparent;
  border: none;
  margin-top: 4px;
}

.theme-bless .guide-shortcuts-inner {
  max-width: var(--main-grid-max);
  padding: 8px 20px 36px;
  gap: 10px;
}

.theme-bless .guide-shortcut-icon {
  border: none;
  background: #fff;
  box-shadow: 0 2px 12px rgba(49, 46, 129, 0.06);
  border-radius: 16px;
}

.theme-bless .guide-shortcut-label {
  font-family: var(--font-ui);
  font-size: 12px;
  color: #6b7280;
}

/* ===== FOOTER ===== */
.theme-bless .site-footer {
  background: linear-gradient(180deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #6b7280;
  border-top: 1px solid var(--bless-line);
  margin-top: 0;
}

.theme-bless .footer-links a {
  color: #475569;
}

.theme-bless .footer-links a:hover {
  color: var(--bless-accent);
}

/* ===== 서브페이지 공통 ===== */
.theme-bless .page-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--bless-deep);
  letter-spacing: -0.03em;
}

.theme-bless .content-card {
  border: 1px solid var(--bless-line);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(49, 46, 129, 0.05);
}

.theme-bless .content-card h2 {
  font-family: var(--font-display);
  border-bottom-color: var(--bless-soft);
  color: var(--bless-deep);
}

/* ===== 가이드 ===== */
.theme-bless .guide-hero {
  background: linear-gradient(180deg, #fff 0%, var(--bless-mist) 100%);
  border: 1px solid var(--bless-line);
  border-radius: 16px;
  box-shadow: var(--bless-shadow);
}

.theme-bless .guide-hero-eyebrow {
  font-family: var(--font-ui);
  letter-spacing: 0.2em;
  color: var(--bless-mid);
}

.theme-bless .guide-hero-title {
  font-family: var(--font-display);
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}

.theme-bless .guide-layout {
  border-radius: 16px;
  border: 1px solid var(--bless-line);
  box-shadow: var(--bless-shadow);
}

.theme-bless .guide-sidebar {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border-right: 1px solid var(--bless-line);
}

.theme-bless .guide-sidebar-head {
  background: var(--bless-mist);
  border-bottom-color: var(--bless-line);
}

.theme-bless .guide-sidebar-label,
.theme-bless .guide-nav-label {
  font-family: var(--font-ui);
  color: var(--bless-mid);
  letter-spacing: 0.08em;
}

.theme-bless .guide-nav-group + .guide-nav-group {
  border-top-color: var(--bless-line);
}

.theme-bless .guide-nav a {
  font-family: var(--font-ui);
}

.theme-bless .guide-nav a:hover,
.theme-bless .guide-nav a.is-active {
  background: rgba(79, 70, 229, 0.1);
  color: var(--bless-deep);
}

.theme-bless .guide-menu-toggle {
  font-family: var(--font-ui);
  border-color: var(--bless-line);
  color: var(--bless-deep);
}

/* ===== 다운로드 · 아이템 히어로 ===== */
.theme-bless .download-hero,
.theme-bless .item-hero {
  border-radius: 16px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  background:
    linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #818cf8 100%);
}

.theme-bless .download-hero-eyebrow,
.theme-bless .item-hero-eyebrow {
  font-family: var(--font-ui);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.18em;
}

.theme-bless .download-hero-title,
.theme-bless .item-hero-title {
  font-family: var(--font-display);
}

/* ===== 랭킹 · 기타 ===== */
.theme-bless .rank-top5-guide {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid var(--bless-line);
  border-radius: 14px;
}

.theme-bless .rank-bonus-chip {
  color: var(--bless-deep);
  border-color: var(--bless-line);
  background: #fff;
}

.theme-bless .float-btn {
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--bless-line);
  color: var(--bless-mid);
  box-shadow: 0 4px 14px rgba(49, 46, 129, 0.1);
}

.theme-bless .float-btn:hover {
  background: var(--bless-accent);
  color: #fff;
}

.theme-bless .popup-box {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bless-line);
}

.theme-bless .popup-head {
  font-family: var(--font-display);
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  color: #fff;
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .theme-bless .main-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .theme-bless .main-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding: 20px 12px 28px;
  }

  .theme-bless .main-grid > .panel:nth-child(1),
  .theme-bless .main-grid > .panel:nth-child(2),
  .theme-bless .main-grid .market-panel,
  .theme-bless .main-grid .rank-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .theme-bless .main-grid .market-panel,
  .theme-bless .main-grid .rank-panel {
    min-height: 380px;
  }

  .theme-bless .main-grid .market-panel .market-list,
  .theme-bless .main-grid .rank-panel .panel-body-scroll {
    min-height: 280px;
    max-height: 400px;
  }

  .theme-bless .main-grid .market-panel {
    order: 3;
  }

  .theme-bless .main-grid .rank-panel {
    order: 4;
  }

  .theme-bless .hero {
    height: clamp(300px, 46vh, 400px);
  }

  .theme-bless .hero-title-brand {
    font-size: clamp(3.25rem, 14vw, 5rem);
  }

  .theme-bless .hero-classic-text {
    font-size: clamp(1.15rem, 4.2vw, 1.6rem);
  }

  .theme-bless .hero-tagline {
    font-size: clamp(1.3rem, 5vw, 1.85rem);
  }
}

/* style.css 세리프(Cinzel·Noto Serif) 잔여 규칙 → 서브페이지 제목만 Pretendard 유지 */
.theme-bless .page-title,
.theme-bless .section-title,
.theme-bless .panel-title,
.theme-bless .guide-hero-eyebrow,
.theme-bless .guide-hero-title,
.theme-bless .guide-sidebar-label,
.theme-bless .guide-article-head h2,
.theme-bless .item-hero-eyebrow,
.theme-bless .item-hero-title,
.theme-bless .item-detail-head h2,
.theme-bless .my-login-title {
  font-family: var(--font-ui);
  letter-spacing: -0.02em;
}

.theme-bless .guide-prose .commands-body td.hl-blue {
  font-family: ui-monospace, "Cascadia Code", Consolas, "Malgun Gothic", monospace;
  font-size: 0.92em;
}
