/* =========================================================
   Numantian Games — base styles
   Vanilla CSS, no preprocessor, no framework. Mobile-first.
   ========================================================= */

/* --- Self-hosted fonts (no Google Fonts CDN, no external deps) --- */
@font-face {
  font-family: 'Philosopher';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/philosopher-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Philosopher';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/philosopher-400i.woff2') format('woff2');
}
@font-face {
  font-family: 'Philosopher';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/philosopher-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Philosopher';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/philosopher-700i.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/open-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/open-sans-700.woff2') format('woff2');
}

/* --- Custom properties (theme) --- */
:root {
  --bg:           #000;
  --bg-elev:      #111;
  --border:       #1f1f1f;
  --text:         #e6e6e6;
  --text-muted:   #9a9a9a;
  --gold:         #d4a017;
  --gold-bright:  #f5a623;
  --focus:        #f5a623;

  /* Use Philosopher for everything (the "fancy" font); fall back to a serif. */
  --font-body:    'Philosopher', Georgia, "Times New Roman", serif;
  --font-heading: 'Philosopher', Georgia, "Times New Roman", serif;

  --max-w:         1200px;         /* single content column — everything fits in here */
  --max-w-content: var(--max-w);
  --max-w-cards:   var(--max-w);
  --gap:           clamp(0.75rem, 1.5vw, 2rem);
  /* adaptive horizontal padding: keeps inner content centered inside --max-w
     while the section's background spans the full viewport width */
  --pad-x: max(clamp(1rem, 3vw, 2rem), calc((100% - var(--max-w)) / 2));
}

/* --- Reset / base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.7vw + 13px, 20px); /* fluid base across small phones to 4K */
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* progressive enhancement: dynamic viewport for mobile */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-x: hidden; /* keep slide-in animations from triggering horizontal scroll */
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; }

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Visually hidden for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-link */
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: var(--gold-bright);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 0.8vw, 0.8rem);
  padding-block: clamp(0.5rem, 1vw, 1rem);
  padding-inline: var(--pad-x);
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: center;
}

.logo img {
  height: clamp(32px, 3vw, 56px);
  width: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.site-nav a {
  display: inline-block;
  padding: 0.2rem 0.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.7rem, 0.4vw + 0.5rem, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  transition: color 150ms ease;
}

.site-nav a:hover { color: var(--gold-bright); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); }

/* Nav dropdowns (e.g. Forum: TAB / LoX) — toggle looks like a nav link. */
.site-nav .nav-dropdown { position: relative; }
.site-nav .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.1rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.7rem, 0.4vw + 0.5rem, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  transition: color 150ms ease;
}
.site-nav .nav-dropdown-toggle:hover,
.site-nav .nav-dropdown-toggle:focus-visible,
.site-nav .nav-dropdown-toggle[aria-expanded="true"] {
  color: var(--gold-bright);
  outline: none;
}
.site-nav .nav-caret {
  font-size: 0.75em;
  transition: transform 150ms ease;
}
.site-nav .nav-dropdown-toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}
.site-nav .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--bg-elev, #141414);
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: 6px;
  min-width: 11rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.site-nav .nav-dropdown-menu[hidden] { display: none; }
.site-nav .nav-dropdown-menu a {
  display: block;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
  color: var(--text);
  text-transform: none;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.site-nav .nav-dropdown-menu a:hover,
.site-nav .nav-dropdown-menu a:focus-visible {
  background: rgba(245, 166, 35, 0.12);
  color: var(--gold-bright);
  outline: none;
}

/* Header is column-centered at every viewport now (no media-query exception needed) */

/* =========================================================
   Main / games section
   ========================================================= */
.home-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(1.5rem, 4vw, 4rem);
  padding-inline: var(--pad-x);
}

.games {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--gap);
  width: 100%;
  max-width: var(--max-w-cards);
  margin: 0 auto;
}

.game-card {
  flex: 0 1 clamp(200px, 21vw, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.4rem, 0.8vw, 0.85rem);
  text-decoration: none;
  color: inherit;
  transition: transform 250ms ease, filter 250ms ease;
}

.game-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.game-card:hover { transform: translateY(-4px); }
.game-card:hover img { filter: brightness(1.05); }

