/*
Theme Name: GOG Repacks
Theme URI: https://gog-repacks.site/
Author: GOG Repacks
Author URI: https://gog-repacks.site/
Description: AAA game-store design for GOG Repacks — spotlight hero, neon-glow game cards, gradient download vault, glass header. Fully responsive, SEO-optimised (VideoGame + ItemList structured data, single-H1 hierarchy, CWV-friendly) and built on default WordPress posts with the site's existing genre, size and download-link fields.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
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: gog-repacks
Tags: blog, news, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ==================================================================
   1. Design tokens — "Neon Vault"
   ================================================================== */
:root {
  --bg0: #07080f;                /* void */
  --bg1: #0c0f1d;                /* deep space */
  --card: #12162b;
  --card-2: #181d38;
  --line: #242b52;
  --line-soft: #1b2140;
  --text: #eef0ff;
  --muted: #929ac4;
  --violet: #7c5cff;
  --magenta: #e14eca;
  --cyan: #45f0df;               /* file-size / data accent */
  --grad: linear-gradient(120deg, var(--violet), var(--magenta));
  --grad-soft: linear-gradient(120deg, rgba(124,92,255,.16), rgba(225,78,202,.16));
  --glow-violet: 0 0 24px rgba(124, 92, 255, .45);
  --glow-magenta: 0 8px 32px rgba(225, 78, 202, .28);
  --shadow: 0 16px 44px rgba(3, 4, 10, .55);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1240px;
  --header-h: 68px;
}

/* ==================================================================
   2. Base
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(124, 92, 255, .14), transparent 60%),
    radial-gradient(900px 420px at -10% 8%, rgba(225, 78, 202, .10), transparent 55%),
    var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
img { border-radius: var(--r-sm); }
a { color: #b7a6ff; text-decoration: none; transition: color .15s ease; }
a:hover { color: #d9cfff; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: .01em;
  margin: 1.5em 0 .55em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(1.45rem, 3.2vw, 2.15rem); margin-top: 0; }
h2 { font-size: clamp(1.2rem, 2.3vw, 1.5rem); }
h3 { font-size: 1.05rem; }
p, ul, ol { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.4em; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.3em; background: var(--card); border-radius: var(--r-sm); overflow: hidden; }
th, td { border: 1px solid var(--line-soft); padding: .6em .85em; text-align: left; }
th { background: var(--card-2); }
blockquote { border-left: 3px solid var(--violet); margin: 1.2em 0; padding: .5em 1.1em; color: var(--muted); background: var(--card); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
code, pre { background: var(--card); border-radius: 6px; }
code { padding: .15em .45em; font-size: .92em; }
pre { padding: 1em; overflow: auto; border: 1px solid var(--line-soft); }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 2.2em 0; }

::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 8px; top: -64px;
  z-index: 1000;
  background: var(--grad);
  color: #fff;
  padding: .6em 1.1em;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* Scroll-reveal (JS adds .in when visible; no-JS stays visible) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ==================================================================
   3. Header — glass bar
   ================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 15, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.site-branding { display: flex; align-items: center; gap: .65rem; margin-right: auto; min-width: 0; }
.custom-logo { max-height: 40px; width: auto; border-radius: 8px; }
.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-title a { color: var(--text); display: inline-flex; align-items: baseline; gap: .28em; }
.site-title .brand-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-tagline { display: none; }
@media (min-width: 1060px) {
  .site-tagline {
    display: block;
    margin: 0;
    font-size: .74rem;
    color: var(--muted);
    border-left: 1px solid var(--line);
    padding-left: .85rem;
    max-width: 210px;
    line-height: 1.35;
  }
}

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.main-nav a {
  position: relative;
  display: block;
  padding: .5em .95em;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: .93rem;
  border: 1px solid transparent;
}
.main-nav a:hover { border-color: var(--line); color: #fff; background: rgba(124, 92, 255, .10); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-cat > a {
  background: var(--grad-soft);
  border-color: var(--violet);
  color: #fff;
  box-shadow: inset 0 0 18px rgba(124, 92, 255, .15);
}
.nav-toggle {
  display: none;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .5em .75em;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--violet); }

.header-search { position: relative; }
.header-search .search-field {
  width: 200px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: .52em 2.5em .52em 1.05em;
  font: inherit;
  font-size: .9rem;
  transition: width .25s ease, border-color .2s ease, box-shadow .2s ease;
}
.header-search .search-field::placeholder { color: var(--muted); }
.header-search .search-field:focus {
  width: 260px;
  border-color: var(--violet);
  box-shadow: var(--glow-violet);
  outline: none;
}
.header-search .search-submit,
.mobile-search .search-submit {
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: .35em .55em;
}
.header-search .search-submit:hover { color: var(--cyan); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .45em; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: rgba(10, 12, 24, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: .7rem 1rem .4rem; }
  .main-nav a { border-radius: var(--r-sm); }
  .header-search .search-field { width: 150px; }
  .header-search .search-field:focus { width: 180px; }
}
.mobile-search { position: relative; }
@media (max-width: 520px) {
  .header-search { display: none; }
  .main-nav .mobile-search { display: block; padding: .5rem 1rem 1.1rem; }
  .main-nav .mobile-search .search-field {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: var(--r-sm);
    padding: .6em 2.6em .6em 1em;
    font: inherit;
  }
}
@media (min-width: 521px) { .main-nav .mobile-search { display: none; } }

/* ==================================================================
   4. Spotlight hero (front page)
   ================================================================== */
