:root {
  --bg: #0d1421;
  --bg-soft: #131d2e;
  --bg-card: #1a2540;
  --fg: #e8edf5;
  --fg-soft: #a8b4c8;
  --fg-mute: #6b7a94;
  --accent: #f4c430;
  --accent-hot: #ffd700;
  --accent-soft: #2a2210;
  --accent-deep: #c49b20;
  --gold: #f4c430;
  --border: #243050;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.5);
  --max: 1280px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ============ Header ============ */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(180%) blur(12px);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-weight: 900; font-size: 24px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  color: var(--accent);
}
.brand-mark { color: var(--accent); }
.brand-name { color: var(--fg); margin-left: 8px; font-size: 18px; font-weight: 700; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav-link {
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--fg-soft);
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-link .emoji { font-size: 16px; }
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--fg); padding: 6px;
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #0d1421 0%, #1a2540 50%, #0d1e35 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 16px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(244,196,48,0.3);
}
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--fg-soft);
  margin: 0 auto;
  max-width: 560px;
}

/* ============ Section ============ */
.latest, .cat-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 16px;
}
.section-title {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  display: flex; align-items: center; gap: 10px;
  color: var(--fg);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.section-title .more {
  font-size: 13px; font-weight: 600;
  color: var(--fg-mute); margin-left: auto;
  transition: color .15s;
}
.section-title .more:hover { color: var(--accent); }

/* ============ Post Grid ============ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.post-card a { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-soft);
}
.card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-card));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--fg-mute);
}
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-cat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px; border-radius: 4px;
  width: fit-content;
}
.card-title {
  font-size: 16px; font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-desc {
  font-size: 14px; color: var(--fg-soft); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.card-date { font-size: 12px; color: var(--fg-mute); margin-top: auto; }

/* ============ Ad Slots ============ */
.adslot-wrap { max-width: var(--max); margin: 0 auto; padding: 8px 16px; }
.adslot, .coupang-wrap { width: 100%; overflow: hidden; }

/* ============ Post Layout ============ */
.post-layout { max-width: 780px; margin: 0 auto; padding: 40px 16px; }
.post-header { margin-bottom: 32px; }
.post-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent); text-transform: uppercase;
  background: var(--accent-soft); padding: 4px 10px; border-radius: 4px;
  margin-bottom: 12px;
}
.post-title {
  font-size: clamp(24px, 4vw, 38px); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.25;
  margin: 0 0 16px; color: var(--fg);
}
.post-meta { font-size: 13px; color: var(--fg-mute); display: flex; gap: 16px; align-items: center; }
.post-body {
  font-size: 17px; line-height: 1.85;
  color: var(--fg);
}
.post-body h2 { font-size: 24px; font-weight: 800; margin: 40px 0 16px; color: var(--accent); }
.post-body h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: var(--fg); }
.post-body p { margin: 0 0 20px; }
.post-body ul, .post-body ol { margin: 0 0 20px 24px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--accent); font-weight: 700; }
.post-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--fg-soft);
  font-style: italic;
}
.post-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 15px;
}
.post-body th {
  background: var(--bg-soft); color: var(--accent);
  padding: 10px 14px; text-align: left;
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}
.post-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.post-body tr:hover td { background: var(--bg-soft); }
.disclaimer {
  margin-top: 40px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--fg-mute);
  line-height: 1.6;
}

/* ============ Category Page ============ */
.cat-page { max-width: var(--max); margin: 0 auto; padding: 40px 16px; }
.cat-header { margin-bottom: 32px; }
.cat-header h1 { font-size: 32px; font-weight: 900; margin: 0; color: var(--fg); }
.cat-header p { color: var(--fg-soft); margin: 8px 0 0; }

/* ============ About/Contact/Privacy ============ */
.page-content { max-width: 720px; margin: 0 auto; padding: 60px 16px; }
.page-content h1 { font-size: 32px; font-weight: 900; margin: 0 0 24px; color: var(--accent); }
.page-content h2 { font-size: 22px; font-weight: 800; margin: 40px 0 16px; color: var(--fg); }
.page-content p { line-height: 1.8; color: var(--fg-soft); margin: 0 0 16px; }
.page-content ul { padding-left: 20px; color: var(--fg-soft); line-height: 1.8; }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 16px 24px;
  margin-top: 64px;
}
.footer-cols {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.footer-cols h4 { font-weight: 800; font-size: 15px; margin: 0 0 12px; color: var(--accent); }
.footer-cols p { font-size: 14px; color: var(--fg-mute); line-height: 1.6; margin: 0; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols li a { font-size: 14px; color: var(--fg-soft); transition: color .15s; }
.footer-cols li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max); margin: 24px auto 0;
  font-size: 12px; color: var(--fg-mute);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}
.footer-bottom p { margin: 0; }

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 12px; z-index: 100; }
  .hamburger { display: block; }
  .post-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 16px; }
}

/* ============ AntiAdblock ============ */
.adb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; align-items: center; justify-content: center; }
.adb-overlay.active { display: flex; }
.adb-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; max-width: 480px; text-align: center; }
.adb-box h2 { font-size: 24px; font-weight: 900; margin: 0 0 16px; color: var(--accent); }
.adb-box p { color: var(--fg-soft); line-height: 1.6; margin: 0 0 24px; }
.adb-btn { background: var(--accent); color: #0d1421; font-weight: 700; border: none; padding: 12px 32px; border-radius: 8px; cursor: pointer; font-size: 16px; font-family: inherit; transition: opacity .15s; }
.adb-btn:hover { opacity: 0.85; }

/* ============ Pagination ============ */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); color: var(--fg-soft);
  transition: background .15s, color .15s, border-color .15s;
}
.pagination a:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.pagination .current { background: var(--accent); color: #0d1421; border-color: var(--accent); font-weight: 800; }

/* ============ Utilities ============ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }


/* === main width container (사이트별 hero 만 풀폭 background 유지) === */
.site-main > section,
.site-main > .adslot-wrap,
.site-main > .cat-section,
.site-main > .pet-section {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.site-main > section.lotto-hero {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.post-grid { width: 100%; }