.game-platforms {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(0.7rem, 0.3vw + 0.6rem, 0.85rem);
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* --- Entrance animation: cards slide from each side and meet in center ---
   Using translateX(±100%) (card-width relative) instead of ±100vw. Same "slides
   in from the side" feel but bounded — robust across headless/screenshot timing
   and any viewport, no horizontal scroll glitches. */
@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-100%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

.game-card--left  { animation: slideInFromLeft  1s cubic-bezier(.16,1,.3,1) both; }
.game-card--right { animation: slideInFromRight 1s cubic-bezier(.16,1,.3,1) both; }

@media (prefers-reduced-motion: reduce) {
  .game-card--left,
  .game-card--right { animation: none; }
  .game-card,
  .game-card img { transition: none; }
}

/* Mobile (portrait): cards stack vertically (force-wrap, no shrink) */
@media (max-width: 700px) {
  .game-card { flex: 0 0 min(70vw, 280px); }
}

/* Phone landscape (very short): shrink cards so first one fits visible */
@media (max-height: 500px) and (orientation: landscape) {
  .home-main { padding: 0.75rem 1rem; }
  .game-card { flex: 0 1 clamp(180px, 26vw, 280px); }
  .games { gap: 1rem; }
  .site-header { padding: 0.5rem 1rem; gap: 0.5rem 1rem; }
  .logo img { height: 32px; }
  .site-nav a { font-size: 0.75rem; }
}

/* Ultra-wide / 4K: keep things from getting tiny in a sea of black */
@media (min-width: 2000px) {
  :root {
    --max-w-content: 1800px;
    --max-w-cards:   2000px;
  }
  .home-main { padding-block: clamp(2rem, 4vh, 5rem); }
}

/* =========================================================
   Footer — 3 columns (Brand · Follow us · Site map), compact
   ========================================================= */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding-block: clamp(0.75rem, 1.5vw, 1.1rem) clamp(0.4rem, 0.8vw, 0.7rem);
  padding-inline: var(--pad-x);
  text-align: center;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.6rem, 1vw, 0.9rem);
  align-items: center;
  justify-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: 1.7fr 1fr 1.3fr;
    text-align: left;
    justify-items: center;
    align-items: center;
    gap: clamp(0.6rem, 1.2vw, 1.1rem);
  }
  .footer-brand        { justify-self: start;  text-align: left;   }
  .footer-social-block { justify-self: center; text-align: center; }
  .footer-nav          { justify-self: center; text-align: center; }
}

/* --- Brand block: logo + text side-by-side on desktop, stacked on mobile --- */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 38ch;
}
@media (min-width: 720px) {
  .footer-brand {
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    max-width: none;
    text-align: left;
  }
  .footer-brand .footer-logo { flex: 0 0 auto; }
}

.footer-brand .footer-logo img {
  height: clamp(44px, 3.5vw, 60px);
  width: auto;
  opacity: 0.95;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-brand-name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.85rem, 0.3vw + 0.75rem, 1.05rem);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-bright);
  line-height: 1.1;
}

.footer-tagline {
  margin: 0;
  font-size: clamp(0.65rem, 0.1vw + 0.6rem, 0.72rem);
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 38ch;
}

/* --- Section labels --- */
.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.65rem, 0.1vw + 0.6rem, 0.72rem);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 0.4rem;
  color: var(--text);
}

/* --- Social --- */
.footer-social-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 720px) {
  .footer-social-block { align-items: center; }
}

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text);
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}
.social a:hover, .social a:focus-visible {
  color: var(--gold-bright);
  background: rgba(245, 166, 35, 0.08);
  transform: translateY(-2px);
}
.social svg { width: 16px; height: 16px; }

/* --- Footer nav: 3-col grid, very compact, centered --- */
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 0.7rem;
  justify-items: center;
}
@media (min-width: 600px) {
  .footer-nav ul { grid-template-columns: repeat(3, auto); }
}

.footer-nav a {
  display: inline-block;
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: clamp(0.62rem, 0.1vw + 0.6rem, 0.7rem);
  line-height: 1.55;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}
.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] { color: var(--gold-bright); }

/* --- Bottom legal bar (full width, centered) --- */
.footer-bottom {
  border-top: 1px solid var(--border);
  margin: clamp(0.4rem, 0.8vw, 0.7rem) auto 0;
  padding-top: clamp(0.4rem, 0.8vw, 0.65rem);
  max-width: var(--max-w);
  font-size: clamp(0.62rem, 0.1vw + 0.58rem, 0.7rem);
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}
.footer-bottom .copyright,
.footer-bottom .trademarks {
  margin: 0.15rem auto;
}
.footer-bottom .trademarks {
  opacity: 0.7;
  font-size: 0.92em;
  max-width: 80ch;
}

