:root {
  --accent: #1463ff;
  --accent-strong: #0b4ed8;
  --accent-soft: #eaf1ff;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f9fbff;
  --surface-3: #eef3fb;
  --text: #172033;
  --muted: #667085;
  --border: #e2e8f2;
  --shadow: 0 12px 35px rgba(29, 48, 83, 0.08);
  --shadow-small: 0 5px 18px rgba(29, 48, 83, 0.07);
  --danger: #d92d20;
  --success: #15803d;
  --radius: 18px;
  --radius-small: 12px;
  --header-height: 64px;
  --header-total-height: 116px;
  --container: 1200px;
}

body.accent-violet { --accent: #7c3aed; --accent-strong: #6427c7; --accent-soft: #f0eaff; }
body.accent-green { --accent: #0f9f6e; --accent-strong: #087a54; --accent-soft: #e5f8f1; }
body.accent-red { --accent: #e04444; --accent-strong: #bc2e2e; --accent-soft: #ffebeb; }

html[data-theme="dark"] {
  --bg: #0d1420;
  --surface: #121c2b;
  --surface-2: #172334;
  --surface-3: #1c2b40;
  --text: #f2f5f9;
  --muted: #a8b3c4;
  --border: #27364b;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-total-height) + 18px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.site-main { min-height: 60vh; }
.section-block { padding: 52px 0; }
.section-muted { background: var(--surface-3); }
.surface-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.surface-subtle { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.surface-accent { background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: var(--radius); }
.icon { width: 22px; height: 22px; flex: 0 0 auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed !important; top: 10px; right: 10px; z-index: 100000; width: auto; height: auto; padding: 10px 16px; clip: auto; background: var(--surface); color: var(--text); border-radius: 8px; box-shadow: var(--shadow); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  border-radius: 0;
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(16px);
}
.admin-bar .site-header { top: 32px; }
.header-main-row { height: var(--header-height); background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-branding { min-width: 150px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 46px; width: auto; }
.text-logo { display: inline-flex; align-items: baseline; gap: 0; color: var(--text); font-size: 25px; font-weight: 900; letter-spacing: -.6px; line-height: 1; }
.logo-accent { color: var(--accent); }
.desktop-nav-shell { min-height: 51px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.nav-container { min-height: 51px; display: flex; align-items: center; }
.site-navigation { width: 100%; }
.primary-menu, .primary-menu ul { list-style: none; padding: 0; margin: 0; }
.primary-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px; padding: 6px 0; }
.primary-menu.menu-enhanced { flex-wrap: nowrap; }
.primary-menu > .menu-item { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.primary-menu a,
.menu-more-button {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.primary-menu > .menu-item > a::before,
.menu-more-button::before { content: ""; width: 6px; height: 6px; margin-inline-end: 8px; border-radius: 50%; background: var(--border); transition: background .2s ease; }
.primary-menu > .menu-item:first-child > a { color: #fff; background: var(--accent); border-color: var(--accent); }
.primary-menu > .menu-item:first-child > a::before { background: rgba(255,255,255,.8); }
.primary-menu a:hover,
.primary-menu a[aria-current="page"],
.menu-more-button:hover { color: var(--accent); background: var(--surface); border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); box-shadow: var(--shadow-small); }
.primary-menu > .menu-item > a:hover::before,
.primary-menu > .menu-item > a[aria-current="page"]::before,
.menu-more-button:hover::before { background: var(--accent); }
.submenu-toggle { appearance: none; border: 0; background: transparent; padding: 7px 2px 7px 6px; cursor: pointer; }
.primary-menu > .menu-item-has-children > a { padding-inline-end: 7px; }
.primary-menu > .menu-item-has-children > .submenu-toggle:not(.menu-more-button) { margin-inline-start: -5px; }
.sub-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  max-width: min(620px, 90vw);
  padding: 10px !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.primary-menu > .menu-item > .sub-menu:not(.menu-more-submenu) { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 4px; min-width: 470px; }
.primary-menu .menu-item:hover > .sub-menu,
.primary-menu .menu-item:focus-within > .sub-menu,
.primary-menu .menu-item.submenu-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu .menu-item { position: relative; display: flex; }
.sub-menu a { width: 100%; min-height: 40px; justify-content: flex-start; border-radius: 10px; }
.sub-menu a::before { display: none; }
.sub-menu .sub-menu { top: -8px; right: calc(100% + 8px); min-width: 230px; }
.menu-more { margin-inline-start: auto; }
.menu-more-button { gap: 6px; border-color: var(--border); background: var(--surface); }
.menu-more-button::before { background: var(--accent); }
.menu-more-submenu { right: auto; left: 0; min-width: 280px; max-height: min(70vh, 560px); overflow-y: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-button, .theme-toggle, .menu-toggle, .menu-close, .search-panel-close { width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; transition: .2s ease; }
.icon-button:hover, .theme-toggle:hover, .menu-toggle:hover, .menu-close:hover, .search-panel-close:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: var(--accent-soft); }
.menu-toggle, .mobile-menu-header, .mobile-menu-search { display: none; }
.theme-toggle { position: relative; }
.moon-icon { display: none; }
html[data-theme="dark"] .sun-icon { display: none; }
html[data-theme="dark"] .moon-icon { display: block; }
.menu-overlay { display: none; }
.site-search-panel { position: absolute; z-index: 1010; top: 100%; right: 0; left: 0; padding: 16px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; }
.site-search-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.search-panel-inner { max-width: 760px; padding: 20px; box-shadow: var(--shadow); }
.search-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 14px; }
.search-panel-heading .eyebrow { margin: 0 0 2px; }
.search-panel-heading strong { display: block; font-size: 20px; }

/* Forms and buttons */
.search-form { position: relative; display: flex; width: 100%; }
.search-field { width: 100%; min-height: 48px; padding: 10px 16px 10px 52px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 13px; outline: none; }
.search-field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.search-submit { position: absolute; inset: 5px auto 5px 5px; width: 39px; border: 0; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--accent); cursor: pointer; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 25%, transparent); }
.button-primary:hover { background: var(--accent-strong); color: #fff; }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button-secondary:hover { color: var(--accent); border-color: var(--accent); }
.button-small { min-height: 38px; padding: 7px 14px; font-size: 14px; background: var(--accent); color: #fff; }
.button-small:hover { color: #fff; background: var(--accent-strong); }
.button-large { min-height: 54px; padding-inline: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; }

/* Home */
.home-hero { padding-top: 34px; }
#new_posts { scroll-margin-top: calc(var(--header-total-height) + 18px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 28px 6px; }
.eyebrow { display: inline-flex; margin-bottom: 8px; color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: .2px; }
.hero-copy h1 { margin: 0 0 14px; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.25; letter-spacing: -1.5px; }
.hero-copy p { max-width: 620px; margin: 0 0 20px; color: var(--muted); font-size: 18px; }
.hero-search { width: min(100%, 580px); margin-bottom: 16px; }
.featured-game { position: relative; overflow: hidden; min-height: 430px; }
.featured-game-image, .featured-game-image img { width: 100%; height: 100%; }
.featured-game-image img { object-fit: cover; }
.featured-game::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(to bottom, transparent, rgba(5, 10, 18, .92)); pointer-events: none; }
.featured-game-content { position: absolute; z-index: 2; inset: auto 26px 24px; color: #fff; }
.featured-game-content h2 { margin: 8px 0 5px; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.35; }
.featured-game-content h2 a { color: #fff; }
.featured-game-content p { max-width: 700px; margin: 0 0 12px; color: rgba(255,255,255,.82); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.category-grid-full { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-card { position: relative; min-height: 170px; overflow: hidden; color: #fff; }
.category-card-media, .category-card-media img { width: 100%; height: 100%; }
.category-card-media img { object-fit: cover; transition: transform .35s ease; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 9, 18, .9), rgba(4, 9, 18, .08) 70%); }
.category-card-overlay { position: absolute; z-index: 2; inset: auto 15px 13px; display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.category-card-overlay strong { color: #fff; font-size: 17px; }
.category-card-overlay small { color: rgba(255,255,255,.75); white-space: nowrap; }
.category-card:hover .category-card-media img { transform: scale(1.05); }
.posts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.posts-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card-image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.category-badge { display: inline-flex; width: fit-content; padding: 5px 10px; border-radius: 999px; color: #fff; background: var(--accent); font-size: 12px; font-weight: 800; }
.post-card-image .category-badge { position: absolute; top: 12px; right: 12px; }
.post-card-body { padding: 17px; }
.post-card-title { margin: 0 0 8px; font-size: 18px; line-height: 1.55; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); }
.post-card-body p { margin: 9px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.post-card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.meta-item { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.meta-item .icon { width: 16px; height: 16px; }
.home-content-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); gap: 24px; align-items: start; }
.compact-list, .posts-list { display: grid; gap: 14px; }
.compact-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 12px; }
.compact-card-image { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--surface-3); }
.compact-card-image img { width: 100%; height: 100%; object-fit: cover; }
.compact-card h3 { margin: 2px 0 5px; font-size: 18px; line-height: 1.55; }
.compact-card h3 a { color: var(--text); }
.compact-card p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.home-sidebar { padding: 20px; position: sticky; top: calc(var(--header-total-height) + 20px); }
.home-sidebar h2 { margin: 0 0 15px; font-size: 21px; }
.ranked-list { counter-reset: ranked; list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ranked-list li { counter-increment: ranked; display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ranked-list li:last-child { border-bottom: 0; }
.ranked-list li::before { content: counter(ranked); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-weight: 900; }
.ranked-list a { color: var(--text); font-weight: 700; font-size: 14px; line-height: 1.55; }
.seo-intro .entry-content { padding: 28px; }

/* Archive and common layouts */
.archive-shell, .single-shell, .page-shell, .download-shell, .error-shell { padding-block: 28px 60px; }
.breadcrumbs { margin-bottom: 18px; font-size: 13px; color: var(--muted); overflow-x: auto; }
.breadcrumbs ol { display: flex; align-items: center; gap: 8px; min-width: max-content; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: 8px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.archive-header { padding: 28px; margin-bottom: 24px; text-align: center; }
.archive-header h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); line-height: 1.25; }
.archive-header p, .archive-description { max-width: 780px; margin: 0 auto 18px; color: var(--muted); }
.archive-header .search-form { max-width: 660px; margin-inline: auto; }
.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.sidebar { display: grid; gap: 18px; position: sticky; top: calc(var(--header-total-height) + 20px); }
.widget { padding: 18px; overflow: hidden; }
.widget-title { margin: -18px -18px 16px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 18px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.category-count-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.category-count-list li:last-child { border-bottom: 0; }
.category-count-list a { color: var(--text); font-weight: 700; }
.sidebar-posts { display: grid; gap: 12px; }
.sidebar-posts li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: center; }
.sidebar-thumb { height: 60px; border-radius: 10px; overflow: hidden; }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-posts li > div > a { display: block; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.45; }
.sidebar-posts small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.archive-bottom-description { margin-top: 28px; padding: 24px; }
.pagination { margin-top: 30px; }
.pagination .page-numbers { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; border-radius: 10px; color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.pagination .current { color: #fff; background: var(--accent); border-color: var(--accent); }
.empty-state { max-width: 720px; margin: 20px auto; padding: 46px 28px; text-align: center; }
.empty-state h2 { margin: 14px 0 6px; }
.empty-state p { color: var(--muted); }
.empty-state .search-form { max-width: 520px; margin-inline: auto; }
.empty-icon { width: 64px; height: 64px; color: var(--accent); }

/* Single and pages */
.single-article, .page-article { overflow: hidden; }
.article-header { padding: 30px 32px 22px; text-align: center; }
.article-header h1 { max-width: 920px; margin: 10px auto 12px; font-size: clamp(28px, 4vw, 46px); line-height: 1.35; }
.article-meta { justify-content: center; }
.single-featured-media { margin: 0; aspect-ratio: 16 / 8.8; overflow: hidden; background: var(--surface-3); }
.single-featured-image { width: 100%; height: 100%; object-fit: cover; }
.entry-content { padding: 30px 34px; font-size: 18px; line-height: 2; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.8em; margin-bottom: .7em; line-height: 1.45; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 23px; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content ul, .entry-content ol { padding-right: 24px; }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 22px; border-right: 4px solid var(--accent); background: var(--surface-2); border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--border); text-align: right; }
.entry-content pre { overflow-x: auto; padding: 18px; border-radius: 12px; background: #101828; color: #f8fafc; direction: ltr; text-align: left; }
.entry-content img { border-radius: 12px; }
.game-info { margin: 22px 30px 0; padding: 20px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
.game-info h2 { margin: 0 0 13px; font-size: 20px; }
.game-info dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.game-info dl > div { padding: 11px 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.game-info dt { color: var(--muted); font-size: 12px; }
.game-info dd { margin: 2px 0 0; font-weight: 800; }
.single-download-panel { position: relative; isolation: isolate; margin: 18px 30px 30px; padding: 26px; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; align-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0e2a58 0%, #1458cb 58%, #1675ff 100%); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; box-shadow: 0 18px 40px rgba(20, 88, 203, .24); }
.single-download-panel::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; inset: -130px -80px auto auto; border-radius: 50%; background: rgba(255,255,255,.09); }
.single-download-panel::after { content: ""; position: absolute; z-index: -1; width: 170px; height: 170px; inset: auto auto -110px 25%; border-radius: 50%; background: rgba(255,255,255,.07); }
.single-download-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 19px; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); }
.single-download-icon .icon { width: 34px; height: 34px; }
.single-download-label { display: inline-block; margin-bottom: 5px; color: #cfe0ff; font-size: 12px; font-weight: 900; }
.single-download-content h2 { margin: 0 0 7px; color: #fff; font-size: 24px; line-height: 1.45; }
.single-download-content p { max-width: 660px; margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }
.single-download-points { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.single-download-points span { padding: 5px 9px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.14); font-size: 11px; font-weight: 800; }
.single-download-button { min-width: 190px; color: #0c47a7; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.single-download-button:hover { color: #073a8c; background: #f1f6ff; }
.single-download-button .icon { width: 18px; height: 18px; }
.article-footer { padding: 0 30px 28px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-list a { padding: 5px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 13px; }
.related-section { margin-top: 38px; }
.single-comments-wrap { margin-top: 30px; }
.comments-area { margin-top: 0; padding: 28px; border-top: 4px solid var(--accent); }
.comments-title { margin: 0 0 20px; font-size: 25px; }
.comments-closed p { margin: 0; color: var(--muted); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { margin-bottom: 15px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.comment-list .children { list-style: none; padding-right: 24px; margin-top: 15px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-content { margin-top: 10px; }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: block; margin-bottom: 5px; font-weight: 700; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }

/* Download */
.download-page { overflow: hidden; }
.download-header { padding: 42px 30px 28px; text-align: center; }
.download-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 20px; color: var(--accent); background: var(--accent-soft); }
.download-icon .icon { width: 34px; height: 34px; }
.download-header h1 { max-width: 920px; margin: 0 auto 12px; font-size: clamp(29px, 4.3vw, 48px); line-height: 1.35; }
.download-header p { max-width: 820px; margin: 0 auto 12px; color: var(--muted); font-size: 17px; }
.download-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr); gap: 24px; padding: 28px 30px; border-top: 1px solid var(--border); }
.download-links h2, .download-summary h2, .download-notes h2 { margin-top: 0; }
.download-buttons { display: grid; gap: 13px; }
.download-button { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 80px; padding: 13px 17px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; transition: .2s ease; }
.download-button:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-small); }
.download-button-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--accent); }
.download-button strong, .download-button small { display: block; }
.download-button small { margin-top: 2px; color: var(--muted); }
.download-summary { padding: 17px; align-self: start; }
.download-summary > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.download-summary h2 { font-size: 18px; line-height: 1.55; }
.download-summary p { color: var(--muted); }
.safety-note { padding: 12px; border-radius: 10px; background: var(--surface-3); font-size: 13px; }
.download-notes { margin: 0 30px 30px; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.notice-box { padding: 20px; border-radius: 13px; background: #fff8e6; color: #7a4b00; border: 1px solid #f5d789; }
html[data-theme="dark"] .notice-box { background: #2a210f; color: #f4d28b; border-color: #6a5221; }

/* Ads */
.ad-slot { width: min(calc(100% - 32px), var(--container)); min-height: 110px; margin: 22px auto; padding: 26px 12px 12px; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.ad-label { position: absolute; top: 5px; right: 10px; color: var(--muted); font-size: 11px; }
.ad-content { width: 100%; text-align: center; }
.single-article .ad-slot, .download-page .ad-slot { width: calc(100% - 60px); box-shadow: none; }

/* Error */
.error-card { max-width: 780px; margin: 0 auto; padding: 50px 30px; text-align: center; }
.error-code { display: block; color: var(--accent); font-size: clamp(70px, 13vw, 150px); font-weight: 900; line-height: 1; letter-spacing: -6px; }
.error-card h1 { margin: 12px 0 5px; font-size: 36px; }
.error-card p { color: var(--muted); }
.error-card .search-form { max-width: 550px; margin: 20px auto; }
.error-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #0c1422; color: #d5deeb; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 34px; padding-block: 48px 34px; }
.footer-brand .text-logo { color: #fff; }
.footer-brand p { max-width: 360px; color: #9eacbf; }
.footer-widget-title { margin: 0 0 14px; color: #fff; font-size: 17px; }
.footer-menu, .footer-widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-menu a, .footer-widget a { color: #aebacc; }
.footer-menu a:hover, .footer-widget a:hover { color: #fff; }
.footer-bottom { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid rgba(255,255,255,.08); color: #99a7ba; font-size: 13px; }
.footer-bottom p { margin: 0; }
.back-to-top { color: #d5deeb; }
.mobile-bottom-nav { display: none; }
.mobile-bottom-nav button { font: inherit; }

/* WordPress defaults */
.alignleft { float: left; margin: 0 0 1em 1.5em; }
.alignright { float: right; margin: 0 1.5em 1em 0; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--muted); font-size: 13px; }
.sticky { position: relative; }
.bypostauthor { position: relative; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
