:root {
    --bg-main: #0b0f19;
    --bg-card: #151d30;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1; /* 인디고 바이올렛 */
    --primary-hover: #4f46e5;
    --accent-gold: #f59e0b;
    --border-color: #232f48;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 12px 24px -4px rgba(99, 102, 241, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; }

/* Header */
.site-header { background: #0f172a; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 50; }
.header-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #ffffff; font-size: 1.25rem; font-weight: 800; }
.logo-icon { font-size: 1.4rem; }
.site-nav .nav-list { display: flex; list-style: none; gap: 22px; }
.nav-link { color: #94a3b8; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: #818cf8; }

/* Grid Hero Section */
.grid-hero-section { background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0b0f19 80%); padding: 60px 20px 45px; text-align: center; border-bottom: 1px solid var(--border-color); }
.hero-container { max-width: 860px; margin: 0 auto; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.4); color: #a5b4fc; padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; margin-bottom: 16px; }
.hero-title { font-size: 2.2rem; font-weight: 900; line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.5px; background: linear-gradient(to right, #ffffff, #c7d2fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1rem; color: #94a3b8; line-height: 1.6; }

/* Page Wrapper */
.main-content { min-height: calc(100vh - 350px); }
.page-wrapper { max-width: 1160px; margin: 0 auto; padding: 40px 20px 60px; }
.section-header { margin-bottom: 24px; }
.section-header h2 { font-size: 1.45rem; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; }
.section-header p { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; }

/* 🌟 혁신적인 가로 3열(3-Column) 그리드 카드 레이아웃 🌟 */
.grid-rankings-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.grid-rank-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--card-shadow); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.grid-rank-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover-shadow); border-color: #6366f1; }
.card-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rank-badge { background: #0f172a; border: 1px solid #334155; color: #a5b4fc; font-size: 0.85rem; font-weight: 900; padding: 3px 10px; border-radius: 6px; }
.rank-badge.top-1 { background: #e50914; border-color: #e50914; color: #fff; }
.rank-badge.top-2 { background: #d97706; border-color: #d97706; color: #fff; }
.rank-badge.top-3 { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.score-badge { color: var(--accent-gold); font-size: 0.85rem; font-weight: 800; }
.card-logo-box { width: 100%; height: 60px; background: #ffffff; border-radius: 6px; display: flex; align-items: center; justify-content: center; padding: 6px; margin-bottom: 14px; overflow: hidden; }
.card-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-title-info h3 { font-size: 1.15rem; font-weight: 800; color: #ffffff; margin-bottom: 4px; }
.card-desc-text { font-size: 0.85rem; color: #94a3b8; line-height: 1.45; margin-bottom: 12px; min-height: 38px; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.tag-chip { background: #0b0f19; color: #cbd5e1; font-size: 0.72rem; padding: 2px 7px; border-radius: 4px; border: 1px solid #1e293b; }
.card-bottom-action { border-top: 1px solid var(--border-color); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.benefit-price { font-size: 1.05rem; font-weight: 900; color: #818cf8; }
.btn-grid-play { background: var(--primary); color: #ffffff; text-decoration: none; font-size: 0.85rem; font-weight: 700; padding: 8px 16px; border-radius: 6px; transition: background 0.2s; }
.btn-grid-play:hover { background: var(--primary-hover); }

/* 스크린샷 완벽 반영 테이블형 게시판 */
.board-table-wrap { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; margin-bottom: 40px; }
.board-table { width: 100%; border-collapse: collapse; text-align: left; }
.board-table th { background: #0f172a; padding: 14px 20px; font-size: 0.88rem; font-weight: 700; color: #e2e8f0; border-bottom: 1px solid var(--border-color); }
.board-table td { padding: 14px 20px; font-size: 0.92rem; border-bottom: 1px solid #1e293b; color: #cbd5e1; }
.board-table tbody tr:last-child td { border-bottom: none; }
.board-table tbody tr:hover { background: #1a233a; }
.td-num { width: 70px; text-align: center; color: #818cf8; font-weight: 700; }
.td-title a { color: #f8fafc; text-decoration: none; font-weight: 600; display: block; }
.td-title a:hover { color: #818cf8; text-decoration: underline; }
.td-date { width: 110px; text-align: center; color: #64748b; font-size: 0.82rem; }

/* SEO Content Box */
.seo-content-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 32px; margin-bottom: 50px; line-height: 1.8; color: #cbd5e1; font-size: 0.92rem; }
.seo-content-box h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; color: #ffffff; }
.seo-content-box h3 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 8px; color: #818cf8; }
.seo-content-box ul { margin: 10px 0 16px 20px; }
.seo-content-box li { margin-bottom: 6px; }

/* 하단 1~6위 미니 쇼케이스 컨테이너 */
.subpage-showcase-section { margin-top: 50px; padding-top: 36px; border-top: 2px dashed var(--border-color); }

/* Article & Static View */
.article-view { background: var(--bg-card); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); }
.article-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; color: #ffffff; }
.article-meta { color: #64748b; font-size: 0.85rem; margin-bottom: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; }
.article-body { font-size: 1rem; line-height: 1.85; color: #cbd5e1; }
.article-body h2 { font-size: 1.25rem; font-weight: 800; margin: 26px 0 12px; color: #ffffff; }
.article-body p { margin-bottom: 14px; }

/* Detailed Footer */
.site-footer { background: #070a12; color: #64748b; padding: 50px 20px 30px; border-top: 1px solid var(--border-color); }
.footer-container { max-width: 1160px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-brand h3 { color: #ffffff; font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.footer-slogan { font-size: 0.85rem; color: #94a3b8; margin-bottom: 8px; }
.footer-desc { max-width: 400px; font-size: 0.8rem; line-height: 1.5; color: #64748b; }
.footer-links-grid { display: flex; gap: 50px; }
.footer-col h4 { color: #ffffff; font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #64748b; text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid #151d30; padding-top: 20px; font-size: 0.78rem; text-align: center; color: #475569; }
.disclaimer-text { margin-top: 6px; font-size: 0.72rem; color: #475569; }

/* Responsive Mobile (가로 3열 -> 모바일 1열 완벽 대응) */
@media screen and (max-width: 960px) {
    .grid-rankings-3col { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 640px) {
    .header-container { height: auto; padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .site-nav .nav-list { display: flex; gap: 16px; white-space: nowrap; padding-bottom: 4px; }
    
    .grid-hero-section { padding: 36px 16px 30px; }
    .hero-title { font-size: 1.4rem; }
    .hero-desc { font-size: 0.85rem; }
    
    .page-wrapper { padding: 20px 14px 40px; }
    .grid-rankings-3col { grid-template-columns: 1fr; gap: 14px; }
    
    .board-table-wrap { overflow-x: auto; }
    .board-table { min-width: 460px; }
    .article-view { padding: 20px 16px; }
    .article-title { font-size: 1.35rem; }
    .footer-links-grid { gap: 30px; }
}