/* =========================================================
   Reusable components (used by They Are Billions, Lords of Xulima, etc.)
   ========================================================= */

/* --- Hero (2-col game banner: side links + main banner with logo+description+buy) --- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  padding-block: clamp(2rem, 5vw, 4.5rem);
  padding-inline: var(--pad-x);
  width: 100%;
  /* atmospheric bg with dark overlay; each page sets --hero-bg via inline style */
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.85) 100%),
    var(--hero-bg, none) center / cover no-repeat,
    #000;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: auto 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    text-align: left;
  }
}

/* --- Hero side links (Watch / Steam / Read More) --- */
.hero-side {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
  order: 2; /* on mobile shows below main */
}
@media (min-width: 760px) { .hero-side { order: 1; align-items: flex-start; } }

.hero-side-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.85rem, 0.3vw + 0.75rem, 1rem);
  letter-spacing: 0.5px;
  color: var(--text);
  transition: color 150ms ease, transform 150ms ease;
  white-space: nowrap;
}
.hero-side-link:hover, .hero-side-link:focus-visible {
  color: var(--gold-bright);
  transform: translateX(2px);
}

/* --- Hero main (logo + subtitle + description + platforms + buy) --- */
.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.4rem, 1vw, 0.85rem);
  order: 1;
}
@media (min-width: 760px) { .hero-main { order: 2; } }

.hero-logo {
  width: clamp(280px, 30vw, 480px);
  height: auto;
}

.hero-subtitle {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.5rem);
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-description {
  margin: 0.25rem 0;
  max-width: 56ch;
  font-size: clamp(0.85rem, 0.3vw + 0.75rem, 1rem);
  line-height: 1.55;
  color: var(--text);
  opacity: 0.88;
}

.hero-platforms {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(0.78rem, 0.2vw + 0.7rem, 0.92rem);
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.hero-buy {
  display: inline-block;
  margin-top: 0.5rem;
  transition: transform 200ms ease, filter 200ms ease;
}
.hero-buy img {
  height: clamp(48px, 4vw, 64px);
  width: auto;
  display: block;
}
.hero-buy:hover, .hero-buy:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.1);
}


/* --- Hero entrance animations --- */
/* Only the logo (drop-in from above) and the subtitle (zoom from small) animate.
   The rest is just there. Keeps it robust across browsers/headless rendering. */
@keyframes heroLogoDrop {
  from { opacity: 0; transform: translateY(-120%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroTextZoom {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-logo     { animation: heroLogoDrop 0.9s cubic-bezier(.16,1,.3,1) both; }
.hero-subtitle { animation: heroTextZoom 0.7s cubic-bezier(.16,1,.3,1) both;
                 animation-delay: 0.6s;
                 transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-subtitle { animation: none; }
}

/* --- Section heading shared --- */
.section-heading {
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.2rem, 1vw + 0.8rem, 2rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  color: var(--gold-bright);
}

/* --- Carousel --- */
.carousel-section {
  padding-block: clamp(1rem, 3vw, 3rem);
  padding-inline: var(--pad-x);
  width: 100%;
}

.carousel { position: relative; }

.carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* All pages share the same grid cell; the active one is opacity 1, others 0.
   No visibility-transition tricks — keeps it from flashing black during click. */
.carousel-page {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 1.2vw, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
  z-index: 0;
}
.carousel-page[aria-current="true"] {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

@media (max-width: 800px) {
  .carousel-page { grid-template-columns: repeat(2, 1fr); }
}

.carousel-item {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.carousel-item:hover, .carousel-item:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.carousel-dots {
  margin: clamp(0.75rem, 1.5vw, 1.25rem) 0 0;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}
.carousel-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 200ms ease, background 200ms ease, transform 200ms ease;
}
.carousel-dots button:hover { opacity: 0.85; transform: scale(1.15); }
.carousel-dots button[aria-current="true"] {
  background: var(--gold-bright);
  opacity: 1;
}

/* --- Videos grid (3x3 of YouTube link tiles) --- */
.videos {
  padding-block: clamp(1.5rem, 3vw, 3rem);
  padding-inline: var(--pad-x);
  width: 100%;
  text-align: center;
}
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: max-content;
  align-items: start;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  max-width: var(--max-w);
  margin-inline: auto;
}
@media (min-width: 600px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .videos-grid { grid-template-columns: repeat(3, 1fr); } }

.video-tile {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000 center / cover no-repeat;
  text-decoration: none;
  color: inherit;
  transition: transform 250ms ease, box-shadow 250ms ease, filter 250ms ease;
  isolation: isolate;
  align-self: start; /* prevent grid from stretching tiles to row height */
}
.video-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.video-play { display: none; }  /* removed per request — looked bad */
.video-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.78rem, 0.3vw + 0.7rem, 0.95rem);
  letter-spacing: 0.5px;
  color: var(--text);
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  z-index: 2;
}
.video-tile:hover, .video-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  filter: brightness(1.1);
}

/* --- Features grid --- */
.features {
  padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 4rem);
  padding-inline: var(--pad-x);
  width: 100%;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  max-width: var(--max-w);
  margin-inline: auto;
}
@media (min-width: 700px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .features-grid { grid-template-columns: 1fr 1fr 1fr; } /* default: exactly 3 cols on desktop */
}
/* Modifier: keep at 2 cols even on desktop (for pages with 4 features) */
@media (min-width: 1000px) {
  .features-grid--2 { grid-template-columns: 1fr 1fr; }
}

