:root {
  --bg: #f8f7fc;
  --card: #ffffff;
  --ink: #23263a;
  --muted: #6b7280;
  --accent: #7c3aed;
  --accent2: #ec4899;
  --line: #e7e4f2;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  word-break: keep-all;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 12px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.1rem; color: var(--ink); font-weight: 800; }
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--accent2); }
.nav .links a { color: var(--ink); margin-left: 18px; font-weight: 600; font-size: .95rem; }

/* hero */
.hero { padding: 56px 0 36px; text-align: center; }
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.35; margin: 0 0 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* sections */
section { padding: 28px 0; }
h2.sec { font-size: 1.45rem; margin: 0 0 18px; }
h2.sec small { color: var(--muted); font-weight: 500; font-size: .9rem; margin-left: 8px; }

/* 분류 탭 */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tab {
  font: inherit; font-size: .93rem; font-weight: 700; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); transition: .14s; display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.on { background: linear-gradient(90deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; }
.tab .n { font-size: .78rem; font-weight: 700; opacity: .7; }
.tab.on .n { opacity: .85; }
.cards-empty { color: var(--muted); text-align: center; padding: 34px 0; }
.hide { display: none !important; }
.thumb-emoji {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 21/9; font-size: 3rem; background: linear-gradient(135deg, #f3efff, #fdeef7);
}

/* game cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(124,58,237,.12); }
.card img { border-radius: 0; aspect-ratio: 21/9; object-fit: cover; width: 100%; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card .genre { font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; margin-bottom: 4px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; flex: 1; }
.card .actions { display: flex; gap: 10px; }

/* buttons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-align: center;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn-play { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }
.btn-sub { background: #f1eefb; color: var(--accent); }
.btn-big { padding: 14px 34px; font-size: 1.05rem; }

/* game detail */
.game-hero { padding: 40px 0 8px; }
.game-hero .genre { color: var(--accent); font-weight: 700; font-size: .85rem; }
.game-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 6px 0 10px; }
.game-hero .tagline { color: var(--muted); font-size: 1.05rem; margin: 0 0 20px; }
.play-cta { text-align: center; margin: 26px 0 8px; }
.play-cta .note { display: block; color: var(--muted); font-size: .85rem; margin-top: 10px; }
.shots { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
.shots img { width: min(300px, 46%); border: 1px solid var(--line); }

/* article */
article.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); margin: 24px 0; }
article.post h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.4; margin: 0 0 8px; }
article.post .meta { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
article.post h2 { font-size: 1.3rem; margin: 34px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); }
article.post h3 { font-size: 1.08rem; margin: 24px 0 8px; }
article.post ul, article.post ol { padding-left: 22px; }
article.post li { margin: 6px 0; }
article.post blockquote { margin: 16px 0; padding: 10px 18px; border-left: 4px solid var(--accent2); background: #fdf3f9; border-radius: 0 10px 10px 0; color: #57415a; }
.tip { background: #f4f0ff; border: 1px solid #e3d9ff; border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.tip b { color: var(--accent); }

/* blog list */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.post-list li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.post-list a.title { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.post-list .desc { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.post-list .date { color: var(--muted); font-size: .8rem; }

/* 블로그 페이지 넘김 */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 8px; }
.pg {
  min-width: 40px; padding: 8px 13px; border-radius: 9px; text-align: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: .92rem; font-weight: 700; text-decoration: none;
}
.pg:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pg.on { background: linear-gradient(90deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; }
.pg.off { color: #c3c0cc; background: #fafafd; }

/* table */
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: .93rem; }
th, td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
th { background: #f4f0ff; }

/* 광고 슬롯 — 본문 끝, 푸터 위 1개만 */
.ad-slot {
  display: flex; justify-content: center; align-items: center;
  margin: 34px 0 8px; min-height: 100px;
}
.ad-slot .kakao_ad_area { max-width: 100%; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0 40px; text-align: center; color: var(--muted); font-size: .9rem; }
.site-footer nav { margin: 10px 0; }
.site-footer a { color: var(--muted); margin: 0 8px; }
.site-footer .copy { font-size: .8rem; }

/* misc */
.crumb { color: var(--muted); font-size: .85rem; padding-top: 20px; }
.other-games { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.other-games a { background: #f1eefb; border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 600; }
@media (max-width: 560px) {
  .nav .links a { margin-left: 12px; font-size: .88rem; }
  .shots img { width: 100%; }
}
