/*
Theme Name: Pi Work Games
Author: Pi Work Games
Description: Pi Work Games stüdyo teması. "Pi Work Core" eklentisiyle birlikte çalışır.
Version: 1.6.0
Requires PHP: 7.4
Text Domain: piwork
*/

:root {
	--bg: #0f1015;
	--bg-2: #15171e;
	--surface: #1b1d26;
	--surface-2: #232633;
	--line: #2d3040;
	--text: #efede6;
	--muted: #a2a3b1;
	--accent: #f3ad3d;       /* çay / kehribar */
	--accent-ink: #1a1206;
	--red: #e5573f;
	--steam: #66c0f4;
	--green: #59c48a;
	--violet: #a99bf5;
	--pink: #f08bb4;
	--teal: #4fd1c5;
	--radius: 14px;
	--wrap: 1200px;
	--font-display: "Bricolage Grotesque", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(15, 16, 21, .82);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
	background: var(--accent); color: var(--accent-ink); font-size: 1.45rem; line-height: 1; font-family: Georgia, serif; font-weight: 700;
}
.brand small { display: block; font: 500 .7rem/1 var(--font-body); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.brand .brand-logo { height: 40px; width: auto; max-width: 240px; object-fit: contain; }
.site-footer .brand .brand-logo { height: 44px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .is-current > a { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }

@media (max-width: 1180px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; inset: 68px 0 auto; background: var(--bg-2); border-bottom: 1px solid var(--line); display: none; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; padding: 12px 16px 18px; }
}

/* ---------- Buttons & badges ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	padding: 12px 20px; border-radius: 10px; font-weight: 650; font-size: .95rem;
	border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
	white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffbe55; }
.btn-steam { background: linear-gradient(90deg, #1b2838, #2a475e); color: #fff; border-color: #3d6c8d; }
.btn-steam:hover { border-color: var(--steam); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 8px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .03em;
	background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--yakinda { color: var(--accent); }
.badge--yayinda { color: var(--green); }
.badge--erken-erisim { color: var(--steam); }
.badge--gelistirmede { color: var(--red); }
/* Tür rozetleri: her tür kendi rengi; durum rozetleriyle (aşağıda, simgeli) karışmaz. */
.badge--turkce-yama { color: var(--red); }
.badge--mod { color: var(--steam); }
.badge--guncelleme { color: var(--violet); }
.badge--yerellestirme { color: var(--pink); }
.badge--diger { color: var(--muted); }

.eyebrow { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: .8rem; padding: 4px 10px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section + .section { padding-top: 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 60ch; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 620px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(15,16,21,.96) 0%, rgba(15,16,21,.75) 45%, rgba(15,16,21,.2) 100%),
		linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.hero .wrap { position: relative; padding: 120px 0 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.hero h1 { margin-bottom: 16px; }
.hero-lead { font-size: 1.15rem; color: #d7d5cd; max-width: 52ch; }
.hero-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.hero-media img { width: 100%; aspect-ratio: 460/215; object-fit: cover; }

.hero--studio { min-height: 0; }
.hero--studio .wrap { grid-template-columns: 1fr; padding: 96px 0 56px; }

@media (max-width: 900px) {
	.hero { min-height: 0; }
	.hero .wrap { grid-template-columns: 1fr; padding: 96px 0 48px; }
}

/* ---------- Game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.game-card {
	position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.game-card:hover { border-color: #474b60; transform: translateY(-3px); }
.game-card-media { position: relative; aspect-ratio: 460/215; background: var(--surface-2); }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; }
.game-card-media .badge { position: absolute; top: 12px; left: 12px; background: rgba(15,16,21,.85); }
.game-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card-body h3 { margin: 0; font-size: 1.35rem; }
.game-card-body h3 a { color: var(--text); }
.game-card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.game-card-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.game-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; padding-top: 8px; }

.game-card--placeholder .game-card-media { display: grid; place-items: center; background:
	repeating-linear-gradient(45deg, var(--surface-2) 0 12px, var(--surface) 12px 24px); }
.game-card--placeholder .ph-mark { font-family: Georgia, serif; font-size: 4rem; color: var(--line); }

/* ---------- Patch cards ---------- */
.patch-toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a {
	padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 550;
}
.tabs a:hover { color: var(--text); text-decoration: none; border-color: var(--muted); }
.tabs a.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs a small { opacity: .6; margin-left: 4px; }
.search { position: relative; flex: 0 1 280px; }
.search input {
	width: 100%; padding: 10px 14px 10px 38px; border-radius: 999px; background: var(--surface); color: var(--text);
	border: 1px solid var(--line); font: inherit; font-size: .9rem;
}
.search input:focus { outline: none; border-color: var(--accent); }
.search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 16px; color: var(--muted); }

.patch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.patch-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
	display: flex; flex-direction: column; transition: border-color .2s;
}
.patch-card:hover { border-color: #474b60; }
.patch-card-media { position: relative; aspect-ratio: 460/215; background: var(--surface-2); }
.patch-card-media img { width: 100%; height: 100%; object-fit: cover; }
.patch-card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.patch-card-badges .badge { background: rgba(15,16,21,.88); }
.patch-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.patch-card-body h3 { margin: 0; font-size: 1.08rem; }
.patch-card-body h3 a { color: var(--text); }
.patch-card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.h1-sub { display: block; font-size: .45em; color: var(--accent); letter-spacing: .02em; margin-top: 8px; }
.patch-card-meta { color: var(--muted); font-size: .82rem; }
.patch-card-note { color: var(--muted); font-size: .88rem; margin: 0; }
.patch-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.patch-card-actions .btn-primary { flex: 1; }
.btn-icon { padding: 8px 10px; flex: none; }
.btn-vt { background: rgba(89,196,138,.12); color: var(--green); border-color: rgba(89,196,138,.4); }
.btn-vt:hover { border-color: var(--green); }
.patch-card-ph {
	position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center;
	background: radial-gradient(circle at 30% 20%, rgba(243,173,61,.18), transparent 60%), var(--surface-2);
	font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--muted);
	padding-top: 38px; overflow: hidden; line-height: 1.2;
}
/* Kapaksız kartta uzun ad rozetlerin altına girmesin: en fazla 2 satır. */
.patch-card-ph > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-grid .patch-card-ph { font-size: 1.05rem; }

/* ---------- Yama istekleri ---------- */
.cta-strip {
	display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
	margin-top: 40px; padding: 22px 26px; border-radius: var(--radius);
	background: linear-gradient(100deg, rgba(229,87,63,.14), rgba(243,173,61,.10)); border: 1px solid rgba(243,173,61,.25);
}
.cta-strip h3 { margin: 0 0 2px; }
.cta-strip p { margin: 0; color: var(--muted); }
.istek-layout { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; padding-bottom: 80px; }
.istek-form { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.istek-form h2 { font-size: 1.35rem; }
.istek-form label { display: block; font-size: .85rem; font-weight: 600; margin: 14px 0 6px; }
.istek-form label small { color: var(--muted); font-weight: 400; }
.istek-form input, .istek-form select, .istek-form textarea {
	width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: .95rem;
}
.istek-form input:focus, .istek-form select:focus, .istek-form textarea:focus { outline: none; border-color: var(--accent); }
.istek-form .btn { width: 100%; margin-top: 18px; }
.istek-form .hp { position: absolute; left: -9999px; }
.istek-form .fine { color: var(--muted); font-size: .8rem; margin: 12px 0 0; }
.form-msg { padding: 12px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 14px; }
.form-msg--ok { background: rgba(89,196,138,.12); border: 1px solid rgba(89,196,138,.4); color: #bfe9cf; }
.form-msg--err { background: rgba(229,87,63,.12); border: 1px solid rgba(229,87,63,.4); color: #f3c3b9; }
.istek-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.istek { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 14px 14px; }
.istek h3 { margin: 0; font-size: 1.05rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.istek h3 a { color: var(--muted); display: inline-flex; }
.istek h3 a svg { width: 15px; height: 15px; }
.istek p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.istek-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; }
.vote:hover { border-color: var(--accent); color: var(--accent); }
.vote svg { width: 18px; height: 18px; }
.vote b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1; }
.vote small { font-size: .65rem; color: var(--muted); }
/* Durum rozetleri: köşeli ve noktası yerine simgeli. */
.badge--durum { border-radius: 6px; }
.badge--durum::before { width: auto; height: auto; background: none; border-radius: 0; font-size: .85em; line-height: 1; }
.badge--bekliyor { color: #c9cad6; }
.badge--bekliyor::before { content: "○"; }
.badge--inceleniyor { color: var(--teal); }
.badge--inceleniyor::before { content: "◔"; }
.badge--calisiliyor { color: var(--accent); }
.badge--calisiliyor::before { content: "◑"; }
.badge--test { color: var(--steam); }
.badge--test::before { content: "◕"; }
.badge--kontrol { color: var(--pink); }
.badge--kontrol::before { content: "◉"; }
.badge--tamamlandi { color: var(--green); }
.badge--tamamlandi::before { content: "✓"; }
.badge--reddedildi { color: var(--muted); }
.badge--reddedildi::before { content: "✕"; }

.istek { grid-template-columns: 64px 1fr auto; align-items: start; }
.istek .vote, .istek > form { align-self: start; }
.istek-go { align-self: start; }
.istek-body { min-width: 0; }
.istek--done, .istek--iptal { background: transparent; border-style: dashed; }
.istek--done h3, .istek--iptal h3 { color: #d7d5cd; }
.vote--static { cursor: default; color: var(--green); border-color: rgba(89,196,138,.35); }
.vote--static:hover { color: var(--green); border-color: rgba(89,196,138,.35); }
.istek--iptal .vote--static, .istek--iptal .vote--static:hover { color: var(--muted); border-color: var(--line); }
.vote--static span { font-size: 1rem; line-height: 1; }
.istek-pool-title { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 40px 0 14px; }
.istek-pool-title--done { color: var(--green); }
.istek-pool-title--iptal { color: var(--muted); }
.istek-pool-title small { font: 600 .8rem var(--font-body); color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 10px; }
.istek-by { color: var(--muted); }
.istek-sebep { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border-left: 3px solid var(--muted); font-size: .88rem; color: var(--muted); }
.istek-sebep strong { color: var(--text); }
.istek-sebep .clamp p { display: inline; margin: 0; }

/* Uzun metin: 3 satır, "Tamamını gör" ile açılır */
.clamp p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.clamp.is-clamped p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.istek-sebep .clamp.is-clamped p { display: -webkit-box; }
.clamp-more { background: none; border: 0; padding: 2px 0; margin-top: 2px; color: var(--accent); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.clamp-more:hover { text-decoration: underline; }

/* Cevaplar */
.istek-thread { grid-column: 2 / -1; display: grid; gap: 8px; }
.istek-thread:empty { display: none; }
.reply { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.reply--admin { border-color: rgba(243,173,61,.4); background: rgba(243,173,61,.06); }
.reply-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .88rem; }
.reply-head time { color: var(--muted); font-size: .78rem; margin-left: auto; }
.reply-avatar { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 700 .8rem Georgia, serif; }
.reply-badge { font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: var(--accent); border: 1px solid rgba(243,173,61,.45); border-radius: 999px; padding: 1px 8px; }
.reply .clamp p { color: #d5d3cc; margin-top: 4px; }
.reply-box summary { cursor: pointer; color: var(--muted); font-size: .85rem; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.reply-box summary::-webkit-details-marker { display: none; }
.reply-box summary::before { content: "↳"; }
.reply-box summary:hover, .reply-box[open] summary { color: var(--accent); }
.reply-box form { display: grid; gap: 8px; margin-top: 6px; }
.reply-box input, .reply-box textarea { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: .9rem; }
.reply-box input:focus, .reply-box textarea:focus { outline: none; border-color: var(--accent); }
.reply-box .hp { position: absolute; left: -9999px; }
.reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .8rem; }
.istek-thread .form-msg { margin: 0; }
.reply-who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .reply-who { grid-template-columns: 1fr; } }

/* Yasaklı ziyaretçi uyarısı (Pi Work Core eklentisi ekler) */
.pw-ban-banner {
	width: min(var(--wrap), 100% - 32px); margin: 20px auto 0; padding: 14px 18px; border-radius: 12px;
	background: rgba(229,87,63,.12); border: 1px solid rgba(229,87,63,.5); color: #f6d3cc; font-size: .95rem;
}
.pw-ban-banner strong { color: #fff; }
.pw-ban-banner a { color: #fff; text-decoration: underline; }
.pw-banned .btn[aria-disabled="true"] { opacity: .35; }

@media (max-width: 560px) {
	.istek { grid-template-columns: 56px 1fr; }
	.istek-go { grid-column: 1 / -1; justify-self: start; }
	.istek-thread { grid-column: 1 / -1; }
}
@media (max-width: 900px) { .istek-layout { grid-template-columns: 1fr; } .istek-form { position: static; } }

/* Ana sayfa bölümleri: tam 4 sütun, dar ekranda 2 ve 1. */
.home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-grid { grid-template-columns: 1fr; } }

/* Yazılım kartı ve sayfası */
a.patch-card-media { display: block; }
.soft-card h3 a { color: var(--text); }
.soft-ph { display: flex; flex-direction: column; gap: 10px; }
.soft-ph svg { width: 40px; height: 40px; color: var(--accent); }
.soft-ph span { font-size: 1.1rem; }
.badge--platform { color: var(--text); }
.badge--platform::before { display: none; }
.soft-cover { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 28px; width: 100%; }
.soft-layout { padding-top: 0; }

.patch-empty { color: var(--muted); padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

.notice-box {
	display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px;
	background: rgba(243,173,61,.08); border: 1px solid rgba(243,173,61,.25); color: #e7dcc6; font-size: .92rem; margin-bottom: 28px;
}
.notice-box strong { color: var(--accent); }

/* ---------- Page header ---------- */
.page-head { padding: 72px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 40px;
	background: radial-gradient(800px 300px at 15% 0%, rgba(243,173,61,.10), transparent 70%); }
.page-head p { color: var(--muted); max-width: 64ch; font-size: 1.08rem; margin: 0; }

/* ---------- Single game ---------- */
.game-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.game-hero .hero-bg::after {
	background: linear-gradient(0deg, var(--bg) 0%, rgba(15,16,21,.85) 45%, rgba(15,16,21,.55) 100%);
}
.game-hero .wrap { position: relative; padding: 80px 0 48px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.game-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.game-hero .lead { font-size: 1.1rem; color: #d7d5cd; }
.game-player { border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); aspect-ratio: 16/9; }
.game-player video, .game-player img { width: 100%; height: 100%; object-fit: cover; }
.game-side { background: rgba(27,29,38,.85); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(6px); }
.game-side img.header { border-radius: 8px; margin-bottom: 16px; width: 100%; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0 20px; font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.game-side .btn { width: 100%; margin-top: 8px; }
.platforms { display: flex; gap: 8px; color: var(--muted); }

.game-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding: 48px 0 80px; }
.game-layout aside > * + * { margin-top: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 40px; }
.shots a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.shots img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .3s; }
.shots a:hover img { transform: scale(1.05); }

.steam-content { color: #d5d3cc; }
.steam-content img { border-radius: 8px; margin: 18px 0; }
.steam-content h1, .steam-content h2 { font-size: 1.4rem; margin-top: 1.6em; color: var(--text); }
.steam-content ul { padding-left: 1.2em; }
.steam-content .bb_img_ctn { display: block; }
.dev-note { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin-bottom: 40px; }
.req { font-size: .88rem; color: var(--muted); }
.req ul { list-style: none; padding: 0; margin: 0; }
.req li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.req strong { color: var(--text); }
.langs { font-size: .88rem; color: var(--muted); }
.steam-widget { border: 0; width: 100%; height: 190px; border-radius: 8px; }

@media (max-width: 960px) {
	.game-hero .wrap, .game-layout { grid-template-columns: 1fr; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; place-items: center; z-index: 100; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 8px; }

/* ---------- About / features ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.pillar b { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; }
.pillar span { color: var(--muted); font-size: .9rem; }
.pillar i { font-style: normal; font-size: 1.6rem; display: block; margin-bottom: 8px; }
.about-text { color: #d5d3cc; }
.about-text p:last-child { margin-bottom: 0; }
.about-page { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; padding-bottom: 64px; align-items: start; }
.about-page .about-text { font-size: 1.08rem; }
.about-page aside > * + * { margin-top: 20px; }
.about-image { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.contact-strip {
	display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 80px;
}
.contact-strip h2 { margin: 0 0 4px; font-size: 1.5rem; }
.contact-strip p { margin: 0; color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .about, .about-page { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } .games-grid { grid-template-columns: 1fr; } }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card div { padding: 18px; }
.post-card time { color: var(--muted); font-size: .82rem; }
.post-card h3 a { color: var(--text); }
.entry { max-width: 760px; margin: 0 auto; padding-bottom: 80px; }
.entry-content { font-size: 1.05rem; }
.entry-content img { border-radius: 10px; }
.pagination { margin-top: 36px; display: flex; gap: 6px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.pagination .current { background: var(--text); color: var(--bg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; margin-top: 40px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--text); font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 3px 0; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.socials a:hover { border-color: var(--accent); text-decoration: none; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