.features-intro {
  max-width: 80ch;
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(0.9rem, 0.3vw + 0.8rem, 1.05rem);
  line-height: 1.6;
  color: var(--text);
  opacity: 0.9;
  text-align: center;
}
.features-intro strong { color: var(--gold-bright); font-weight: 700; }
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.feature h3 {
  margin: 1rem 1.25rem 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.5vw + 0.85rem, 1.25rem);
  letter-spacing: 0.5px;
  color: var(--gold-bright);
}
.feature p {
  margin: 0 1.25rem 1.25rem;
  font-size: clamp(0.85rem, 0.3vw + 0.75rem, 0.95rem);
  color: var(--text);
  opacity: 0.92;
  line-height: 1.6;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: lightboxFadeIn 220ms ease;
  padding: clamp(0.5rem, 2vw, 2rem);
}
.lightbox[hidden] { display: none; }
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: lightboxZoomIn 280ms cubic-bezier(.16,1,.3,1);
}
@keyframes lightboxZoomIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox button {
  position: absolute;
  width: 48px; height: 48px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
  z-index: 1;
}
.lightbox button:hover,
.lightbox button:focus-visible {
  background: rgba(245, 166, 35, 0.2);
  color: var(--gold-bright);
}

/* Close button: top-right corner */
.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 1.6rem;
}
.lightbox-close:hover,
.lightbox-close:focus-visible { transform: scale(1.08); }

/* Prev / Next: vertically centered on each side */
.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev:hover,
.lightbox-prev:focus-visible,
.lightbox-next:hover,
.lightbox-next:focus-visible { transform: translateY(-50%) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .lightbox { animation: none; }
  .lightbox-image { animation: none; }
}

/* =========================================================
   Store page
   ========================================================= */
.store-page {
  padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 4rem);
  padding-inline: var(--pad-x);
  width: 100%;
}

.store-page-title {
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  color: var(--gold-bright);
}

.store-game {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(0.85rem, 1.8vw, 1.4rem);
  margin: 0 auto clamp(1rem, 1.5vw, 1.5rem);
  max-width: var(--max-w);
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.store-game:hover {
  border-color: rgba(245, 166, 35, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.store-banner {
  margin: 0 auto clamp(0.75rem, 1.5vw, 1.25rem);
}
.store-banner-logo {
  height: clamp(80px, 9vw, 140px);
  width: auto;
  display: block;
  margin: 0 auto;
}

.store-description {
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  max-width: 60ch;
  font-size: clamp(0.9rem, 0.3vw + 0.8rem, 1.05rem);
  line-height: 1.55;
  color: var(--text);
  opacity: 0.92;
}

.store-buttons-heading {
  margin: 0 0 clamp(0.75rem, 1.5vw, 1rem);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(0.75rem, 0.2vw + 0.7rem, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* --- Store layout: Direct (left) | Other Stores (right), both gold cards --- */
.store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  margin-top: clamp(0.6rem, 1.2vw, 1rem);
}
@media (min-width: 720px) {
  .store-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
}

/* Shared card styling for Direct and Other Stores */
.store-direct,
.store-other {
  padding: clamp(0.7rem, 1.2vw, 1rem);
  background: linear-gradient(180deg, rgba(245,166,35,0.08), rgba(245,166,35,0.02));
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(245,166,35,0.06) inset;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}

/* Editions stack vertically inside Direct (one per row) */
.store-editions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.store-edition {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.store-edition .humble-widget { margin-top: 0; }
.store-direct-heading,
.store-buttons-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.85rem, 0.25vw + 0.78rem, 1rem);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-bright);
  text-align: center;
}
.store-direct-blurb {
  margin: 0;
  font-size: clamp(0.72rem, 0.12vw + 0.68rem, 0.78rem);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}
.store-buy-direct {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(180deg, rgba(245,166,35,0.32), rgba(245,166,35,0.12));
  border: 1px solid var(--gold-bright);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.85rem, 0.3vw + 0.75rem, 1rem);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 14px rgba(245,166,35,0.2);
}
.store-buy-direct:hover, .store-buy-direct:focus-visible {
  background: linear-gradient(180deg, rgba(245,166,35,0.5), rgba(245,166,35,0.2));
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245,166,35,0.3);
}

