/*
Theme Name: GameGuide
Theme URI: http://localhost:8080
Author: GameGuide
Description: Современная тема для игрового новостного сайта: тёмная/светлая схема, бесконечная лента, оценки-кольца, реакции, мобильная навигация, гибкие настройки.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: gameguide
*/

/* ==========================================================================
   Tokens
   Surfaces are separated by tone and shadow, not by borders.
   ========================================================================== */
:root {
	--bg: #0c0d11;
	--bg-2: #111318;
	--surface: #171a21;
	--surface-2: #1f232c;
	--surface-3: #282d38;
	--line: rgba(255, 255, 255, .06);
	--text: #f1f2f6;
	--muted: #8f95a5;
	--accent: #7c5cff;
	--accent-2: #00d1b2;
	--hot: #ff4d6d;
	--good: #2fd67b;
	--mid: #f5b82e;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow-sm: inset 0 1px 0 rgba(255, 255, 255, .04), 0 1px 2px rgba(0, 0, 0, .3);
	--shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 32px -12px rgba(0, 0, 0, .6);
	--shadow-lg: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 48px -16px rgba(0, 0, 0, .7);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Unbounded", "Inter", system-ui, sans-serif;
	--wrap: 1240px;
	--header-h: 68px;
	--bar-h: 64px;
}
:root[data-theme="light"] {
	--bg: #f3f4f7;
	--bg-2: #eceef2;
	--surface: #ffffff;
	--surface-2: #f4f5f8;
	--surface-3: #e8eaf0;
	--line: rgba(15, 20, 35, .07);
	--text: #12141a;
	--muted: #5f6677;
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
	--shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -12px rgba(16, 24, 40, .14);
	--shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 48px -16px rgba(16, 24, 40, .2);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	transition: background .2s, color .2s;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
img.emoji { display: inline !important; width: 1em !important; height: 1em !important; margin: 0 .07em !important; vertical-align: -.1em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	backdrop-filter: saturate(160%) blur(16px);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	box-shadow: 0 1px 0 var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo-mark {
	width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.main-nav { flex: 1; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .15s, background .15s; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-cat > a { color: var(--text); background: var(--surface); }
.main-nav .sub-menu { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
	width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 0;
	background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--accent); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }
.search-drop { display: none; padding: 14px 0 18px; }
.search-drop.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 12px; border: 0;
	background: var(--surface); color: var(--text); font: 16px var(--font); box-shadow: var(--shadow-sm);
}
.search-form input:focus { outline: 2px solid var(--accent); }

/* Menu bar under the header */
.platform-bar ul { list-style: none; margin: 0; padding: 12px 0 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.platform-bar ul::-webkit-scrollbar { display: none; }
.platform-bar a {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px;
	background: var(--surface); font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--muted); transition: color .15s, background .15s;
}
.platform-bar a:hover { color: var(--text); background: var(--surface-2); }
.platform-bar .current-menu-item > a { color: #fff; background: var(--accent); }
.platform-bar .hot > a { color: var(--hot); background: color-mix(in srgb, var(--hot) 12%, var(--surface)); }
.platform-bar .hot > a:hover, .platform-bar .hot.current-menu-item > a { color: #fff; background: var(--hot); }

/* ==========================================================================
   Chips, meta, score ring
   ========================================================================== */
.chip {
	display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 7px; font-size: 11.5px; font-weight: 700;
	letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: #fff;
}
.chip:hover { color: #fff; filter: brightness(1.1); }
.chip--review { background: var(--accent-2); color: #04211c; }
.chip--review:hover { color: #04211c; }
.chip--guide { background: #ffb020; color: #2a1c00; }
.chip--guide:hover { color: #2a1c00; }
.chip--hardware { background: #3aa0ff; }
.chip--list { background: #ff5d8f; }
.chip--long { background: var(--surface-3); color: var(--text); }
.chip--long:hover { color: var(--text); }
.platforms { display: flex; flex-wrap: wrap; gap: 4px; }
.platform-tag { display: inline-flex; align-items: center; height: 24px; font-size: 11.5px; font-weight: 600; padding: 0 8px; border-radius: 7px; background: var(--surface-2); color: var(--muted); }
.platform-tag:hover { color: var(--text); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.meta > span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 15px; height: 15px; opacity: .75; }
.react-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }

/* Score ring: --p is 0–100 */
.score {
	--size: 54px; --score-c: var(--good);
	position: relative; display: inline-grid; place-items: center; flex: none;
	width: var(--size); height: var(--size); border-radius: 50%;
	background: rgba(10, 11, 15, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .5);
}
.score--mid { --score-c: var(--mid); }
.score--low { --score-c: var(--hot); }
.score svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.score circle { fill: none; stroke-width: 3; }
.score-track { stroke: rgba(255, 255, 255, .14); }
.score-bar {
	stroke: var(--score-c); stroke-linecap: round; stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--p));
	transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1);
	filter: drop-shadow(0 0 4px color-mix(in srgb, var(--score-c) 60%, transparent));
}
.js .score:not(.is-drawn) .score-bar { stroke-dashoffset: 100; }
.score b { position: relative; font-family: var(--font-head); font-size: calc(var(--size) * .32); font-weight: 700; color: #fff; letter-spacing: -.03em; }
.score--sm { --size: 42px; box-shadow: none; }
.score--lg { --size: 96px; background: var(--surface-2); box-shadow: none; backdrop-filter: none; }
.score--lg .score-track { stroke: var(--surface-3); }
.score--lg b { color: var(--text); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 24px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.9fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; height: 520px; }
.hero-card { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--surface); isolation: isolate; box-shadow: var(--shadow); }
.hero-card:first-child { grid-row: span 2; }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); z-index: -2; }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6, 7, 10, .92) 0%, rgba(6, 7, 10, .45) 45%, rgba(6, 7, 10, 0) 75%); }
.hero-card:hover img { transform: scale(1.05); }
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: #fff; }
.hero-body h2 { font-size: 21px; margin: 12px 0 10px; }
.hero-card:first-child .hero-body { padding: 36px; }
.hero-card:first-child h2 { font-size: clamp(28px, 3.2vw, 42px); max-width: 16ch; }
.hero-body .meta { color: rgba(255, 255, 255, .78); }
.hero-card a.cover-link { position: absolute; inset: 0; z-index: 1; }
.hero-body .chip, .hero-body .platforms { position: relative; z-index: 2; }
.hero-card:hover h2 { color: #fff; }

/* ==========================================================================
   Layout
   ========================================================================== */
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 40px; padding-bottom: 72px; }
.content-main { min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2, .section-title { font-size: 28px; margin: 0; }
.section-head--tabs { justify-content: flex-start; }
.tabs ul { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; flex-wrap: wrap; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-sm); }
.tabs a { display: block; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 9px; color: var(--muted); white-space: nowrap; transition: color .15s, background .15s; }
.tabs a:hover { color: var(--text); }
.tabs .current-menu-item > a { background: var(--surface-3); color: var(--text); }

/* ==========================================================================
   Cards — no outlines; tone + shadow, big titles
   ========================================================================== */
.feed { display: flex; flex-direction: column; gap: 24px; }
.card {
	position: relative; display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 0;
	background: var(--surface); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow);
	transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb .score { position: absolute; right: 12px; bottom: 12px; }
.card-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px 26px; }
.card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-title { font-size: 22px; line-height: 1.2; margin: 0; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body .meta { margin-top: auto; padding-top: 4px; }
.card .chip, .card .platform-tag { position: relative; z-index: 2; }

.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-cards .card, .feed--grid .card { grid-template-columns: 1fr; }
.grid-cards .card-body { padding: 16px 18px 18px; }
.grid-cards .card-title { font-size: 17px; }
.grid-cards .card-excerpt { display: none; }
.feed--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feed--grid .card-title { font-size: 19px; }
.gg-no-sidebar .feed--grid { grid-template-columns: repeat(3, 1fr); }

/* Hot strip (phones/tablets only; replaces the sidebar above an endless feed) */
.hot-strip { display: none; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 24px; }
.sidebar-sticky.is-static { position: static; }
.widget { background: var(--surface); border-radius: calc(var(--radius) + 4px); padding: 22px; box-shadow: var(--shadow); }
.widget-title { font-size: 17px; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.widget-icon {
	flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
	color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.widget-icon svg { width: 17px; height: 17px; }
.widget-icon--hot { color: var(--hot); background: color-mix(in srgb, var(--hot) 15%, transparent); }
.widget-icon--review { color: var(--mid); background: color-mix(in srgb, var(--mid) 15%, transparent); }
.widget-more { margin-left: auto; font: 600 13px var(--font); color: var(--muted); padding: 5px 11px; border-radius: 8px; background: var(--surface-2); }
.widget ul, .widget ol { list-style: none; margin: 0; padding: 0; }

.hot-list li { display: grid; grid-template-columns: 30px 1fr; gap: 4px 10px; padding: 14px 0; box-shadow: 0 -1px 0 var(--line); }
.hot-list li:first-child { box-shadow: none; padding-top: 0; }
.hot-lead { grid-template-columns: 1fr !important; }
.hot-lead .hot-num { display: none; }
.hot-cover { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.hot-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hot-lead:hover .hot-cover img { transform: scale(1.05); }
.hot-badge { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 7px; background: var(--hot); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hot-lead .hot-title { font-size: 17px; font-family: var(--font-head); letter-spacing: -.01em; line-height: 1.25; }
.hot-num { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--muted); opacity: .5; transition: color .2s, opacity .2s; }
.hot-list li:nth-child(-n+3) .hot-num, .hot-list li:hover .hot-num { opacity: 1; }
.hot-list li:nth-child(2) .hot-num, .hot-list li:hover .hot-num { color: var(--accent); }
.hot-title { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.hot-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.hot-comments { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-weight: 700; color: var(--hot); background: color-mix(in srgb, var(--hot) 12%, transparent); }
.hot-comments svg { width: 12px; height: 12px; }

.review-list { display: grid; gap: 4px; }
.review-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 12px; transition: background .15s; }
.review-item:hover { background: var(--surface-2); color: var(--text); }
.review-thumb img { width: 60px; height: 60px; object-fit: cover; border-radius: 12px; }
.review-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.review-game { font-weight: 700; font-size: 15px; line-height: 1.3; }
.review-plats { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { display: inline-flex; align-items: center; gap: 6px; height: 34px; font-size: 13px !important; font-weight: 500; padding: 0 12px; border-radius: 10px; background: var(--surface-2); color: var(--text); transition: background .15s, color .15s; }
.tag-cloud a span { font-size: 11px; font-weight: 700; color: var(--muted); }
.tag-cloud a:hover { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); color: var(--text); }

.widget-cta { position: relative; overflow: hidden; color: #fff; padding: 26px; background: radial-gradient(120% 120% at 100% 0%, #25c2ff 0%, transparent 45%), linear-gradient(135deg, var(--accent), #3a1fb8); box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--accent) 70%, transparent); }
.widget-cta::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 24px solid rgba(255, 255, 255, .08); }
.widget-cta .widget-title { font-size: 20px; margin-bottom: 8px; }
.cta-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .18); margin-bottom: 16px; }
.cta-icon svg { width: 20px; height: 20px; }
.widget-cta p { margin: 0 0 18px; opacity: .9; font-size: 14px; }
.widget-cta .btn { position: relative; z-index: 1; width: 100%; }

/* Block widgets added from the admin */
.widget .wp-block-heading, .widget h2 { font-size: 17px; margin: 0 0 16px; }
.widget .wp-block-latest-posts li, .widget .wp-block-categories li, .widget .wp-block-archives li, .widget .wp-block-latest-comments li { padding: 9px 0; box-shadow: 0 -1px 0 var(--line); font-size: 14px; font-weight: 600; }
.widget .wp-block-latest-posts li:first-child, .widget .wp-block-categories li:first-child, .widget .wp-block-archives li:first-child { box-shadow: none; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.widget .wp-block-search__input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text); font: 16px var(--font); }
.widget .wp-block-search__button { height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: 700 14px var(--font); cursor: pointer; }

/* ==========================================================================
   Buttons, pagination, infinite feed
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer; background: var(--accent); color: #fff; font: 700 15px var(--font); transition: filter .15s, transform .15s; }
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn--light { background: #fff; color: #1b1340; }
.btn--light:hover { color: #1b1340; }
.btn--ghost { background: var(--surface); color: var(--text); min-width: 240px; box-shadow: var(--shadow); }
.btn--ghost:hover { color: var(--text); background: var(--surface-2); filter: none; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 600; }
.pagination .page-numbers.current { background: var(--accent); color: #fff; }

.feed-more { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.feed-more [data-feed-button] { display: none; }
.feed-more.is-manual [data-feed-button] { display: inline-flex; }
.feed-more.is-loading [data-feed-button] { display: none; }
.feed-skeleton { display: none; width: 100%; flex-direction: column; gap: 24px; }
.feed-more.is-loading .feed-skeleton, .feed-more:not(.is-manual) .feed-skeleton { display: flex; }
.feed-skeleton span {
	display: block; height: 188px; border-radius: calc(var(--radius) + 4px);
	background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 40%, var(--surface) 80%) 0 0 / 200% 100%;
	animation: gg-shimmer 1.4s linear infinite;
}
@keyframes gg-shimmer { to { background-position: -200% 0; } }
.feed-end { margin: 32px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.feed-end::before { content: "🎮"; display: block; font-size: 30px; margin-bottom: 6px; }

/* ==========================================================================
   Single
   ========================================================================== */
.single-head { padding-top: 40px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--accent); }
.single-title { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.08; margin: 16px 0 18px; max-width: 22ch; }
.single-lead { font-size: 21px; line-height: 1.5; color: var(--muted); margin: 0 0 24px; max-width: 760px; }
.author-line { display: flex; align-items: center; gap: 12px; }
.author-line img { width: 44px; height: 44px; border-radius: 50%; }
.author-line strong { display: block; font-size: 15px; margin-bottom: 2px; }
.single-cover { margin: 32px 0 0; border-radius: calc(var(--radius) + 8px); overflow: hidden; aspect-ratio: 21/9; background: var(--surface); box-shadow: var(--shadow-lg); }
.single-cover img { width: 100%; height: 100%; object-fit: cover; }

.entry-content { font-size: 19px; line-height: 1.75; max-width: 740px; }
.entry-content > * { margin: 0 0 1.25em; }
.entry-content h2 { font-size: 30px; margin-top: 1.7em; }
.entry-content h3 { font-size: 23px; margin-top: 1.5em; }
.entry-content h4 { font-size: 19px; margin-top: 1.4em; }
.entry-content h2 + h3, .entry-content h3 + h4 { margin-top: .6em; }
.entry-content .wp-block-image { margin: 1.6em 0; }
.entry-content .wp-block-image img { width: 100%; box-shadow: var(--shadow); }
.entry-content .wp-block-table { overflow-x: auto; margin: 1.6em 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.entry-content th, .entry-content td { padding: 12px 16px; text-align: left; vertical-align: top; box-shadow: inset 0 -1px 0 var(--line); }
.entry-content th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
.entry-content tr:last-child td { box-shadow: none; }
.entry-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 22px 26px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-size: 20px; font-style: italic; position: relative; }
.entry-content blockquote::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.entry-content blockquote p { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--muted); }
.entry-content img, .entry-content iframe { border-radius: var(--radius); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: .88em; }