.spotlight {
  position: relative;
  margin: 1.6rem 0 2.6rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.spotlight-bg {
  position: absolute;
  inset: -40px;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(130%) brightness(.5);
  transform: scale(1.1);
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(7, 8, 15, .94) 30%, rgba(7, 8, 15, .55) 68%, rgba(124, 92, 255, .18)),
    radial-gradient(600px 300px at 90% 110%, rgba(225, 78, 202, .22), transparent 60%);
}
.spotlight-inner {
  display: grid;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 860px) { .spotlight-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.spotlight-title {
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.spotlight-title a { color: var(--text); }
.spotlight-title a:hover { color: #fff; }
.spotlight-desc { color: var(--muted); max-width: 56ch; margin-bottom: 1.3rem; }
.spotlight-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  background: rgba(18, 22, 43, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32em .85em;
  font-size: .8rem;
  color: var(--muted);
}
.chip strong { color: var(--text); font-weight: 600; }
.chip.chip-size { color: var(--cyan); border-color: rgba(69, 240, 223, .35); font-weight: 700; }

.spotlight-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-weight: 700;
  font-size: .96rem;
  padding: .78em 1.5em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow-magenta); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 12px 40px rgba(225, 78, 202, .42); }
.btn-ghost { background: rgba(18, 22, 43, .7); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: #fff; border-color: var(--violet); box-shadow: var(--glow-violet); }

.spotlight-cover { position: relative; justify-self: center; width: min(100%, 460px); }
.spotlight-cover img {
  display: block;
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow), 0 0 60px rgba(124, 92, 255, .25);
}
.spotlight-cover::after {
  content: "";
  position: absolute;
  inset: auto 8% -14px 8%;
  height: 28px;
  background: radial-gradient(50% 100% at 50% 0, rgba(124, 92, 255, .4), transparent 70%);
  filter: blur(8px);
}

/* Platform strip */
.platform-strip {
  display: grid;
  gap: 1rem;
  margin: 0 0 2.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .platform-strip { grid-template-columns: 1fr 1fr; } }
.platform-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.05rem 1.3rem;
  color: var(--text);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .18s ease;
}
.platform-card:hover { transform: translateY(-3px); border-color: var(--violet); box-shadow: var(--glow-violet); color: #fff; }
.platform-card:hover::before { opacity: 1; }
.platform-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--grad);
  font-size: 1.35rem;
  flex-shrink: 0;
}
.platform-name { position: relative; font-family: var(--font-display); font-size: .95rem; font-weight: 700; }
.platform-count { position: relative; margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.platform-count strong { color: var(--cyan); font-size: 1.05rem; }

/* ==================================================================
   5. Section headers
   ================================================================== */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.35rem;
}
.section-title {
  position: relative;
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-bottom: .45em;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(225, 78, 202, .6);
}
.section-link { font-size: .88rem; font-weight: 600; white-space: nowrap; }