/* Humble Widget V2 iframe — fills the column, no extra max-width */
.humble-widget {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: transparent;
  margin: 0;
}

.store-edition-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.78rem, 0.15vw + 0.72rem, 0.88rem);
  letter-spacing: 0.5px;
  color: var(--gold);
  text-align: center;
}

/* --- Press Kit download button --- */
.presskit-download { margin: 0; }
.presskit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(180deg, rgba(245,166,35,0.18), rgba(245,166,35,0.06));
  border: 1px solid var(--gold-bright);
  border-radius: 5px;
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.6rem, 0.2vw + 0.55rem, 0.72rem);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 3px 10px rgba(245,166,35,0.1);
}
.presskit-btn svg { width: 16px; height: 16px; }
.presskit-btn:hover, .presskit-btn:focus-visible {
  background: linear-gradient(180deg, rgba(245,166,35,0.32), rgba(245,166,35,0.12));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.2);
}
.presskit-size {
  font-weight: 400;
  opacity: 0.75;
  font-size: 0.75em;
  letter-spacing: 0.5px;
}

/* =========================================================
   About Us page
   ========================================================= */
.about-page {
  padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 4rem);
  padding-inline: var(--pad-x);
  width: 100%;
}
.about-hero {
  text-align: center;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  max-width: var(--max-w);
}
.about-logo {
  height: clamp(110px, 11vw, 180px);
  width: auto;
  margin: 0 auto;
  display: block;
}
.about-title {
  margin: clamp(0.75rem, 1.5vw, 1.25rem) 0 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.12rem, 1.12vw + 0.75rem, 1.88rem);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold-bright);
}
.about-tagline {
  margin: 0;
  font-style: italic;
  font-size: clamp(0.72rem, 0.3vw + 0.6rem, 0.86rem);
  color: var(--text-muted);
}

.about-section {
  max-width: 75ch;
  margin: 0 auto clamp(1.5rem, 2.5vw, 2rem);
}
.about-section .section-heading {
  text-align: left;
  margin: 0 0 clamp(0.5rem, 1vw, 0.75rem);
}
.about-section p {
  margin: 0 0 0.7rem;
  font-size: clamp(0.72rem, 0.22vw + 0.64rem, 0.79rem);
  line-height: 1.65;
  color: var(--text);
}
.about-section a:not(.presskit-btn) {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(245,166,35,0.4);
  transition: text-decoration-color 200ms ease;
}
.about-section a:not(.presskit-btn):hover {
  text-decoration-color: var(--gold-bright);
}

.about-contact .about-email {
  margin: 0;
}

.about-rules {
  margin: 0.5rem 0 1rem;
  padding-left: 1.5rem;
  list-style: decimal;
}
.about-rules li {
  margin-bottom: 0.7rem;
  font-size: clamp(0.69rem, 0.18vw + 0.62rem, 0.75rem);
  line-height: 1.6;
  color: var(--text);
}
.about-rules li strong {
  color: var(--gold-bright);
  font-weight: 700;
}
.about-fineprint {
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(0.64rem, 0.15vw + 0.59rem, 0.71rem);
}

/* =========================================================
   Articles (single page + listings + home block)
   ========================================================= */

