/*
Theme Name: BACA GAMES
Theme URI: http://xeqtd.com/
Author: BACA GAMES
Author URI: http://xeqtd.com/
Description: Tema portal game online BACA GAMES bergaya majalah berita (3 kolom). Termasuk halaman kategori game, SEO (meta robots index, canonical, Open Graph, robots.txt), Schema Markup JSON-LD, sosial media, dan setup satu klik untuk kategori, halaman About & Policy, menu, serta favicon.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bacagames
Tags: news, blog, three-columns, right-sidebar, custom-logo, custom-menu, featured-images
*/

/* ==========================================================================
   1. Token warna (diambil dari logo & favicon)
   ========================================================================== */
:root {
	--ink: #011a12;
	--dark: #022a1f;
	--deep: #033527;
	--primary: #005a42;
	--emerald: #059669;
	--green: #209a4e;
	--mint: #a7f3d0;
	--mint-50: #ecfdf5;
	--accent: #f59e0b;
	--accent-ink: #1f1300;
	--text: #10231c;
	--muted: #5d6f68;
	--line: #e2eae6;
	--surface: #ffffff;
	--page: #eef3f1;
	--radius: 6px;
	--container: 1240px;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--lines: repeating-linear-gradient(180deg, rgba(167, 243, 208, .06) 0 1px, transparent 1px 15px);
}

/* ==========================================================================
   2. Dasar
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--text);
	background: var(--page);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--emerald); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--ink); font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { margin-top: 20px; }
.box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
}
.box + .box { margin-top: 20px; }

/* Tombol */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 18px; border: 0; border-radius: 4px;
	font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2;
	transition: background .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #fbbf24; color: var(--accent-ink); }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px;
	border: 1px solid rgba(167, 243, 208, .25); border-radius: 50%;
	background: rgba(255, 255, 255, .05); color: #fff;
}
.icon-btn:hover { background: var(--emerald); border-color: var(--emerald); }

/* ==========================================================================
   3. Header (ala Modern News, versi hijau BACA GAMES)
   ========================================================================== */
.site-header {
	position: relative; z-index: 50;
	background: var(--lines), linear-gradient(180deg, #022f23 0%, var(--ink) 100%);
	border-bottom: 3px solid var(--emerald);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.site-logo { flex-shrink: 0; }
.site-logo a { display: block; }
.site-logo img { height: 62px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav .menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	position: relative; display: block; padding: 10px 12px; border-radius: 4px;
	color: #e6fff4; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
}
.main-nav .menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--mint); }
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--accent);
}
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; padding: 8px;
	background: var(--dark); border-radius: 0 0 6px 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-actions { display: flex; gap: 8px; }
.menu-toggle { display: none; }

.search-panel { background: var(--ink); border-top: 1px solid rgba(167, 243, 208, .12); padding: 14px 0; }
.search-form { display: flex; gap: 8px; }
.search-field {
	flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px;
	font: inherit; font-size: 15px; background: #fff; color: var(--text);
}
.search-panel .search-field { border-color: transparent; }

/* ==========================================================================
   4. Top bar: tanggal, TOP POSTS ticker, sosial, tombol Discord
   ========================================================================== */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 50px; }
