/* ═══════════════════════════════════════════════
   배틀 프리셀 랜딩 — 공통 스타일
   ═══════════════════════════════════════════════ */

:root {
  --blue:    #1a56db;
  --blue-d:  #1240a8;
  --blue-lt: #eff6ff;
  --text:    #111827;
  --sub:     #374151;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --bg:      #ffffff;
  --bg2:     #f9fafb;
  --red:     #c0392b;
  --amber:   #b45309;
  --green:   #166534;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  font-size: 16px;
}

/* ─── TOP NAV ─── */
.top-nav {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.top-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 58px;
}
.nav-logo {
  font-family: 'Noto Serif KR', serif;
  font-weight: 900; font-size: 1.05rem;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo .suit { color: var(--red); font-size: 1.1rem; }

/* desktop menu */
.nav-menu {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
  flex-shrink: 0;
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 0.86rem; color: var(--sub);
  text-decoration: none; border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-item > a:hover, .nav-item.active > a {
  background: var(--blue-lt); color: var(--blue);
}
.nav-item > a .arrow { font-size: 0.6rem; opacity: 0.5; }

/* dropdown */
.nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 10px 6px 6px;
  list-style: none; z-index: 300;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown li a {
  display: block; padding: 9px 14px;
  font-size: 0.84rem; color: var(--sub);
  text-decoration: none; border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown li a:hover { background: var(--blue-lt); color: var(--blue); }

.nav-play-btn {
  background: var(--blue); color: #fff !important;
  padding: 9px 20px; border-radius: 6px;
  font-weight: 700; font-size: 0.86rem;
  text-decoration: none; margin-left: 8px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-play-btn:hover { background: var(--blue-d) !important; }


/* 모바일에서만 표시되는 게임 플레이 버튼 */
.nav-center-play {
  display: none;
  align-items: center;
  padding: 7px 14px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
  margin-right: 10px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-center-play:hover { background: var(--blue-d) !important; color: #fff !important; }

/* 햄버거 버튼 */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border: none; background: none;
  flex-shrink: 0;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* mobile menu */
.nav-mobile {
  display: none; flex-direction: column;
  background: #fff; border-top: 1px solid var(--border);
  padding: 12px 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 11px 24px; font-size: 0.9rem; color: var(--sub);
  text-decoration: none; border-bottom: 1px solid #f3f4f6;
}
.nav-mobile a:hover { color: var(--blue); background: var(--blue-lt); }
.nav-mobile .mob-sub { padding-left: 40px; font-size: 0.84rem; color: var(--muted); }
.nav-mobile .mob-play { color: var(--blue); font-weight: 700; }

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .nav-center-play { display: flex; }
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  max-width: 1100px; margin: 0 auto;
  padding: 12px 24px;
  font-size: 0.78rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: #d1d5db; }

/* ─── COMMON SECTION ─── */
.page-section {
  max-width: 900px; margin: 0 auto;
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
}
.page-section:last-child { border-bottom: none; }
.section-label {
  display: inline-block; background: var(--blue-lt); color: var(--blue);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.page-section h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700; color: var(--text); margin-bottom: 14px;
}
.page-section p { font-size: 0.95rem; color: var(--sub); margin-bottom: 14px; }

/* ─── FOOTER ─── */
.site-footer {
  background: #111827; color: #9ca3af;
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #d1d5db; margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.84rem; color: #9ca3af; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #374151; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 0.76rem; }
.footer-bottom .footer-links { display: flex; gap: 16px; }
.footer-bottom .footer-links a { font-size: 0.76rem; color: #9ca3af; text-decoration: none; }
.footer-bottom .footer-links a:hover { color: #fff; }