/* --- Single article page --- */
.article-page {
  padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 4rem);
  padding-inline: var(--pad-x);
  width: 100%;
}
.article {
  max-width: 75ch;
  margin: 0 auto;
}
.article-header { margin-bottom: clamp(1rem, 2vw, 1.5rem); text-align: left; }
.article-type-badge {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.55rem;
  padding: 0.18rem 0.5rem;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 3px;
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  top: -0.18em;
}
.article-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.5vw + 0.75rem, 1.95rem);
  line-height: 1.2;
  color: var(--text);
}
.article-date {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(0.68rem, 0.15vw + 0.62rem, 0.78rem);
}
.article-hero {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

/* --- Article body (generic typography for any HTML inside) --- */
.article-body {
  font-size: clamp(0.72rem, 0.22vw + 0.64rem, 0.82rem);
  line-height: 1.7;
  color: var(--text);
}
.article-body > * + * { margin-top: 0.85rem; }
.article-body h2 {
  margin-top: 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.45vw + 0.75rem, 1.2rem);
  letter-spacing: 0.5px;
  color: var(--gold-bright);
}
.article-body h3 {
  margin-top: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.8rem, 0.3vw + 0.68rem, 0.98rem);
  color: var(--text);
}
.article-body p { margin: 0; }
.article-body a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245,166,35,0.4);
  transition: text-decoration-color 200ms ease;
}
.article-body a:hover { text-decoration-color: var(--gold-bright); }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-block: 1rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
}
.article-body ul li, .article-body ol li { margin-bottom: 0.4rem; }
.article-body blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: rgba(245,166,35,0.05);
  font-style: italic;
  color: var(--text-muted);
}
.article-body code {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
}
.article-body pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.88em;
}

/* Source attribution (top of article, small + muted) */
.article-body .article-source {
  margin: 0 0 1.25rem;
  padding: 0.5rem 0.85rem;
  background: rgba(245,166,35,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.article-body .article-source a { font-weight: 700; }

.store-direct-blurb strong {
  color: var(--gold-bright);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.3px;
}

/* Lead paragraph (first sentence-ish, slightly larger) */
.article-body .article-lede {
  font-size: clamp(0.8rem, 0.3vw + 0.72rem, 0.92rem);
  line-height: 1.6;
  color: var(--text);
  font-weight: 400;
}

/* YouTube facade: local thumbnail, opens YouTube in new tab on click.
   We don't embed an iframe so the article page itself loads zero remote
   resources — every render-time asset lives inside Website/. */
.article-body .article-video {
  position: relative;
  display: block;
  margin: clamp(1.25rem, 2vw, 1.75rem) 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  text-decoration: none;
  cursor: pointer;
}
.article-body .article-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  transition: transform 350ms ease, filter 250ms ease;
}
.article-body .article-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Once the user clicks Play, hide the gradient + button overlays */
.article-body .article-video--playing::after,
.article-body .article-video--playing .article-video-play { display: none; }
.article-body .article-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.article-body .article-video-play {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(56px, 6vw, 84px);
  height: clamp(56px, 6vw, 84px);
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 200ms ease, background 200ms ease;
  pointer-events: none;
}
.article-body .article-video-play::before {
  content: '';
  width: 0; height: 0;
  margin-left: 5px;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.article-body .article-video:hover img,
.article-body .article-video:focus-visible img {
  transform: scale(1.03);
  filter: brightness(1.05);
}
.article-body .article-video:hover .article-video-play,
.article-body .article-video:focus-visible .article-video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold-bright);
}

/* Figure with caption (centered, full-width image) */
.article-body .article-figure {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0;
}
.article-body .article-figure img {
  width: 100%;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
}
.article-body .article-figure figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Gallery: clickable thumbnails that open the page-wide lightbox */
.article-body .article-gallery {
  margin: clamp(1.25rem, 2vw, 1.75rem) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(0.4rem, 0.8vw, 0.65rem);
}
.article-body .article-gallery .carousel-item {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.article-body .article-gallery .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  display: block;
  transition: transform 350ms ease;
}
.article-body .article-gallery .carousel-item:hover,
.article-body .article-gallery .carousel-item:focus-visible {
  border-color: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(0,0,0,0.55);
  transform: translateY(-2px);
  outline: none;
}
.article-body .article-gallery .carousel-item:hover img,
.article-body .article-gallery .carousel-item:focus-visible img {
  transform: scale(1.04);
}