.page-header { margin: 1.4rem 0 1.8rem; }
.page-header .page-title {
  text-transform: uppercase;
  letter-spacing: .04em;
  position: relative;
  padding-bottom: .4em;
  margin-bottom: .35em;
}
.page-header .page-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 3px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(225, 78, 202, .6);
}
.page-header .archive-description { color: var(--muted); max-width: 70ch; }
.page-header .result-count { color: var(--muted); font-size: .9rem; }
.page-header .result-count strong { color: var(--cyan); }

/* Breadcrumbs */
.breadcrumbs { font-size: .84rem; color: var(--muted); margin: 1.3rem 0 1.1rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4em; }
.breadcrumbs li + li::before { content: "▸"; margin-right: .4em; color: var(--violet); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current] { color: var(--text); }

/* ==================================================================
   6. Game cards
   ================================================================== */
.site-main { padding: 0 0 3.4rem; }
.archive .site-main, .search .site-main, .single .site-main, .page .site-main, .error404 .site-main, .blog.paged .site-main { padding-top: .4rem; }

.content-sidebar { display: grid; gap: 2.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .content-sidebar.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; } }

.game-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.game-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--violet);
  box-shadow: var(--glow-violet), var(--shadow);
}
.game-card .card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--card-2), var(--card));
  overflow: hidden;
}
.game-card .card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform .35s ease;
}
.game-card:hover .card-media img { transform: scale(1.06); }
.game-card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 8, 15, .55));
  pointer-events: none;
}
.card-platform {
  position: absolute;
  z-index: 1;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  background: rgba(7, 8, 15, .82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .34em .75em;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, .5);
}
.card-new {
  position: absolute;
  z-index: 1;
  top: 10px; right: 10px;
  background: var(--grad);
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: .34em .7em;
  border-radius: 999px;
  box-shadow: var(--glow-magenta);
}
.game-card .card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.game-card .entry-title { margin: 0; font-size: .98rem; line-height: 1.4; font-family: var(--font-body); font-weight: 700; }
.game-card .entry-title a { color: var(--text); }
.game-card .entry-title a::after { content: ""; position: absolute; inset: 0; } /* full-card click */
.game-card:hover .entry-title a { color: #fff; }
.game-card .card-genre {
  color: var(--muted);
  font-size: .82rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.game-card .card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-top: .6rem;
  border-top: 1px solid var(--line-soft);
  font-size: .78rem;
  color: var(--muted);
}
.size-tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: rgba(69, 240, 223, .09);
  border: 1px solid rgba(69, 240, 223, .35);
  color: var(--cyan);
  font-weight: 700;
  font-size: .76rem;
  padding: .22em .68em;
  border-radius: 6px;
  white-space: nowrap;
}

