/* 미니 게임 테마 — style.css·posts.css 뒤에 덮어씀 (scripts: split_sites.py 가 생성) */
:root {
  color-scheme: dark;
  --bg: #120f24;
  --bg-2: #1a1633;
  --panel: #1c1838;
  --line: #352d63;
  --text: #f1edff;
  --muted: #a79fd0;
  --accent: #22d3ee;
  --accent-2: #f472b6;
  --accent-3: #facc15;
  --on-accent: #120f24;
  --radius: 6px;
  --display: 'Do Hyeon', sans-serif;
  --body: 'Noto Sans KR', system-ui, sans-serif;
}
body { font-family: var(--body); background-size: auto; background-position: 0 0; background-image: linear-gradient(rgba(34,211,238,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(244,114,182,.07) 1px, transparent 1px); background-size: 32px 32px; }
body::before { background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--bg) 75%); }
h1, h2, h3, .logo, .tool-head h1, .post-head h1 { font-family: var(--display); }
.chip.on, .btn.primary, .seg input:checked + span, .game-seg button.on, .dpad button:active, .sn-links a.on, .sv-opt.on, .sv-tcard .sv-done, .post-cat:hover, ::selection { color: var(--on-accent) !important; }
.sv-opt.on .k { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.logo .site-tag { margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--accent); color: var(--on-accent); letter-spacing: 0; font-family: var(--body); }
.site-hero { margin: 28px 0 8px; padding: 28px 24px; border-radius: var(--radius); background: #1c1838; border: 3px solid #22d3ee; box-shadow: 0 0 0 3px #120f24, 0 0 0 6px #f472b6, 0 0 30px rgba(34,211,238,.35); }
.site-hero .eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.site-hero h1 { margin: 6px 0 8px; font-size: clamp(26px, 5vw, 40px); line-height: 1.2; }
.site-hero p { margin: 0; max-width: 640px; opacity: .92; }
.site-hero .hero-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.site-hero .hero-links a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: #facc15; color: #120f24; border-radius: 0 !important; box-shadow: 3px 3px 0 #f472b6; }
.site-hero .hero-links a:hover { text-decoration: none; filter: brightness(1.08); }
.latest-posts { margin: 28px 0; }
.latest-posts ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.latest-posts li a { display: block; height: 100%; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.latest-posts li a:hover { border-color: var(--accent); text-decoration: none; }
.latest-posts time { display: block; font-size: 11.5px; color: var(--muted); }
.latest-posts b { display: block; margin: 4px 0; line-height: 1.4; }
.latest-posts span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-posts .all { display: inline-block; margin-top: 12px; font-weight: 700; }
.ad-kakao, .ad-pair, .ad-rail, ins.adsbygoogle { display: none !important; }  /* 광고 단위는 game.smithlab.co.kr 전용이라 숨김 */
.sn-cat-home { display: block; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.site-hero .eyebrow { font-family: 'Press Start 2P', monospace; font-size: 10px; color: #facc15; }
h1, h2, h3 { font-weight: 400; } .card:hover { box-shadow: 0 0 18px rgba(34,211,238,.35); }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); z-index: 50; }

/* 브랜드 로고·패밀리 사이트 */
.logo .brand-name { font-family: var(--display); font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 480px) { .logo .brand-name { font-size: 16px; } }
.logo-img { border-radius: 8px; }
.family { margin: 40px 0 24px; }
.fam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.fam-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.fam-card:hover { border-color: var(--accent); text-decoration: none; }
.fam-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fam-card .fam-mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px; }
.fam-card b { display: block; font-size: 14px; line-height: 1.2; }
.fam-card small { display: block; font-size: 11.5px; color: var(--muted); }
.fam-card > span + b { margin-right: auto; }
.fam-card { flex-wrap: wrap; } .fam-card b, .fam-card small { flex-basis: calc(100% - 40px); margin-left: 0; }
/* 합친 사이트 홈의 묶음 카드 */
.lab-sections { margin: 28px 0; scroll-margin-top: 80px; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.sec-card { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.sec-card:hover { border-color: var(--accent); text-decoration: none; }
.sec-card .sec-ico { grid-row: span 2; font-size: 24px; line-height: 1; text-align: center; }
.sec-card b { font-size: 15px; line-height: 1.25; } .sec-card small { font-size: 12px; color: var(--muted); }
.latest-posts { scroll-margin-top: 80px; } .latest-posts a.all { display: inline-block; margin: 8px 12px 0 0; }