/* Prev/next nav with the neighbour article's title shown */
.article-nav {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  margin: clamp(1.5rem, 2.5vw, 2rem) 0 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-nav-prev,
.article-nav-next {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(180deg, rgba(245,166,35,0.12), rgba(245,166,35,0.03));
  border: 1px solid rgba(245,166,35,0.45);
  border-radius: 4px;
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.article-nav-prev { justify-content: flex-start; text-align: left; }
.article-nav-next { justify-content: flex-end;   text-align: right; }
.article-nav-prev:hover, .article-nav-next:hover,
.article-nav-prev:focus-visible, .article-nav-next:focus-visible {
  color: #fff;
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(245,166,35,0.32), rgba(245,166,35,0.1));
  transform: translateY(-1px);
}
.article-nav-arrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  flex: 0 0 auto;
  color: var(--gold-bright);
  transition: color 150ms ease;
}
.article-nav-prev:hover .article-nav-arrow,
.article-nav-next:hover .article-nav-arrow { color: #fff; }
.article-nav-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.article-nav-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.article-nav-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-nav-spacer { flex: 1 1 0; }

/* Related articles — compact dated list */
.article-related {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.article-related h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.article-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.article-related li { margin: 0; }
.article-related a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.3rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.35;
  transition: color 150ms ease;
}
.article-related a:hover, .article-related a:focus-visible {
  color: var(--gold-bright);
}
.article-related-date {
  flex: 0 0 auto;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
  font-variant-numeric: tabular-nums;
  min-width: 5.5rem;
}
.article-related-title { flex: 1; min-width: 0; }

.article-discuss {
  margin: clamp(2rem, 3vw, 3rem) 0 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(180deg, rgba(245,166,35,0.08), rgba(245,166,35,0.02));
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: 8px;
  text-align: center;
}
.article-discuss-text {
  margin: 0 0 0.85rem;
  font-size: clamp(0.78rem, 0.22vw + 0.7rem, 0.88rem);
  color: var(--text);
  line-height: 1.55;
}
.article-discuss-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  background: linear-gradient(180deg, rgba(245,166,35,0.32), rgba(245,166,35,0.12));
  border: 1px solid var(--gold-bright);
  border-radius: 5px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.58rem, 0.12vw + 0.54rem, 0.66rem);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 3px 10px rgba(245,166,35,0.14);
}
.article-discuss-btn svg { width: 16px; height: 16px; }
.article-discuss-btn:hover, .article-discuss-btn:focus-visible {
  background: linear-gradient(180deg, rgba(245,166,35,0.5), rgba(245,166,35,0.2));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.28);
}
.article-discuss-btn svg { color: var(--gold-bright); }

.article-footer {
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.article-back {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}
.article-back:hover, .article-back:focus-visible {
  color: var(--gold-bright);
  transform: translateX(-3px);
}

/* --- Pagination (News listing) --- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  max-width: var(--max-w);
  margin: clamp(2rem, 3vw, 2.5rem) auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.pagination-page:hover, .pagination-page:focus-visible {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(245,166,35,0.1);
}
.pagination-current {
  background: linear-gradient(180deg, rgba(245,166,35,0.32), rgba(245,166,35,0.12));
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  cursor: default;
}
.pagination-current:hover, .pagination-current:focus-visible {
  background: linear-gradient(180deg, rgba(245,166,35,0.32), rgba(245,166,35,0.12));
  color: var(--gold-bright);
}

/* --- Listing pages (/News/) --- */
.articles-page {
  padding-block: clamp(1rem, 1.5vw, 1.5rem) clamp(2rem, 4vw, 4rem);
  padding-inline: var(--pad-x);
  width: 100%;
}
.articles-page .store-page-title {
  margin: 0 auto clamp(0.3rem, 0.6vw, 0.5rem);
  font-size: clamp(1.2rem, 0.8vw + 0.95rem, 1.7rem);
  letter-spacing: 2.5px;
}
.articles-page .features-intro {
  margin: 0 auto clamp(1rem, 1.5vw, 1.4rem);
  font-size: clamp(0.78rem, 0.2vw + 0.7rem, 0.9rem);
  opacity: 0.8;
}
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
  max-width: var(--max-w);
  margin-inline: auto;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
  min-height: 0;
}
@media (min-width: 600px) {
  .article-card { grid-template-columns: 210px 1fr; }
}
@media (min-width: 1000px) {
  .article-card { grid-template-columns: 255px 1fr; }
}
.article-card:hover, .article-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(245,166,35,0.4);
  box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}