/* Pagination */
.pagination { margin-top: 2.4rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pagination .page-numbers {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: .58em .85em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 600;
  transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.pagination .page-numbers:hover { border-color: var(--violet); color: #fff; box-shadow: var(--glow-violet); }
.pagination .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow-magenta); }
.pagination .page-numbers.dots { border: 0; background: none; color: var(--muted); }

/* ==================================================================
   7. Single game
   ================================================================== */
.single-hero-wrap {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 0 0 1.7rem;
  isolation: isolate;
}
.single-hero-bg {
  position: absolute;
  inset: -40px;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(.45) saturate(130%);
  transform: scale(1.12);
}
.single-hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 8, 15, .55), rgba(7, 8, 15, .88));
}
.single-hero-inner { padding: clamp(1.4rem, 3.5vw, 2.4rem); display: grid; gap: 1.6rem; align-items: end; }
@media (min-width: 780px) { .single-hero-inner { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } }
.single-cover img {
  display: block;
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow), 0 0 44px rgba(124, 92, 255, .3);
}
.single .entry-title { margin: 0 0 .8rem; text-wrap: balance; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.entry-meta .chip a { color: #cfc4ff; }
.entry-meta .chip a:hover { color: #fff; }

.entry-content { max-width: 76ch; }
.entry-content h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  padding-bottom: .35em;
  border-bottom: 1px solid var(--line-soft);
}
.entry-content h3 {
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1rem;
}
.entry-content ul li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--magenta); }
.entry-content img { margin: .6em 0; border: 1px solid var(--line-soft); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

/* Download vault — the signature */
.download-vault {
  position: relative;
  margin: 2.4rem 0;
  border-radius: var(--r-lg);
  padding: 1px; /* gradient border trick */
  background: var(--grad);
  box-shadow: 0 0 0 6px rgba(124, 92, 255, .08), var(--glow-magenta);
}
.vault-inner {
  background: linear-gradient(160deg, #101430 0%, #0c0f22 100%);
  border-radius: calc(var(--r-lg) - 1px);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.vault-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1.15rem;
}
.download-vault h2 { margin: 0; font-size: clamp(1.05rem, 2vw, 1.3rem); text-transform: uppercase; letter-spacing: .04em; }
.vault-size { font-size: .9rem; color: var(--muted); margin: 0; }
.vault-size .size-tag { font-size: .85rem; }
.vault-links { display: flex; flex-direction: column; gap: .75rem; }
.btn-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: .95em 1.35em;
  border-radius: var(--r-md);
  box-shadow: var(--glow-magenta);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.btn-download:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 14px 44px rgba(225, 78, 202, .45); }
.btn-download .mirror { display: flex; align-items: center; gap: .6em; overflow-wrap: anywhere; }
.btn-download .mirror::before { content: "⬇"; font-size: 1.05em; }
.btn-download .arrow { font-size: 1.15em; transition: transform .16s ease; }
.btn-download:hover .arrow { transform: translateX(4px); }
.btn-download.alt { background: var(--card-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-download.alt:hover { border-color: var(--cyan); color: #fff; box-shadow: 0 0 20px rgba(69, 240, 223, .25); }
.vault-note { margin: 1.05rem 0 0; font-size: .8rem; color: var(--muted); }

/* Floating jump-to-download on small screens */
.jump-download {
  position: fixed;
  z-index: 90;
  right: 16px; bottom: 16px;
  display: none;
  align-items: center;
  gap: .5em;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  padding: .8em 1.2em;
  border-radius: 999px;
  box-shadow: var(--glow-magenta), var(--shadow);
}
.jump-download:hover { color: #fff; filter: brightness(1.1); }
@media (max-width: 780px) { .single-game .jump-download { display: inline-flex; } }
.jump-download.is-hidden { display: none; }

/* Tags */
.entry-tags { margin: 1.9rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.entry-tags a {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: .28em .85em;
  font-size: .79rem;
  color: var(--muted);
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.entry-tags a:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px rgba(69, 240, 223, .2); }

/* Post navigation */
.post-navigation { margin: 2.4rem 0 0; }
.post-navigation .nav-links { display: grid; gap: .85rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: .95em 1.15em;
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.post-navigation a:hover { border-color: var(--violet); box-shadow: var(--glow-violet); }
.post-navigation .nav-subtitle {
  display: block;
  color: var(--magenta);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .25em;
}
.post-navigation .nav-next { text-align: right; }

.related-games { margin-top: 3.2rem; }

/* ==================================================================
   8. Sidebar / widgets
   ================================================================== */
.widget-area { display: flex; flex-direction: column; gap: 1.4rem; }
.widget {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 1.25rem 1.35rem;
}
.widget .widget-title, .widget .wp-block-heading {
  position: relative;
  margin: 0 0 .95em;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding-bottom: .55em;
}
.widget .widget-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .45em 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--muted); }
.widget a:hover { color: var(--cyan); }
.widget .cat-count { float: right; color: var(--cyan); font-size: .8rem; }

/* Mini list widget (recently added with thumbs) */
.mini-game { display: flex; gap: .75rem; align-items: center; }
.mini-game img { width: 74px; height: 46px; object-fit: cover; border-radius: 6px; flex-shrink: 0; border: 1px solid var(--line-soft); }
.mini-game .mini-title { font-size: .84rem; line-height: 1.35; color: var(--text); font-weight: 600; }
.mini-game:hover .mini-title { color: var(--cyan); }
.mini-game .mini-size { display: block; font-size: .72rem; color: var(--cyan); margin-top: .15em; font-weight: 700; }

/* ==================================================================
   9. Comments & forms
   ================================================================== */
.comments-area { margin-top: 3.2rem; border-top: 1px solid var(--line-soft); padding-top: 2rem; }
.comments-title { text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; }
.comment-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.comment-list .comment { margin-bottom: 1rem; }
.comment-body { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 1.05rem 1.2rem; }
.comment-list .children { list-style: none; margin: .85rem 0 0 1.4rem; padding: 0; }
.comment-meta { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.comment-meta img { border-radius: 50%; border: 1px solid var(--line); }
.comment-metadata { font-size: .78rem; color: var(--muted); }
.comment-content { font-size: .95rem; }
.reply a { font-size: .8rem; font-weight: 700; color: var(--magenta); }
.comment-form label { display: block; font-size: .84rem; margin-bottom: .3em; color: var(--muted); font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: .68em .95em;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--violet); box-shadow: var(--glow-violet); outline: none; }
.comment-form p { margin-bottom: 1.05em; }
.form-submit .submit {
  background: var(--grad);
  color: #fff;
  border: 0;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: .98rem;
  padding: .75em 1.8em;
  cursor: pointer;
  box-shadow: var(--glow-magenta);
  transition: transform .15s ease, filter .15s ease;
}
.form-submit .submit:hover { transform: translateY(-2px); filter: brightness(1.1); }

.search-form .search-field {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: .65em .95em;
  font: inherit;
}

/* ==================================================================
   10. 404 / empty states
   ================================================================== */
.no-results, .error-404 { text-align: center; padding: 3.2rem 1rem; }
.error-404 .error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 8rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 .15em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(225, 78, 202, .35));
}
.no-results .search-form, .error-404 .search-form {
  max-width: 440px;
  margin: 1.6rem auto 0;
  display: flex;
  gap: .5rem;
}
.no-results .search-field, .error-404 .search-field { flex: 1; }
.no-results .search-submit, .error-404 .search-submit {
  background: var(--grad);
  border: 0;
  color: #fff;
  border-radius: var(--r-sm);
  padding: 0 1.1em;
  cursor: pointer;
  font-size: 1rem;
}

/* ==================================================================
   11. Footer
   ================================================================== */
.site-footer {
  position: relative;
  margin-top: 3rem;
  background: var(--bg1);
  padding: 2.6rem 0 2.1rem;
  font-size: .9rem;
  color: var(--muted);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: .7;
}
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h2 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text);
  margin: 0 0 .8em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: .28em 0; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text);
  margin: 0 0 .5em;
}
.footer-brand .brand-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-info {
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-soft);
  font-size: .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: space-between;
}
.site-info a:hover { color: var(--cyan); }

/* ==================================================================
   12. WP core helpers
   ================================================================== */
.alignleft { float: left; margin: .4em 1.2em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .8rem; color: var(--muted); text-align: center; padding: .45em 0; }
.sticky { border-color: var(--magenta); }
.bypostauthor { display: block; }
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.page-links { margin: 1.2em 0; }
