/*
Theme Name: SteamCut
Theme URI: https://steamcut.com
Author: SteamCut
Description: Dark game download theme built around game artwork. Rotating banner with game logos, top-10 trending row, cover grid, recently updated list, genre tiles, and a game page with a download box (main link plus mirrors), screenshots, requirements and install steps. System fonts only, no external requests.
Version: 3.3.0
Requires at least: 6.0
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: steamcut
Tags: dark, games, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #08090c;
	--bg-2: #0d0f14;
	--panel: #12151b;
	--panel-2: #181c23;
	--line: rgba(255, 255, 255, .07);
	--line-2: rgba(255, 255, 255, .13);
	--text: #f3f5f8;
	--body: #c3c8d1;
	--soft: #a0a7b3;
	--dim: #666d79;
	--acc: #b6f23e;
	--acc-hi: #cbff5c;
	--ink: #0b0e04;
	--r: 10px;
	--hdr: 72px;
	--wrap: 1320px;
	--font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--body); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--text); margin: 0; font-weight: 600; letter-spacing: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: var(--acc); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 880px; }
.icon { flex: none; }
.muted { color: var(--soft); margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--acc); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons & badges ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	height: 44px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent;
	font-size: 14.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.btn small { font-weight: 600; font-size: 13px; opacity: .65; }
.btn-primary { background: var(--acc); color: var(--ink); }
.btn-primary:hover { background: var(--acc-hi); color: var(--ink); }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn-block { width: 100%; }

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 4px; background: rgba(255, 255, 255, .09); border: 1px solid var(--line-2); color: #e6e9ee; }
a.badge:hover { border-color: var(--acc); color: var(--acc); }
.badge-v { background: var(--acc); border-color: var(--acc); color: var(--ink); font-weight: 600; }

.icon-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 0; border-radius: 8px; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Header ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.admin-bar .hdr { top: 32px; }
.hdr.is-solid, body:not(.has-hero) .hdr, .nav-open .hdr { background: rgba(8, 9, 12, .94); border-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body:not(.has-hero) .site-main { padding-top: var(--hdr); }
.hdr-row { display: flex; align-items: center; gap: 34px; height: var(--hdr); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.logo b { color: var(--acc); font-weight: 800; }
.mark { width: 30px; height: 30px; flex: none; color: var(--acc); }
.custom-logo { max-height: 38px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 26px; }
.main-nav li { position: relative; }
.main-nav a { display: flex; align-items: center; height: var(--hdr); font-size: 14.5px; font-weight: 500; color: #cfd4dc; box-shadow: inset 0 -2px 0 transparent; }
.main-nav a:hover { color: #fff; }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: #fff; box-shadow: inset 0 -2px 0 var(--acc); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: -14px; min-width: 210px; padding: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); }
.main-nav .sub-menu a { height: auto; padding: 8px 12px; border-radius: 6px; box-shadow: none; }
.main-nav .sub-menu a:hover { background: var(--panel-2); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }

.hdr-search { margin-left: auto; width: 300px; }
.search-form { position: relative; display: flex; align-items: center; }
.search-form .icon { position: absolute; left: 14px; color: var(--soft); pointer-events: none; }
.search-form input {
	width: 100%; height: 40px; padding: 0 40px 0 40px; border-radius: 6px;
	background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: var(--text);
}
.search-form input::placeholder { color: var(--soft); }
.search-form input:focus { outline: none; border-color: var(--acc); background: rgba(255, 255, 255, .09); }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form kbd { position: absolute; right: 12px; font: 11px ui-monospace, Consolas, monospace; color: var(--soft); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; pointer-events: none; }
.search-form input:focus + kbd { display: none; }
.pill-link { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text); }
.pill-link:hover { border-color: #fff; }

/* ---------- Home banner ---------- */
.hero { position: relative; height: min(660px, 86vh); min-height: 520px; overflow: hidden; background: var(--bg-2); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.hero-art { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.hero-art::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(8, 9, 12, .75) 0%, rgba(8, 9, 12, 0) 18%),
		linear-gradient(90deg, rgba(8, 9, 12, .96) 0%, rgba(8, 9, 12, .78) 34%, rgba(8, 9, 12, .15) 70%, rgba(8, 9, 12, .35) 100%),
		linear-gradient(0deg, var(--bg) 0%, rgba(8, 9, 12, 0) 32%);
}
.hero-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 76px; }
.hero-body .badges { margin-bottom: 16px; }
.hero-body p { max-width: 500px; margin: 0 0 26px; color: #c9ced6; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.game-logo { margin: 0 0 22px; }
.game-logo img { width: auto; max-width: min(420px, 100%); max-height: 150px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .6)); }
.game-name { margin: 0 0 18px; max-width: 720px; font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: #fff; }

.hero-thumbs { position: absolute; right: max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); bottom: 76px; z-index: 3; display: flex; gap: 12px; }
.hthumb { width: 120px; padding: 0; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; opacity: .55; transition: opacity .2s; }
.hthumb:hover, .hthumb.is-on { opacity: 1; }
.hthumb img, .hthumb .cover-ph { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 8px; border: 2px solid transparent; }
.hthumb.is-on img { border-color: var(--acc); }
.hthumb span { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hthumb i { display: block; height: 2px; margin-top: 6px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.hthumb.is-on i::after { content: ""; display: block; height: 100%; background: var(--acc); animation: sc-progress 7s linear; }
@keyframes sc-progress { from { width: 0; } to { width: 100%; } }
.hero-dots { display: none; position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; justify-content: center; gap: 8px; }
.hdot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .25s, background .25s; }
.hdot.is-on { width: 26px; background: var(--acc); }

/* ---------- Sections ---------- */
.sec { padding-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 20px; font-weight: 600; }
.section-head .more { font-size: 14px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.section-head .more:hover { color: var(--acc); }
.scroll-ctl { display: flex; gap: 8px; }
.arw { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.arw:hover { border-color: #fff; }

/* Genre shortcuts */
.chips { display: flex; gap: 8px; margin: -6px 0 22px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--body); }
.chips a span { margin-left: 2px; font-weight: 500; color: var(--dim); }
.chips a:hover { border-color: var(--acc); color: var(--acc); }
.chips a.is-on { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Top 10 */
.top10 { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; }
.top10::-webkit-scrollbar { display: none; }
.top-item { position: relative; flex: none; display: flex; align-items: flex-end; scroll-snap-align: start; }
.top-n { position: relative; z-index: 0; margin-right: -12px; font-size: 170px; font-weight: 700; line-height: .78; letter-spacing: -.06em; color: var(--bg); -webkit-text-stroke: 2px #3b414c; transition: -webkit-text-stroke-color .2s; }
.top-cover { position: relative; z-index: 1; width: 178px; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .2s; }
.top-cover img, .top-cover .cover-ph { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.top-item:hover .top-cover { box-shadow: 0 0 0 2px var(--acc); }
.top-item:hover .top-n { -webkit-text-stroke-color: var(--acc); }

/* Cover grid */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-cover { position: relative; border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.card-cover img, .card-cover .cover-ph { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .4s; }
.card:hover .card-cover { box-shadow: 0 0 0 2px var(--acc); }
.card:hover .card-cover img { transform: scale(1.05); }
.ver { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--text); background: rgba(8, 9, 12, .75); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fresh { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--acc); color: var(--ink); }
.card-ov { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px; background: linear-gradient(0deg, rgba(8, 9, 12, .95), rgba(8, 9, 12, 0)); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.card:hover .card-ov, .card a:focus-visible .card-ov { opacity: 1; transform: none; }
.card-ov b { font-size: 13px; color: var(--text); }
.dl-dot { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--acc); color: var(--ink); }
.card h3 { margin: 12px 0 2px; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card:hover h3 { color: var(--acc); }
.card small { font-size: 13px; color: var(--dim); }

.cover-ph { display: flex; align-items: flex-end; padding: 12px; background: var(--panel-2); color: var(--soft); }
.cover-ph span { font-size: 14px; font-weight: 700; line-height: 1.2; }

/* Recently updated + genres */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; }
.urows { display: flex; flex-direction: column; gap: 2px; }
.urow { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px; border-radius: var(--r); transition: background .15s; }
.urow:hover { background: var(--panel); }
.urow-thumb { display: block; border-radius: 7px; overflow: hidden; background: var(--panel-2); }
.urow-thumb img, .urow-thumb .cover-ph { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; }
.urow-thumb .cover-ph span { display: none; }
.urow-main { min-width: 0; }
.urow-main strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.urow-main small { display: block; margin-top: 3px; font-size: 13px; color: var(--soft); }
.urow-main em { font-style: normal; font-weight: 600; color: var(--acc); }
.urow-side { text-align: right; font-size: 13px; color: var(--dim); }
.urow-side b { display: block; font-size: 14px; color: var(--text); }

.gtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gtile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 104px; padding: 14px 16px; border-radius: var(--r); overflow: hidden; background: var(--panel) center / cover no-repeat; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.gtile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 12, .92), rgba(8, 9, 12, .35)); }
.gtile b, .gtile small { position: relative; }
.gtile b { font-size: 16px; font-weight: 600; color: var(--text); }
.gtile small { font-size: 12.5px; color: var(--soft); }
.gtile:hover { box-shadow: 0 0 0 2px var(--acc); }

/* ---------- List pages ---------- */
.page-top { padding-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); }
.crumbs .icon { color: var(--dim); }
.crumbs a:hover { color: var(--acc); }
.crumbs span { color: var(--text); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 18px 0 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 28px; font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--soft); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.tabs a { padding: 7px 16px; border-radius: 5px; font-size: 14px; font-weight: 600; color: var(--soft); }
.tabs a:hover { color: var(--text); }
.tabs a.is-on { background: var(--text); color: var(--bg); }

.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; }
a.page-numbers:hover { border-color: var(--acc); color: var(--acc); }
.page-numbers.current { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.page-numbers.dots { border: 0; }

.empty { margin: 0; padding: 56px 24px; text-align: center; color: var(--soft); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty p { margin: 0 0 18px; }
.empty .search-form, .notfound .search-form { max-width: 440px; margin: 0 auto; }

/* ---------- Game page ---------- */
.ghero { position: relative; overflow: hidden; background: var(--bg-2); }
.ghero .hero-art::after {
	background:
		linear-gradient(180deg, rgba(8, 9, 12, .8) 0%, rgba(8, 9, 12, .35) 30%, rgba(8, 9, 12, .55) 70%, var(--bg) 100%),
		linear-gradient(90deg, rgba(8, 9, 12, .85) 0%, rgba(8, 9, 12, .2) 75%);
}
.ghero-body { position: relative; z-index: 2; padding-top: calc(var(--hdr) + 24px); padding-bottom: 48px; }
.ghead { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: end; margin-top: 40px; }
.ghead-cover { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -20px rgba(0, 0, 0, .8); }
.ghead-cover img, .ghead-cover .cover-ph { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.ghead-info .game-logo { margin-bottom: 20px; }
.ghead-info .game-logo img { max-height: 130px; }
.ghead-info .game-name { font-size: 40px; }
.ghead-info .badges { margin-bottom: 16px; }
.lead { max-width: 640px; margin: 0 0 24px; font-size: 16px; color: #d0d5dc; }
.views { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-size: 13px; color: var(--soft); }

.gbody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-top: 24px; }
.gmain { min-width: 0; }
.gsec { margin-bottom: 44px; }
.gsec-title { margin-bottom: 14px; font-size: 18px; font-weight: 600; }

.prose { font-size: 16px; line-height: 1.75; color: var(--body); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose h2, .prose h3 { margin: 1.4em 0 .5em; }
.prose h2 { font-size: 21px; }
.prose h3 { font-size: 18px; }
.prose a { color: var(--acc); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: 8px; }
.prose blockquote { margin: 1.2em 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--acc); color: var(--text); }
.prose strong { color: var(--text); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shots a { display: block; border-radius: 8px; overflow: hidden; background: var(--panel); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s, opacity .2s; }
.shots a:hover img { transform: scale(1.04); opacity: .9; }

.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { padding: 4px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.req h3 { padding: 12px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); border-bottom: 1px solid var(--line); }
.req + .req h3 { color: var(--acc); }
.req dl { margin: 0; }
.req dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.req dl div + div { border-top: 1px solid var(--line); }
.req dt { font-size: 13px; color: var(--dim); }
.req dd { margin: 0; font-size: 14px; color: var(--text); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 10px 0 10px 46px; color: var(--body); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--acc); color: var(--acc); font-size: 13px; font-weight: 700; }

.dlbox-sub { margin: 16px 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.mirrors { list-style: none; margin: 0; padding: 0; }
.mirrors li + li { border-top: 1px solid var(--line); }
.mirrors a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; font-size: 14px; color: var(--text); }
.mirrors a:hover span { color: var(--acc); }
.mirrors small { font-size: 12.5px; color: var(--dim); }
.btn-off { background: var(--panel-2); border-color: var(--line-2); color: var(--soft); cursor: default; }

.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -20px 0 44px; }
.post-tags a { padding: 4px 12px; font-size: 12.5px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--soft); }
.post-tags a:hover { border-color: var(--acc); color: var(--acc); }

.gside { display: flex; flex-direction: column; gap: 18px; }
.box { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.box-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.box ul { list-style: none; margin: 0; padding: 0; }
.dlbox-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dlbox-cover { flex: none; width: 52px; border-radius: 6px; overflow: hidden; }
.dlbox-cover img, .dlbox-cover .cover-ph { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.dlbox-cover .cover-ph span { display: none; }
.dlbox-head strong { display: block; font-size: 15px; color: var(--text); line-height: 1.3; }
.dlbox-head small { font-size: 13px; color: var(--soft); }
.dlbox-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.info { margin: 0; }
.info div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.info div + div { border-top: 1px solid var(--line); }
.info dt { flex: none; font-size: 13px; color: var(--dim); }
.info dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--text); text-align: right; }

.rank { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank li { counter-increment: rank; }
.rank li + li { border-top: 1px solid var(--line); }
.rank a { display: grid; grid-template-columns: 18px 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; }
.rank a::before { content: counter(rank); font-size: 14px; font-weight: 700; color: var(--dim); }
.rank li:first-child a::before { color: var(--acc); }
.rank-thumb { display: block; border-radius: 6px; overflow: hidden; }
.rank-thumb img, .rank-thumb .cover-ph { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.rank-thumb .cover-ph span { display: none; }
.rank-text { min-width: 0; }
.rank-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-text small { font-size: 12.5px; color: var(--dim); }
.rank a:hover strong { color: var(--acc); }

.widget h2, .widget .wp-block-heading { margin: 0 0 12px; font-size: 15px; }
.widget li { padding: 5px 0; font-size: 14px; }
.widget a:hover { color: var(--acc); }

.dlbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	background: rgba(13, 15, 20, .96); border-top: 1px solid var(--line-2);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transform: translateY(100%); transition: transform .25s;
}
.dlbar.is-on { transform: none; }
.single .site-footer { padding-bottom: 68px; } /* room for the download bar */
.dlbar-row { display: flex; align-items: center; gap: 14px; height: 68px; }
.dlbar-cover { flex: none; width: 34px; border-radius: 5px; overflow: hidden; }
.dlbar-cover img, .dlbar-cover .cover-ph { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.dlbar-cover .cover-ph span { display: none; }
.dlbar-text { flex: 1; min-width: 0; }
.dlbar-text strong { display: block; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlbar-text small { font-size: 12.5px; color: var(--soft); }

/* ---------- Comments ---------- */
.comments .count { margin-left: 6px; padding: 1px 8px; border-radius: 4px; background: var(--panel-2); font-size: 13px; font-weight: 500; color: var(--soft); vertical-align: 2px; }
.cm-list, .cm-list .children { list-style: none; margin: 0; padding: 0; }
.cm-list { margin-bottom: 28px; border-top: 1px solid var(--line); }
.cm-list .children { margin-left: 52px; }
.cm { border-bottom: 1px solid var(--line); }
.cm-list .children .cm:last-child { border-bottom: 0; }
.cm { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; padding: 16px 0; }
.cm > .children { grid-column: 1 / -1; }
.cm-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--dim); }
.cm-meta strong { font-size: 14.5px; font-weight: 600; color: var(--text); }
.cm-meta a:hover { color: var(--soft); }
.cm-badge { padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--acc); color: var(--ink); }
.cm-wait { margin: 6px 0 0; font-size: 13px; color: #e0b84c; }
.cm-text { margin-top: 4px; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.cm-text p { margin: 0 0 .5em; }
.cm-text p:last-child { margin-bottom: 0; }
.cm-reply a { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--soft); }
.cm-reply a:hover { color: var(--acc); }
.cm-empty { margin: 0 0 20px; padding: 16px; border: 1px dashed var(--line-2); border-radius: 8px; font-size: 14px; color: var(--soft); }

.comment-respond { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.cm .comment-respond { grid-column: 1 / -1; margin-top: 12px; }
.comment-reply-title { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.comment-reply-title small a { font-size: 13px; font-weight: 500; color: var(--soft); }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.comment-form > p { margin: 0; }
.comment-form-comment, .comment-form-cookies-consent, .form-submit, .logged-in-as, .comment-notes { grid-column: 1 / -1; }
.logged-in-as { font-size: 13px; color: var(--soft); }
.logged-in-as a { color: var(--acc); }
.comment-form label { display: block; margin-bottom: 5px; font-size: 13px; color: var(--soft); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
	width: 100%; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); font-size: 14.5px;
}
.comment-form textarea { min-height: 96px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--acc); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; font-size: 12.5px; color: var(--dim); }
.form-submit .btn { height: 40px; }

/* ---------- Static pages & 404 ---------- */
.page-body { margin-top: 18px; padding: 36px 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.page-title { margin-bottom: 20px; font-size: 30px; font-weight: 700; }
.narrow .comments { margin-top: 32px; }
.notfound { padding: 56px 0 8px; text-align: center; }
.nf-code { display: block; font-size: 150px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--acc); }
.notfound h1 { margin-top: 10px; font-size: 26px; font-weight: 700; }
.notfound p { margin: 8px 0 24px; color: var(--soft); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; background: var(--bg-2); border-top: 1px solid var(--line); color: var(--dim); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 40px; }
.foot-about p { max-width: 360px; margin: 14px 0 0; font-size: 14px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; }
.social a:hover { border-color: var(--acc); color: var(--acc); }
.site-footer h4 { margin-bottom: 14px; font-size: 14px; color: var(--text); }
.foot-links, .site-footer .menu ul, .site-footer div.menu > ul { list-style: none; margin: 0; padding: 0; }
.foot-links li, .site-footer .menu li { padding: 4px 0; font-size: 14px; }
.foot-links a:hover, .site-footer .menu a:hover { color: var(--text); }
.cols-2 { columns: 2; column-gap: 24px; }
.foot-bottom { border-top: 1px solid var(--line); font-size: 13px; }
.foot-bottom .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.foot-bottom a:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(5, 6, 8, .94); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; padding: 12px 18px; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; opacity: .75; }
.lightbox button:hover { opacity: 1; color: var(--acc); }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* ---------- WordPress core ---------- */
.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 { margin-top: 6px; font-size: 13px; text-align: center; color: var(--dim); }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.hdr-row { gap: 24px; }
	.main-nav > ul { gap: 20px; }
	.hdr-search { width: 240px; }
}

@media (max-width: 1279px) {
	.hero-thumbs { display: none; }
	.hero-dots { display: flex; }
}

@media (max-width: 1100px) {
	.gbody { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
}

@media (max-width: 960px) {
	.wrap { padding-left: 20px; padding-right: 20px; }
	.icon-btn { display: inline-flex; }
	.nav-toggle { margin-left: -8px; }
	.search-toggle { margin-left: auto; margin-right: -8px; }
	.hdr-row { gap: 12px; }
	.hdr-search, .pill-link { display: none; }
	.search-open .hdr .hdr-search {
		display: block; position: absolute; top: var(--hdr); left: 0; right: 0; width: auto;
		padding: 12px 20px 16px; background: rgba(8, 9, 12, .98); border-bottom: 1px solid var(--line);
	}
	.search-open .hdr { background: rgba(8, 9, 12, .94); border-color: var(--line); }
	.hdr-search kbd { display: none; }
	.main-nav { display: none; }
	.nav-open .main-nav {
		display: block; position: absolute; top: var(--hdr); left: 0; right: 0;
		padding: 8px 20px 18px; background: rgba(8, 9, 12, .98); border-bottom: 1px solid var(--line);
	}
	.nav-open .main-nav > ul { flex-direction: column; gap: 0; }
	.nav-open .main-nav a { height: auto; padding: 12px 0; box-shadow: none; }
	.nav-open .main-nav .sub-menu { display: block; position: static; padding: 0 0 0 14px; background: none; border: 0; }

	.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.split { grid-template-columns: 1fr; }
	.gbody { grid-template-columns: minmax(0, 1fr); }
	.gside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
	.ghead { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.foot-about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
	.wrap { padding-left: 16px; padding-right: 16px; }
	.hero { height: 560px; min-height: 0; }
	.hero-body { padding-bottom: 40px; }
	.hero-body p { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.game-logo img { max-width: 260px; max-height: 110px; }
	.game-name, .ghead-info .game-name { font-size: 30px; }
	.sec { padding-top: 36px; }
	.section-head h2 { font-size: 20px; }

	.grid, .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
	.top-n { font-size: 120px; margin-right: -8px; }
	.top-cover { width: 132px; }

	.ghead { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
	.ghead-cover { width: 150px; }
	.gside { grid-template-columns: 1fr; }
	.reqs { grid-template-columns: 1fr; }
	.shots { grid-template-columns: 1fr 1fr; }

	.page-head { flex-direction: column; align-items: flex-start; }
	.comment-form { grid-template-columns: 1fr; }
	.cm-list .children { margin-left: 24px; }
	.page-head h1 { font-size: 28px; }
	.page-body { padding: 24px 20px; }
	.urow { grid-template-columns: 104px minmax(0, 1fr); }
	.urow-side { display: none; }
	.foot-bottom .wrap { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
	.grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.actions .btn { flex: 1; padding: 0 16px; }
	.gtiles { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr; }
	.nf-code { font-size: 110px; }
}

@media (max-width: 782px) {
	.admin-bar .hdr { top: 46px; }
}

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