.game-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 24px 28px; margin: 0 0 36px; background: var(--surface); border-radius: calc(var(--radius) + 4px); max-width: 740px; box-shadow: var(--shadow); }
.game-card-score { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.game-card-score > span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.game-card dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; margin: 0; }
.game-card dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.game-card dd { margin: 0; font-weight: 600; }

.verdict { max-width: 740px; margin: 40px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.verdict > div { padding: 22px 24px; border-radius: calc(var(--radius) + 4px); background: var(--surface); box-shadow: var(--shadow); }
.verdict h4 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.verdict .pros h4::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.verdict .cons h4::before { content: "−"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: color-mix(in srgb, var(--hot) 18%, transparent); color: var(--hot); }
.verdict ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }

/* Reactions */
.reactions { max-width: 740px; margin: 40px 0 0; padding: 24px; border-radius: calc(var(--radius) + 4px); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.reactions-title { font-size: 18px; margin: 0 0 18px; }
.reaction-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.reaction {
	display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border: 0; border-radius: 14px;
	background: var(--surface-2); cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.reaction:hover { background: var(--surface-3); transform: translateY(-2px); }
.reaction:active { transform: scale(.95); }
.reaction-emoji { font-size: 30px; line-height: 1.1; transition: transform .2s; }
.reaction-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.reaction-count { font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.reaction[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); box-shadow: inset 0 0 0 2px var(--accent); }
.reaction[aria-pressed="true"] .reaction-label { color: var(--text); }
.reaction.is-pop .reaction-emoji { animation: gg-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes gg-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }
.reactions.is-busy .reaction { pointer-events: none; }

.entry-footer { max-width: 740px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding: 28px 0 0; margin-top: 28px; box-shadow: 0 -1px 0 var(--line); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm); transition: background .15s; }
.share a:hover { background: var(--surface-2); color: var(--text); }
.related { margin-top: 56px; }
.related .section-title { margin-bottom: 22px; }

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area { max-width: 740px; margin-top: 56px; }
.comments-area .section-title { margin-bottom: 22px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-metadata a { color: var(--muted); }
.comment-respond { padding: 24px; border-radius: calc(var(--radius) + 4px); background: var(--surface); box-shadow: var(--shadow); }
.comment-respond textarea, .comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"] {
	width: 100%; padding: 13px 15px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text); font: 16px var(--font);
}
.comment-respond textarea:focus, .comment-respond input:focus { outline: 2px solid var(--accent); }
.comment-respond .submit { height: 48px; padding: 0 24px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font: 700 15px var(--font); cursor: pointer; }