.topbar-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ticker { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.ticker-badge {
	flex-shrink: 0; padding: 6px 10px; border-radius: 3px;
	background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; letter-spacing: .05em;
}
.ticker-nav {
	display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0;
	border: 0; background: transparent; color: var(--muted);
}
.ticker-nav:hover { color: var(--emerald); }
.ticker-nav .icon { width: 14px; height: 14px; }
.ticker-list { position: relative; flex: 1; min-width: 0; height: 22px; list-style: none; overflow: hidden; }
.ticker-list li {
	position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: .3s ease;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 600; line-height: 22px;
}
.ticker-list li.is-active { opacity: 1; transform: none; }
.ticker-list a, .ticker-list span { color: var(--ink); }
.ticker-list a:hover { color: var(--emerald); }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* Sosial media */
.social { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.social .icon { width: 16px; height: 16px; }
.social--top a { color: var(--deep); }
.social--top a:hover { background: var(--mint-50); color: var(--emerald); }
.social--footer a { width: 38px; height: 38px; background: rgba(255, 255, 255, .07); color: #fff; }
.social--footer a:hover { background: var(--emerald); color: #fff; }
.social--grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.social--grid a { width: 100%; height: 44px; border-radius: 6px; color: #fff; }
.social--grid a:hover { filter: brightness(1.1); color: #fff; }
.social--grid .icon { width: 20px; height: 20px; }
.social--grid .social-discord { background: #5865f2; }
.social--grid .social-facebook { background: #1877f2; }
.social--grid .social-x { background: #0f1419; }
.social--grid .social-instagram { background: linear-gradient(45deg, #f9a825, #e1306c 55%, #833ab4); }
.social--grid .social-youtube { background: #e62117; }
.social--grid .social-telegram { background: #229ed9; }
.social--grid .social-tiktok { background: #111; }

/* ==========================================================================
   5. Komponen umum
   ========================================================================== */
.section-title {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
	margin-bottom: 14px; border-bottom: 2px solid var(--line);
}
.section-title h2 {
	position: relative; margin: 0; padding-bottom: 10px; font-size: 18px; color: var(--ink);
}
.section-title h2::after {
	content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--emerald);
}
.section-more {
	display: inline-flex; align-items: center; gap: 4px; padding-bottom: 10px;
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--emerald);
}
.section-more .icon { width: 14px; height: 14px; }

.cat-label {
	display: inline-block; margin-bottom: 8px;
	font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--emerald);
}
.cat-label--light { color: var(--mint); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta a { color: var(--muted); }
.post-meta .icon { width: 14px; height: 14px; }
.meta-small { font-size: 12px; color: var(--muted); }
.excerpt { color: var(--muted); }

/* Thumbnail & artwork game */
.thumb { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--deep); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.thumb:hover img { transform: scale(1.04); }
.thumb-sm { aspect-ratio: 3 / 2; }
.thumb-card { aspect-ratio: 16 / 10; border-radius: 6px; }
.thumb-hero { aspect-ratio: 16 / 9; border-radius: 4px; }

.game-art {
	position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
	background:
		var(--lines),
		radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--accent) 70%, transparent) 0, transparent 55%),
		radial-gradient(circle at 5% 105%, rgba(5, 150, 105, .6) 0, transparent 55%),
		linear-gradient(135deg, #04402f 0%, var(--ink) 100%);
}
.game-art::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(167, 243, 208, .12);
}
.game-art__mono {
	position: relative; z-index: 1; font-size: 42px; font-weight: 800; letter-spacing: .04em; line-height: 1;
	color: transparent; -webkit-text-stroke: 1.5px rgba(236, 253, 245, .9);
	text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent);
}
.game-art__name {
	position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 8px;
	font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mint);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thumb-sm .game-art__mono { font-size: 18px; -webkit-text-stroke-width: 1px; }
.thumb-sm .game-art__name { display: none; }
.thumb-hero .game-art__mono { font-size: 96px; -webkit-text-stroke-width: 2px; }
.thumb-hero .game-art__name { font-size: 13px; left: 16px; bottom: 14px; }

/* ==========================================================================
   6. Homepage 3 kolom
   ========================================================================== */
.home-grid {
	display: grid; grid-template-columns: 290px minmax(0, 1fr) 300px; gap: 20px; margin-top: 20px;
	grid-template-areas: "left center right"; align-items: start;
}
.col-left { grid-area: left; }
.col-center { grid-area: center; }
.col-right { grid-area: right; }

.list-thumb { list-style: none; }
.list-thumb li {
	display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center;
	padding: 12px 0; border-bottom: 1px solid var(--line);
}
.list-thumb li:first-child { padding-top: 2px; }
.list-thumb li:last-child { border-bottom: 0; padding-bottom: 0; }
.list-thumb h3 { margin: 0 0 2px; font-size: 14px; line-height: 1.4; font-weight: 700; }
.list-thumb h3 a { color: var(--ink); }
.list-thumb h3 a:hover { color: var(--emerald); }

.featured-body { padding-top: 16px; }
.featured-title { margin: 0 0 8px; font-size: 26px; line-height: 1.25; }
.featured-title a { color: var(--ink); }
.featured-title a:hover { color: var(--emerald); }
.featured .excerpt { margin: 10px 0 0; font-size: 15px; }
.sub-posts {
	display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.sub-posts h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.sub-posts h3 a { color: var(--ink); }
.sub-posts h3 a:hover { color: var(--emerald); }

.welcome {
	position: relative; overflow: hidden; text-align: center; padding: 40px 28px 36px; border-radius: 6px; color: #e6fff4;
	background:
		var(--lines),
		radial-gradient(circle at 85% 10%, rgba(245, 158, 11, .25) 0, transparent 40%),
		radial-gradient(circle at 10% 100%, rgba(5, 150, 105, .55) 0, transparent 55%),
		linear-gradient(140deg, #04402f, var(--ink));
}
.welcome > * { position: relative; }
.welcome-art { display: grid; place-items: center; margin-bottom: 18px; }
.welcome-art img { width: 112px; height: 112px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
.welcome .cat-label { color: var(--accent); }
.welcome-title { max-width: 560px; margin: 0 auto 12px; font-size: 28px; color: #fff; }
.welcome .excerpt { max-width: 560px; margin: 0 auto 22px; color: #bfe3d4; }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.list-lines { list-style: none; }
.list-lines li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-lines li:first-child { padding-top: 0; }
.list-lines li:last-child { border-bottom: 0; padding-bottom: 0; }
.list-lines a { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.list-lines a:hover { color: var(--emerald); }

.box-dark {
	color: #d8f3e8; border-color: transparent;
	background: var(--lines), linear-gradient(160deg, var(--deep), var(--ink));
}
.box-dark .section-title { border-bottom-color: rgba(167, 243, 208, .15); }
.box-dark .section-title h2 { color: #fff; }
.box-dark .section-title h2::after { background: var(--accent); }
.cat-list { list-style: none; }
.cat-list a {
	display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px;
	padding: 9px 0; border-bottom: 1px solid rgba(167, 243, 208, .1); color: #ecfdf5;
}
.cat-list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.cat-list a:hover { color: var(--mint); }
.cat-dot {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px;
	background: color-mix(in srgb, var(--accent) 30%, var(--deep)); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
	font-size: 10.5px; font-weight: 800; color: #fff;
}
.cat-name { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.cat-count {
	min-width: 28px; padding: 2px 8px; border-radius: 99px; text-align: center;
	background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 700;
}

/* Grid kartu game */
.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.game-card {
	display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff;
	transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(2, 42, 31, .14); }
.game-card__art { display: block; aspect-ratio: 4 / 3; }
.game-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px; }
.game-card__genre { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--emerald); }
.game-card__title { margin: 4px 0 6px; font-size: 15px; line-height: 1.3; }
.game-card__title a { color: var(--ink); }
.game-card__title a:hover { color: var(--emerald); }
.game-card__tag { flex: 1; margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.game-card__meta {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding-top: 10px; border-top: 1px solid var(--line);
	font-size: 11.5px; color: var(--muted);
}

/* Grid kartu artikel */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-body { padding-top: 12px; }
.card-title { margin: 0 0 6px; font-size: 15.5px; line-height: 1.35; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--emerald); }
.card .cat-label { margin-bottom: 4px; }

/* ==========================================================================
   7. Halaman dalam: breadcrumb, layout sidebar, artikel
   ========================================================================== */
.breadcrumbs { margin-top: 16px; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: #a9b9b2; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--emerald); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

.layout-sidebar {
	display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin-top: 16px;
}
.content-area > * + * { margin-top: 20px; }
.sidebar > * + * { margin-top: 20px; }

.page-head .page-title { margin: 0; font-size: 28px; }
.page-desc { margin-top: 8px; color: var(--muted); }
.page-desc p:last-child { margin: 0; }

.entry { padding: 28px 32px; }
.entry-header { margin-bottom: 20px; }
.entry-title { margin: 0 0 12px; font-size: 32px; line-height: 1.2; }
.entry-thumb { margin: 0 0 24px; }
.entry-thumb img { width: 100%; border-radius: 6px; }
.entry-thumb figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.entry-content { font-size: 16.5px; line-height: 1.8; color: #1d2f28; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { margin-top: 1.6em; font-size: 23px; }
.entry-content h3 { margin-top: 1.4em; font-size: 19px; }
.entry-content a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--primary); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--emerald); }
.entry-content blockquote {
	margin-left: 0; margin-right: 0; padding: 14px 20px; border-left: 4px solid var(--emerald); border-radius: 0 6px 6px 0;
	background: var(--mint-50); font-style: italic;
}
.entry-content img { border-radius: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--mint-50); }
.entry-content code { padding: 2px 6px; border-radius: 4px; background: var(--mint-50); font-size: .9em; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tags a { padding: 4px 12px; border-radius: 99px; background: var(--mint-50); color: var(--primary); font-size: 13px; font-weight: 600; }
.tags a:hover { background: var(--emerald); color: #fff; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share span { margin-right: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.share a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; }
.share a:hover { color: #fff; filter: brightness(1.1); }
.share-fb { background: #1877f2; }
.share-x { background: #0f1419; }
.share-wa { background: #25d366; }
.share-tg { background: #229ed9; }

/* Contact Form 7 */
.wpcf7 label { display: block; font-weight: 600; font-size: 14px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=url], .wpcf7 input[type=tel], .wpcf7 textarea {
	width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 15px;
}
.wpcf7 textarea { min-height: 160px; }
.wpcf7 input[type=submit] {
	padding: 11px 22px; border: 0; border-radius: 4px; background: var(--emerald); color: #fff;
	font-weight: 800; text-transform: uppercase; letter-spacing: .03em; cursor: pointer;
}
.wpcf7 input[type=submit]:hover { background: var(--primary); }

/* Komentar */
.comment-list { list-style: none; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent label { display: inline; font-weight: 500; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit;
}

/* Pagination */
.pagination { margin-top: 24px; }
.pagination ul { display: flex; padding: 0; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; }
.pagination li > .page-numbers {
	display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 4px;
	border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
}
.pagination li > .page-numbers.current, .pagination li > a.page-numbers:hover { background: var(--emerald); border-color: var(--emerald); color: #fff; }

/* Empty state & 404 */
.empty-state { text-align: center; padding: 24px 12px; color: var(--muted); }
.empty-state .game-art { max-width: 240px; height: 140px; margin: 0 auto 16px; border-radius: 8px; }
.empty-state .search-form { max-width: 480px; margin: 16px auto 0; }
.error-404 { margin-top: 24px; text-align: center; padding: 40px 24px; }
.error-code { display: block; font-size: 88px; font-weight: 800; line-height: 1; color: var(--emerald); }
.error-404 .search-form { max-width: 520px; margin: 0 auto 28px; }
.error-404 .game-grid { text-align: left; }

/* ==========================================================================
   8. Halaman kategori game (/starcraft/ dst.)
   ========================================================================== */
.game-hero {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center;
	margin-top: 14px; padding: 28px; border-radius: 10px; color: #dff7ec;
	background:
		var(--lines),
		radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--accent) 45%, transparent) 0, transparent 50%),
		radial-gradient(circle at 0% 100%, rgba(5, 150, 105, .5) 0, transparent 55%),
		linear-gradient(135deg, #04402f, var(--ink));
}
.game-hero__art {
	display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px;
	background: rgba(255, 255, 255, .04); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
	box-shadow: inset 0 0 40px color-mix(in srgb, var(--accent) 25%, transparent);
}
.game-hero__art span {
	font-size: 58px; font-weight: 800; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 2px #ecfdf5;
	text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 70%, transparent);
}
.game-hero__title { margin: 0 0 6px; font-size: 34px; color: #fff; }
.game-hero__tag { margin: 0 0 18px; color: var(--mint); font-weight: 600; }
.game-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.game-facts div { padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(167, 243, 208, .12); }
.game-facts .wide { grid-column: 1 / -1; }
.game-facts dt { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mint); opacity: .85; }
.game-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: #fff; }
.entry--intro { padding: 24px 28px; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer {
	margin-top: 40px; color: #b9d9cc; border-top: 4px solid var(--emerald);
	background: var(--lines), linear-gradient(180deg, var(--dark), var(--ink));
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.footer-brand .site-logo img { height: 70px; margin-bottom: 12px; }
.footer-slogan { color: var(--mint); font-weight: 700; }
.footer-col p { font-size: 14px; }
.footer-title {
	margin: 0 0 14px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.footer-col .menu { list-style: none; }
.footer-col .menu li { margin-bottom: 9px; }
.footer-col .menu a { color: #cfe9de; font-size: 14px; }
.footer-col .menu a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(167, 243, 208, .12); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 16px; padding-bottom: 16px; font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; font-weight: 700; }

.to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 42px; height: 42px;
	border-radius: 50%; background: var(--emerald); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .icon { transform: rotate(-90deg); }
.to-top:hover { background: var(--primary); color: #fff; }

/* Widget (sidebar halaman dalam) */
.widget ul { list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--ink); font-weight: 600; }
.widget li a:hover { color: var(--emerald); }
.widget h2, .widget .wp-block-heading { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--line); font-size: 18px; }
.widget .wp-block-search__label { display: block; margin-bottom: 8px; font-weight: 800; font-size: 18px; color: var(--ink); }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.widget .wp-block-search__input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.widget .wp-block-search__button { margin: 0; padding: 10px 16px; border: 0; border-radius: 4px; background: var(--emerald); color: #fff; font-weight: 700; }
.widget ol { padding-left: 0; list-style: none; }

/* Gutenberg alignments */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--muted); text-align: center; }

/* ==========================================================================
   10. Responsif
   ========================================================================== */
@media (max-width: 1200px) {
	.home-grid { grid-template-columns: 260px minmax(0, 1fr) 280px; }
	.main-nav .menu a { padding: 9px 9px; font-size: 12px; }
	.site-logo img { height: 54px; }
}

@media (max-width: 1100px) {
	.menu-toggle { display: inline-grid; }
	.header-actions { margin-left: auto; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0; margin: 0; display: none;
		background: var(--ink); border-bottom: 3px solid var(--emerald); box-shadow: 0 16px 30px rgba(0, 0, 0, .3);
	}
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; }
	.main-nav .menu a { padding: 13px 4px; font-size: 14px; border-bottom: 1px solid rgba(167, 243, 208, .1); border-radius: 0; white-space: normal; }
	.main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after { left: 4px; right: auto; width: 30px; bottom: 6px; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; }
	.game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
	.home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "center center" "left right"; }
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.topbar .social--top { display: none; }
}

@media (max-width: 900px) {
	.layout-sidebar { grid-template-columns: minmax(0, 1fr); }
	.card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.game-hero { grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 22px; }
	.game-hero__art span { font-size: 40px; }
	.game-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	body { font-size: 14.5px; }
	.header-inner { min-height: 64px; gap: 10px; }
	.site-logo img { height: 46px; }
	.icon-btn { width: 38px; height: 38px; }
	.topbar-inner { min-height: 44px; gap: 10px; }
	.topbar-date, .topbar-right { display: none; }
	.home-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "center" "left" "right"; gap: 16px; margin-top: 16px; }
	.box { padding: 16px; }
	.featured-title { font-size: 21px; }
	.sub-posts { grid-template-columns: 1fr; gap: 14px; }
	.welcome { padding: 30px 18px 26px; }
	.welcome-title { font-size: 22px; }
	.game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.game-art__mono { font-size: 32px; }
	.card-grid, .card-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.entry { padding: 20px 18px; }
	.entry-title { font-size: 25px; }
	.entry-content { font-size: 16px; }
	.game-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; }
	.game-hero__art { width: 96px; border-radius: 12px; }
	.game-hero__art span { font-size: 26px; -webkit-text-stroke-width: 1.5px; }
	.game-hero__title { font-size: 24px; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
	.social--grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