.article-card-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000 center / contain no-repeat;
}
@media (min-width: 600px) {
  .article-card-hero { aspect-ratio: auto; height: 100%; min-height: 120px; }
}
.article-card-hero--empty {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  position: relative;
}
.article-card-hero--empty::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245,166,35,0.05), transparent 60%);
}
.article-card-body {
  display: flex;
  flex-direction: column;
  padding: clamp(0.7rem, 1.2vw, 1rem) clamp(0.85rem, 1.5vw, 1.15rem);
  gap: 0.3rem;
  justify-content: center;
  min-width: 0;
}
.article-card-type {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.55rem;
  padding: 0.1rem 0.45rem;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: 3px;
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  position: relative;
  top: -0.18em;
}
.article-card-date {
  margin: 0 0 0.05rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.3px;
  line-height: 1;
}
.article-card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.78rem, 0.3vw + 0.7rem, 0.92rem);
  line-height: 1.3;
  color: var(--text);
}
.article-card:hover .article-card-title { color: var(--gold-bright); }
.article-card-excerpt {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-muted);
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Home: latest news block --- */
.home-news {
  padding-block: clamp(1.5rem, 3vw, 3rem);
  padding-inline: var(--pad-x);
  width: 100%;
  border-top: 1px solid var(--border);
}
.home-news .section-heading { margin-top: 0; }
.home-news .articles-grid { margin-bottom: 1rem; }
.home-news-more {
  text-align: center;
  margin: clamp(1rem, 1.5vw, 1.5rem) 0 0;
}
.home-news-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(180deg, rgba(245,166,35,0.32), rgba(245,166,35,0.12));
  border: 1px solid var(--gold-bright);
  border-radius: 5px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.62rem, 0.15vw + 0.58rem, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 3px 10px rgba(245,166,35,0.14);
}
.home-news-more a:hover, .home-news-more a:focus-visible {
  background: linear-gradient(180deg, rgba(245,166,35,0.5), rgba(245,166,35,0.2));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.28);
}

.store-buttons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  flex: 1;
}
.store-buttons li { display: block; }

.store-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.74rem, 0.12vw + 0.7rem, 0.82rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease;
  white-space: nowrap;
  min-width: 0;
}
.store-btn svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--gold); }
.store-btn:hover, .store-btn:focus-visible {
  color: var(--gold-bright);
  background: rgba(245, 166, 35, 0.12);
  border-color: var(--gold-bright);
  transform: translateX(2px);
}
.store-btn:hover svg, .store-btn:focus-visible svg { color: var(--gold-bright); }

/* Wishlist variant — already gold to call attention since it drives Steam algo */
.store-btn--wishlist {
  color: var(--gold-bright);
  border-color: rgba(245, 166, 35, 0.55);
  background: linear-gradient(180deg, rgba(245,166,35,0.16), rgba(245,166,35,0.04));
}
.store-btn--wishlist svg { color: var(--gold-bright); }

@media (prefers-reduced-motion: reduce) {
  .store-game, .store-btn { transition: none; }
}

/* =========================================================
   Language switcher (top-right of header)
   ========================================================= */
.lang-switcher {
  position: absolute;
  top: clamp(0.5rem, 1vw, 0.9rem);
  right: clamp(0.6rem, 1.5vw, 1.2rem);
  z-index: 50;
  font-family: var(--font-body);
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.lang-toggle:hover, .lang-toggle:focus-visible,
.lang-switcher .lang-toggle[aria-expanded="true"] {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(245, 166, 35, 0.08);
  outline: none;
}
/* SVG flags — uniform sizing, soft border so they read as flags on dark bg */
svg.lang-flag {
  display: inline-block;
  width: 1.5em;
  height: 1em;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.lang-caret {
  font-size: 0.75em;
  margin-left: 0.1rem;
  transition: transform 150ms ease;
}
.lang-toggle[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--bg-elev, #141414);
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: 6px;
  min-width: 11rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 18px rgba(245, 166, 35, 0.06) inset;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
/* The [hidden] attribute needs a class-level selector to override `display: flex` above. */
.lang-menu[hidden] { display: none; }
.lang-menu li { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.6rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 150ms ease, color 150ms ease;
}
.lang-option:hover, .lang-option:focus-visible {
  background: rgba(245, 166, 35, 0.12);
  color: var(--gold-bright);
  outline: none;
}
.lang-option .lang-name { font-weight: 600; }
.lang-sep {
  height: 1px;
  margin: 0.25rem 0.4rem;
  background: rgba(245, 166, 35, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .lang-caret { transition: none; }
}

/* =========================================================
   Print friendliness (cheap & no harm)
   ========================================================= */
@media print {
  .site-nav, .social, .skip-link, .lightbox { display: none; }
  body, .site-footer { background: #fff; color: #000; }
  .game-card img { box-shadow: none; }
}