/* ==========================================================================
   Archive, empty, footer
   ========================================================================== */
.archive-head { padding-top: 44px; }
.archive-head h1 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 10px; }
.archive-head p { color: var(--muted); margin: 0; max-width: 680px; font-size: 17px; }
.empty { padding: 64px 24px; text-align: center; background: var(--surface); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.empty .big { font-family: var(--font-head); font-size: 110px; font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.site-footer { background: var(--bg-2); padding: 56px 0 32px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--font); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer p { margin: 14px 0 0; max-width: 320px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; box-shadow: 0 -1px 0 var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials a { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text); box-shadow: var(--shadow-sm); }
.socials a:hover { background: var(--surface-2); color: var(--text); }
.age-badge { padding: 2px 8px; border-radius: 6px; background: var(--surface); font-weight: 700; color: var(--text); }
.to-top { position: fixed; right: 20px; bottom: 20px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: translateY(8px); z-index: 40; box-shadow: var(--shadow-lg); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Mobile bottom bar and menu sheet (shown on phones) */
.mobile-bar, .menu-sheet { display: none; }

/* Reading progress */
.reading-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.reading-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ==========================================================================
   Options-driven variants
   ========================================================================== */
.gg-static-header .site-header { position: relative; }
.gg-static-header .sidebar-sticky { top: 20px; }
.gg-no-sidebar .content-area { grid-template-columns: minmax(0, 1fr); max-width: 960px; }
.gg-no-sidebar .grid-cards { grid-template-columns: repeat(3, 1fr); }
.hero-grid--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hero-grid--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.hero-grid--1 .hero-card:first-child, .hero-grid--2 .hero-card:first-child { grid-row: auto; }

/* Motion */
.gg-motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.gg-motion .reveal.is-visible { opacity: 1; transform: none; }
.gg-motion .card.reveal.is-visible:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.gg-motion .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1080px) {
	.content-area { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.sidebar { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
	.sidebar-sticky { display: contents; }
	.grid-cards { grid-template-columns: repeat(2, 1fr); }
	.grid-cards .card:nth-child(3) { display: none; }

	/* Endless feed: sidebar would be unreachable — show the hot strip instead */
	.gg-feed-page .sidebar { display: none; }
	.hot-strip { display: block; margin: 0 0 28px; }
	.hot-strip-title { font-size: 18px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
	.hot-strip-list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 12px; scroll-padding: 0 20px; }
	.hot-strip-list::-webkit-scrollbar { display: none; }
	.hot-strip-item { flex: 0 0 min(280px, 72%); scroll-snap-align: start; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
	.hot-strip-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
	.hot-strip-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
	.hot-strip-name { font-weight: 700; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
	.hot-strip-body .hot-meta { margin-top: 0; }
}

@media (max-width: 860px) {
	:root { --header-h: 58px; }
	.wrap { padding: 0 16px; }
	.logo { font-size: 18px; }
	.logo-mark { width: 32px; height: 32px; border-radius: 10px; }
	.menu-toggle { display: grid; }

	/* Header slides away while reading down (JS toggles .is-hidden) */
	.site-header { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
	.site-header.is-hidden { transform: translateY(-100%); }

	/* Main menu moves into a bottom sheet (#menu-sheet, rendered in the footer) */
	.main-nav { display: none; }
	.menu-sheet {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: block;
		padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--surface);
		border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px rgba(0, 0, 0, .45);
		transform: translateY(105%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s;
	}
	.menu-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--surface-3); margin: 0 auto 14px; }
	.menu-sheet.is-open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
	.menu-sheet ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
	.menu-sheet a { display: block; font-family: var(--font-head); font-weight: 700; font-size: 20px; padding: 14px 12px; color: var(--text); border-radius: 12px; }
	.menu-sheet .current-menu-item > a, .menu-sheet .current-cat > a { background: var(--surface-2); color: var(--accent); }
	body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .5); backdrop-filter: blur(2px); }

	/* Hero becomes a swipe carousel */
	.hero { padding-top: 16px; }
	.hero-grid, .hero-grid--1, .hero-grid--2 {
		display: flex; height: auto; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		padding: 0 16px 4px; scroll-padding: 0 16px;
	}
	.hero-grid::-webkit-scrollbar { display: none; }
	.hero-card, .hero-card:first-child { flex: 0 0 86%; height: 420px; scroll-snap-align: start; border-radius: 20px; }
	.hero-grid--1 .hero-card { flex-basis: 100%; }
	.hero-card:first-child .hero-body, .hero-body { padding: 22px; }
	.hero-card:first-child h2, .hero-body h2 { font-size: 23px; max-width: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

	.content-area { padding-top: 28px; gap: 32px; }
	.section-head { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 18px; }
	.section-head h2, .section-title { font-size: 24px; }
	.tabs { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
	.tabs::-webkit-scrollbar { display: none; }
	.tabs ul { flex-wrap: nowrap; width: max-content; }
	.hot-strip-list { margin: 0 -16px; padding: 2px 16px 12px; scroll-padding: 0 16px; }

	.card { grid-template-columns: 220px 1fr; }
	.card-body { padding: 18px 20px; }
	.card-title { font-size: 19px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ==========================================================================
   Phone
   ========================================================================== */
@media (max-width: 600px) {
	body { font-size: 16px; }

	/* Feed rhythm: first card large, the rest compact rows with a thumbnail on the right */
	.feed { gap: 12px; }
	.feed > .card { grid-template-columns: 1fr 108px; border-radius: 16px; }
	.feed > .card .card-thumb { order: 2; aspect-ratio: auto; height: 100%; min-height: 108px; }
	.feed > .card .card-body { padding: 14px 4px 14px 16px; gap: 8px; }
	.feed > .card .card-title { font-size: 16px; line-height: 1.3; font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
	.feed > .card .card-excerpt, .feed > .card .platforms { display: none; }
	.feed > .card .chip { height: 20px; font-size: 10.5px; padding: 0 7px; }
	.feed > .card .meta { gap: 4px 12px; font-size: 12px; }
	.feed > .card .card-thumb .score { --size: 38px; right: 8px; bottom: 8px; }
	.feed > .card:first-child, .feed--grid > .card { grid-template-columns: 1fr; }
	.feed > .card:first-child .card-thumb, .feed--grid > .card .card-thumb { order: 0; aspect-ratio: 16/9; height: auto; min-height: 0; }
	.feed > .card:first-child .card-body { padding: 16px 18px 18px; }
	.feed > .card:first-child .card-title { font-family: var(--font-head); font-size: 21px; line-height: 1.2; }
	.feed > .card:first-child .card-excerpt { display: -webkit-box; }
	.feed > .card:first-child .card-thumb .score { --size: 50px; right: 12px; bottom: 12px; }
	.card:hover { transform: none; }
	.feed-skeleton span { height: 108px; border-radius: 16px; }

	.grid-cards, .sidebar, .feed--grid, .gg-no-sidebar .feed--grid, .gg-no-sidebar .grid-cards { grid-template-columns: 1fr; }
	.grid-cards .card:nth-child(3) { display: grid; }
	.widget { padding: 18px; }

	/* Article */
	.single-head { padding-top: 20px; }
	.single-title { font-size: 30px; margin: 12px 0 14px; }
	.single-lead { font-size: 18px; }
	.single-cover { margin: 24px -16px 0; border-radius: 0; aspect-ratio: 16/10; box-shadow: none; }
	.entry-content { font-size: 18px; line-height: 1.7; }
	.entry-content h2 { font-size: 24px; }
	.entry-content h3 { font-size: 20px; }
	.entry-content blockquote { padding: 18px 20px; font-size: 18px; }
	.game-card { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
	.game-card-score { flex-direction: row; gap: 14px; }
	.score--lg { --size: 76px; }
	.verdict { grid-template-columns: 1fr; }
	.reactions { padding: 20px 14px; }
	.reaction-list { gap: 8px; }
	.reaction { padding: 12px 4px 10px; }
	.reaction-emoji { font-size: 28px; }
	.reaction-label { font-size: 11px; }
	.entry-footer { flex-direction: column; align-items: stretch; }
	.share { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.share a { flex: 1 0 auto; justify-content: center; height: 44px; }
	.comment-respond { padding: 18px; }
	.archive-head { padding-top: 28px; }

	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Mobile bottom bar (≤860px, when enabled)
   ========================================================================== */
@media (max-width: 860px) {
	.gg-mobile-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
	.gg-mobile-bar .header-actions { display: none; }
	.gg-mobile-bar .mobile-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; display: flex;
		height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
		background: color-mix(in srgb, var(--surface) 88%, transparent);
		backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
		box-shadow: 0 -1px 0 var(--line);
	}
	.mobile-bar a, .mobile-bar button {
		flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		border: 0; background: none; padding: 0; color: var(--muted); font-size: 10.5px; font-weight: 600; cursor: pointer;
	}
	.mobile-bar svg { width: 23px; height: 23px; transition: transform .15s; }
	.mobile-bar .is-active, .mobile-bar [aria-expanded="true"] { color: var(--accent); }
	.mobile-bar a:active svg, .mobile-bar button:active svg { transform: scale(.88); }
	.gg-mobile-bar .menu-sheet { bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: 16px; }
	.gg-mobile-bar .to-top { bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); right: 16px; }
}
