/*
Theme Name: Blogar Play
Theme URI: https://blogar.ru/
Author: Blogar
Description: Full-screen game homepage and an editorial WordPress theme for Blogar.
Version: 1.1.0
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: blogar-play
*/

:root { color-scheme: dark; --bg: #0b1020; --panel: #151d31; --ink: #f5f7fc; --muted: #adb9d2; --accent: #92daff; --line: #34415a; }
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 12% -20%, #23365e, transparent 40%), var(--bg); font: 16px/1.6 system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: var(--accent); }
a:hover { color: #d7f3ff; }
.skip-link { position: absolute; z-index: 1000; top: -60px; left: 12px; padding: 8px 12px; color: #09101d; background: #fff; }
.skip-link:focus { top: 12px; }
.game-shell { position: relative; min-height: 100dvh; background: #090c14; }
.game-frame { display: block; width: 100%; height: 100dvh; border: 0; }
.game-link { position: absolute; z-index: 2; top: 14px; right: 14px; padding: 7px 13px; border: 1px solid #ffffff3b; border-radius: 999px; color: #f3f6fd; background: #0d172bc9; box-shadow: 0 4px 18px #0005; font-size: 13px; font-weight: 650; text-decoration: none; backdrop-filter: blur(8px); }
.game-link:hover, .game-link:focus { color: #fff; border-color: #a7defc; background: #172c4b; }
.news-section { width: min(900px, calc(100% - 40px)); min-height: 55vh; margin: 0 auto; padding: 72px 0 100px; scroll-margin-top: 12px; }
.news-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.news-back { flex: none; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 650; text-decoration: none; }
.news-back:hover, .news-back:focus { color: #fff; border-color: var(--accent); }
.news-list { display: grid; gap: 20px; }
.news-list .article-card { width: 100%; }
.news-list .article-card h2 { margin: 8px 0 16px; color: #fff; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.news-content > :first-child { margin-top: 0; }
.news-content > :last-child { margin-bottom: 0; }
.site-header { position: relative; z-index: 1; border-bottom: 1px solid var(--line); background: #0d1527d9; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1100px, calc(100% - 40px)); min-height: 76px; margin: auto; }
.brand { color: #fff; font-size: 20px; font-weight: 900; letter-spacing: .14em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.site-nav a:first-child { border-color: #6ec7ff; background: #1671af; }
.site-nav a:hover { background: #2b3e60; }
.content-wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 90px; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.page-title { margin: 0 0 30px; font-size: clamp(32px, 5vw, 54px); line-height: 1.1; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.post-card, .article-card, .empty-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 24px; background: #17243ccf; box-shadow: 0 18px 45px #0003; }
.post-card h2, .article-card h1 { margin: 8px 0 16px; line-height: 1.15; }
.post-card h2 { font-size: clamp(23px, 2.7vw, 30px); }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p, .article-card { color: var(--muted); }
.post-meta { margin: 0; color: var(--accent); font-size: 13px; font-weight: 650; }
.post-card .read-more { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none; }
.article-card { max-width: 850px; margin: 0 auto; }
.article-card h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.article-card h2, .article-card h3 { color: #fff; }
.article-card img { max-width: 100%; height: auto; border-radius: 12px; }
.article-card blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--accent); }
.article-card pre { overflow: auto; padding: 16px; border-radius: 12px; background: #0a1324; }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.site-footer { padding: 30px 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; }
@media (max-width: 600px) { .header-inner { flex-wrap: wrap; padding: 15px 0; } .site-nav { width: 100%; } .site-nav a { flex: 1; text-align: center; } .content-wrap { padding-top: 34px; } .game-link { top: 9px; right: 9px; } .news-section { padding-top: 44px; } .news-heading { align-items: end; } }
