/* style.css: shared styles for gamerev.games (main page + games pages) */

:root {
  --bg: #0f1117;
  --bg-alt: #12151d;
  --panel: #181b24;
  --border: #2a2f3d;
  --text: #e6e8ee;
  --muted: #8b92a5;
  --accent: #e0334f;
  --accent-hover: #ff4d68;
  --radius: 12px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; text-decoration: none; letter-spacing: 0.2px; }
.brand span { color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color .15s; }
.nav ul a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(224, 51, 79, 0.18), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  color: var(--accent-hover);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.1; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { max-width: 600px; color: var(--muted); font-size: 1.15rem; margin: 0 0 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; border: 1px solid var(--border);
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost:hover { border-color: var(--accent); }

.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero-text { flex: 1; min-width: 0; }
.hero-photo {
  width: 260px; height: 260px; flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 8px rgba(224, 51, 79, 0.15), 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 38px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 8px; }
.section-head h2::after {
  content: ""; display: block; width: 48px; height: 3px;
  background: var(--accent); border-radius: 2px; margin-top: 12px;
}
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }

/* ---------- Project cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.thumb {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(224, 51, 79, 0.25), rgba(60, 70, 110, 0.35)),
    repeating-linear-gradient(45deg, #1b1f2b 0 14px, #171a24 14px 28px);
  color: var(--muted);
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.tags li {
  font-size: 0.75rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px;
}
.card p { color: var(--muted); margin: 0 0 16px; font-size: 0.95rem; flex: 1; }
.links { display: flex; gap: 14px; font-size: 0.9rem; font-weight: 600; }
.links a { color: var(--accent-hover); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about p { color: var(--muted); margin: 0 0 16px; }
.about p strong { color: var(--text); }
.facts {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.facts h3 { margin: 0 0 14px; font-size: 1rem; }
.facts ul { list-style: none; margin: 0 0 22px; padding: 0; }
.facts li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--muted); }
.facts li:last-child { border-bottom: 0; }
.facts li b { color: var(--text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-size: 0.85rem; padding: 4px 12px; border-radius: 999px;
  background: rgba(224, 51, 79, 0.12); border: 1px solid rgba(224, 51, 79, 0.35);
  color: var(--text);
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .section-head h2::after { margin-left: auto; margin-right: auto; }
.contact .section-head p { margin: 0 auto; }
.contact .btns { justify-content: center; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.socials a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.socials a:hover { color: var(--accent-hover); text-decoration: underline; }

footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); font-size: 0.85rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 800px) {
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 28px; }
  .hero-photo { width: 160px; height: 160px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  section { padding: 60px 0; }
  .nav ul { gap: 16px; }
  .brand { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =====================================================================
   PROJECT PAGE STYLES
   Used by the individual project pages (/projects/<name>/index.html).
   If you ever need to add these to an existing style.css by hand,
   copy everything from this banner to the end of the file.
   ===================================================================== */

/* ---------- Project header ---------- */
.proj-hero {
  padding: 48px 0 40px;
  background:
    radial-gradient(900px 360px at 85% -20%, rgba(224, 51, 79, 0.16), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.back-link {
  display: inline-block; margin-bottom: 22px;
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  transition: color .15s;
}
.back-link:hover { color: var(--accent-hover); }
.proj-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; }
.proj-hero .tagline { color: var(--muted); font-size: 1.15rem; max-width: 680px; margin: 0 0 20px; }
.proj-hero .tags { margin-bottom: 24px; }
.proj-hero .tags li { font-size: 0.8rem; }

/* ---------- At-a-glance panels ---------- */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0 8px; }
.glance .facts ul:last-child { margin-bottom: 0; }

/* ---------- Content sections ---------- */
section.proj-section { padding: 44px 0; border-top: 1px solid var(--border); }
section.proj-section:first-of-type { border-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 0 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { max-width: 760px; color: var(--muted); margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-hover); }
.prose code {
  background: #0b0d12; border: 1px solid var(--border); border-radius: 6px;
  padding: 1px 6px; font-size: 0.88em; color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.prose pre {
  max-width: 760px; margin: 0 0 16px; padding: 16px;
  background: #0b0d12; border: 1px solid var(--border); border-radius: 10px;
  overflow-x: auto; font-size: 0.85rem; line-height: 1.5;
}
.prose pre code { background: none; border: 0; padding: 0; }

/* ---------- Media: screenshots, GIFs, video ---------- */
figure.media { margin: 26px 0; }
figure.media img,
figure.media video {
  width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--panel);
}
figure.media img { cursor: zoom-in; }
figure.media figcaption { margin-top: 8px; color: var(--muted); font-size: 0.85rem; text-align: center; }
.video-wrap {
  aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; background: #000;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.media-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 26px 0; }
.media-row figure.media { margin: 0; }
.hero-media { margin: 36px 0 0; }

/* ---------- Accordions (click-to-expand sections) ---------- */
.accordion { display: grid; gap: 10px; margin: 24px 0; }
.accordion details {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
}
.accordion details[open] { border-color: rgba(224, 51, 79, 0.55); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; flex-shrink: 0;
  color: var(--accent-hover); font-size: 1.5rem; line-height: 1; font-weight: 400;
}
.accordion details[open] summary::after { content: "\2212"; }
.accordion summary:hover { background: rgba(255, 255, 255, 0.03); }
.acc-body { padding: 4px 20px 20px; }
.acc-body > :last-child { margin-bottom: 0; }

/* ---------- Image lightbox (click a screenshot to enlarge) ---------- */
dialog.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 96vw; max-height: 96vh; overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(5, 6, 10, 0.9); }
dialog.lightbox img {
  display: block; max-width: 96vw; max-height: 88vh;
  border-radius: 8px; cursor: zoom-out;
}
dialog.lightbox p { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ---------- Previous / next project ---------- */
.proj-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 44px 0 8px; }

/* ---------- Project page responsive ---------- */
@media (max-width: 900px) {
  .glance { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .media-row { grid-template-columns: 1fr; }
  .proj-hero { padding: 32px 0 30px; }
  section.proj-section { padding: 34px 0; }
}

/* ---------- SLIDESHOW ---------- */
.slideshow { position: relative; margin: 1.5rem 0; }

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}
.slides::-webkit-scrollbar { display: none; }

.slides figure.media {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  border: 0;
}
.slides figure.media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
}
.slides figure.media figcaption { padding: .6rem 1rem; }

.slide-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(15, 17, 23, .75);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}
.slide-btn:hover { background: var(--accent); }
.slide-btn.prev { left: .6rem; }
.slide-btn.next { right: .6rem; }

.slide-count {
  position: absolute;
  top: .6rem; right: .6rem;
  padding: .15rem .6rem;
  border-radius: 999px;
  background: rgba(15, 17, 23, .75);
  color: var(--text);
  font-size: .85rem;
}

/* ---------- Header tweaks ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 800; font-size: 0.95rem;
}
.brand img { width: 30px; height: 30px; object-fit: contain; }
.nav ul a { font-weight: 600; }
.nav ul a[aria-current="page"] { color: var(--text); }

/* ---------- Hero (full-width key art) ---------- */
.s-hero {
  padding: 0;
  min-height: clamp(460px, 78vh, 760px);
  display: flex; align-items: flex-end;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(15, 17, 23, 0.7) 0%, rgba(15, 17, 23, 0.25) 55%, rgba(15, 17, 23, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15, 17, 23, 0) 20%),
    url("/images/banner-animated.gif");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.s-hero-inner { width: 100%; padding-top: 120px; padding-bottom: 72px; }
.s-hero h1 {
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1.02; font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em;
  max-width: 14ch; margin: 0 0 18px;
}
.s-hero h1 em { font-style: normal; color: var(--accent); }
.s-lead { max-width: 520px; color: #c9ceda; font-size: 1.15rem; margin: 0 0 28px; }
.s-hero .btn.ghost { background: rgba(15, 17, 23, 0.55); border-color: rgba(255, 255, 255, 0.28); }
.s-hero .btn.ghost:hover { border-color: var(--accent); }

/* ---------- Section titles and copy ---------- */
.s-title {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 800; line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.01em;
  margin: 0 0 28px;
}
.s-title em { font-style: normal; color: var(--accent); }
.s-copy { max-width: 720px; color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- News cards DONT REMOVE THIS IS NEEDED ---------- */
.news-body { padding: 18px 22px 22px; }
.news-body time { color: var(--accent-hover); font-weight: 700; font-size: 0.9rem; }
.news-body p { margin: 6px 0 12px; }
.news-body a.more { color: var(--accent-hover); font-weight: 600; text-decoration: none; }
.news-body a.more:hover { text-decoration: underline; }

/* ---------- Game cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card, .news-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.game-card:hover, .news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.game-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0d12; }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game-card:hover .game-media img, .news-card:hover .game-media img { transform: scale(1.05); }
.status {
  position: absolute; top: 12px; right: 12px;
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(15, 17, 23, 0.8); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.status.live { background: var(--accent); border-color: var(--accent); color: #fff; }
.game-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.game-body h3 { margin: 0 0 8px; font-size: 1.3rem; }
.game-body p { flex: 1; margin: 0 0 20px; color: var(--muted); font-size: 0.98rem; }
.game-body .btn { padding: 10px 18px; font-size: 0.92rem; }

/* ---------- Call to action band ---------- */
.s-cta {
  text-align: center;
  background: radial-gradient(700px 260px at 50% 0%, rgba(224, 51, 79, 0.16), transparent 70%), var(--bg-alt);
  border-top: 1px solid var(--border);
}
.s-cta .s-copy { margin: 0 auto 26px; }
.s-cta .btns { justify-content: center; }

/* ---------- Footer ---------- */
.s-social { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin: 0 0 14px; padding: 0; }
.s-social a { color: var(--muted); text-decoration: none; font-weight: 600; }
.s-social a:hover { color: var(--accent-hover); }
footer p { margin: 0; }

/* ---------- Studio site responsive ---------- */
@media (max-width: 900px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .game-grid, .news-grid { grid-template-columns: 1fr; }
  .s-hero-inner { padding-top: 80px; padding-bottom: 48px; }
  /* Put the nav links on their own row under the logo */
  .nav .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 4px; }
  .nav nav { width: 100%; }
  .nav ul { gap: 14px; flex-wrap: wrap; }
  .nav ul a { font-size: 0.88rem; }
}

/* =====================================================================
   INNER PAGE STYLES (Games page, and reusable for Studio, Media, Jobs, Contact)
   Paste this at the very END of style.css in the gamerevgames-main repo,
   below the studio styles you added earlier.
   ===================================================================== */

/* ---------- Page header / banner (image, GIF-style video, or plain) ----------
   EVERY page uses the same recipe: a big picture behind the top of the page, a dark
   left-to-right tint so the text is readable, and a fade into the page color at the
   bottom so it never looks cut off.

   A) Header only (e.g. Games page): the picture sits behind just the title strip.
        <div class="page-head">
          <img class="head-bg" src="/images/games-banner.jpg" alt="">      <- or a <video>, see below
          <div class="wrap"> <h1>...</h1> <p class="s-copy">...</p> </div>
        </div>

   B) Header + first section (e.g. Studio page): wrap both in .page-banner so one picture
      runs behind them.
        <div class="page-banner">
          <img class="head-bg" src="/images/studio-banner.jpg" alt="">
          <div class="page-head"> ... </div>
          <section class="s-section"> ... </section>
        </div>

   Looping GIF-style clip instead of a still image: replace the <img> with
        <video class="head-bg" autoplay loop muted playsinline preload="metadata"
               poster="/images/PAGE-banner-poster.jpg" aria-hidden="true">
          <source src="/images/PAGE-banner.mp4" type="video/mp4">
        </video>
   Leave the picture out entirely and you get a plain dark header with a red glow.

   To show more of the picture, lower the first two numbers (0.85 / 0.45) in the tint.   */
.page-head, .page-banner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 340px at 85% -30%, rgba(224, 51, 79, 0.18), transparent 60%),
    var(--bg);
}
.page-head { padding: 110px 0 90px; }
.head-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0; pointer-events: none;
}
.page-head::after, .page-banner::after {   /* the dark tint + bottom fade */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 17, 23, 0.85) 0%, rgba(15, 17, 23, 0.45) 55%, rgba(15, 17, 23, 0.1) 100%),
    linear-gradient(0deg, var(--bg) 0, var(--bg) 2px, rgba(15, 17, 23, 0) 65%);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.01em;
  margin: 0 0 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head .s-copy { color: #c9ceda; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
/* pull the first section up so the fade flows straight into it */
.page-head + .s-section { padding-top: 24px; }

/* Banner wrapper: the header and first section share ONE picture */
.page-banner > .page-head, .page-banner > .s-section { position: relative; z-index: 2; background: none; }
.page-banner > .page-head { overflow: visible; }
.page-banner > .page-head::after { display: none; }
.page-banner > .s-section { padding-bottom: 120px; }
.page-banner .s-title, .page-banner .s-copy { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.page-banner .s-copy { color: #c9ceda; }

/* Taller header banner (Games page) */
.page-head.tall { padding: 200px 0 150px; }
@media (max-width: 700px) {
  .page-head.tall { padding: 130px 0 100px; }
}

/* people who ask their device to reduce motion get the still poster instead of the video */
@media (prefers-reduced-motion: reduce) { video.head-bg { display: none; } }

/* ---------- Grouped game lists ---------- */
.game-group + .game-group { margin-top: 56px; }
.group-title {
  font-size: 1.15rem; font-weight: 700;
  margin: 0 0 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.game-body .tags { margin: 0 0 12px; }

@media (max-width: 700px) {
  .page-head { padding: 72px 0 60px; }
  .page-banner > .s-section { padding-bottom: 80px; }
}

/* ---------- STUDIO PAGE: feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  padding: 32px 28px 30px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.feature-icon {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border-radius: 18px;
  background: rgba(224, 51, 79, 0.12);
  border: 1px solid rgba(224, 51, 79, 0.35);
}
.feature-icon img { width: 40px; height: 40px; object-fit: contain; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: 68px 1fr; column-gap: 20px; align-items: start; padding: 24px; }
  .feature-icon { grid-row: 1 / span 2; margin: 0; }
}

/* ---------- Image band: a normal section with a picture behind it ---------- */
.image-band { position: relative; overflow: hidden; padding: 120px 0; margin: -1px 0; z-index: 1; }
.image-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 17, 23, 0.85) 0%, rgba(15, 17, 23, 0.45) 55%, rgba(15, 17, 23, 0.1) 100%),
    linear-gradient(0deg, var(--bg-alt) 0, rgba(18, 21, 29, 0) 35%),
    linear-gradient(180deg, var(--bg-alt) 0, rgba(18, 21, 29, 0) 35%);
}
.image-band > .wrap { position: relative; z-index: 2; }
.image-band .s-title, .image-band .s-copy { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.image-band .s-copy { color: #c9ceda; }
@media (max-width: 700px) { .image-band { padding: 80px 0; } }

/* ---------- JOBS PAGE ---------- */
.notice {
  max-width: 860px; padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 16px;
}
.notice h2 { margin: 0 0 10px; font-size: 1.25rem; }
.notice p { margin: 0; color: #c9ceda; }
.notice p + p { margin-top: 10px; }
.notice strong { color: var(--text); }

.feature-icon b { color: var(--accent-hover); font-size: 1.5rem; font-weight: 800; }

.role-chips { margin-top: 24px; }
.role-chips li { font-size: 0.95rem; padding: 6px 16px; }
.role-note { margin-top: 22px; }
.form-intro { margin-bottom: 28px; }

.apply-form {
  max-width: 760px; padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border); border-radius: 16px;
  color-scheme: dark;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--accent-hover); }
.hint { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: #0b0d12; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5d6478; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 51, 79, 0.2);
}
.check {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 6px 0 22px; padding: 14px 16px;
  background: rgba(224, 51, 79, 0.08); border: 1px solid rgba(224, 51, 79, 0.3); border-radius: 12px;
}
.check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.check label { font-size: 0.95rem; }
.hp { display: none; }
.apply-form button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.apply-form button.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 10px; }
.form-status.ok { display: block; background: rgba(60, 180, 110, 0.12); border: 1px solid rgba(60, 180, 110, 0.4); }
.form-status.error { display: block; background: rgba(224, 51, 79, 0.12); border: 1px solid rgba(224, 51, 79, 0.45); }
.form-note { margin: 18px 0 0; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .apply-form { padding: 22px; }
}

/* ---------- CONTACT PAGE ---------- */
/* Colored words a little larger than the rest, like the old site */
.contact-page .page-head h1 em,
.contact-page .s-title em { font-size: 1.15em; }

/* Four link cards, two per row (email, YouTube, LinkedIn, portfolio) */
.contact-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-grid .contact-card { display: block; padding: 28px 24px; text-decoration: none; color: inherit; }
.contact-grid .feature-icon { margin: 0 0 18px; }
.contact-grid .feature-icon svg { width: 30px; height: 30px; }
.contact-card p { overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
}


/* ---------- NEWS CAROUSEL FOR HOME PAGE ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* room so the card hover-lift and shadow aren't clipped */
  padding: 8px 0 24px; margin: -8px 0 -24px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .news-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }

.carousel-btn {
  position: absolute; top: 96px; z-index: 3;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(15, 17, 23, 0.8); color: var(--text);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .15s, opacity .15s;
}
.carousel-btn:hover { background: var(--accent); }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel.no-scroll .carousel-btn { display: none; }

@media (max-width: 900px) {
  .carousel-track > .news-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .carousel-track > .news-card { flex-basis: 85%; }
  .carousel-btn { top: 78px; width: 40px; height: 40px; }
}


/* =====================================================================
   GAME PAGE (released games)
   ===================================================================== */

/* ---------- Header ---------- */
.game-hero { padding: 120px 0 100px; }
.crumb {
  display: inline-block; margin-bottom: 18px;
  color: #c9ceda; text-decoration: none; font-size: 0.9rem; font-weight: 600;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  transition: color .15s;
}
.crumb:hover { color: var(--accent-hover); }
.game-hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }

.game-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 44px; margin: 26px 0 30px; padding: 0; }
.game-meta > li { display: flex; flex-direction: column; gap: 6px; }
.meta-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-hover);
}
.meta-value { font-weight: 600; color: var(--text); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.game-meta .tags { margin: 0; }
.game-meta .tags li {
  font-size: 0.85rem; padding: 3px 12px; color: var(--text);
  background: rgba(15, 17, 23, 0.55); border-color: rgba(255, 255, 255, 0.28);
}
.btn.big { padding: 15px 32px; font-size: 1.05rem; }
.s-cta .btn.big { padding: 16px 36px; font-size: 1.1rem; }

/* ---------- Screenshot carousel ---------- */
.gallery { position: relative; }
.gallery-track {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  border: 1px solid var(--border); border-radius: 16px; background: #0b0d12;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure.media { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.gallery-track figure.media img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 0; border-radius: 0;
}
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(15, 17, 23, 0.75); color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.gallery-btn:hover { background: var(--accent); }
.gallery-btn:disabled { opacity: 0.25; cursor: default; background: rgba(15, 17, 23, 0.75); }
.gallery-btn.prev { left: 14px; }
.gallery-btn.next { right: 14px; }
.gallery-count {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  padding: 3px 12px; border-radius: 999px;
  background: rgba(15, 17, 23, 0.75); color: var(--text); font-size: 0.85rem;
}
.gallery.single .gallery-btn, .gallery.single .gallery-count { display: none; }

/* ---------- Game info (text over the picture) ---------- */
.info-copy { max-width: 760px; }
.info-copy .s-copy + .s-copy { margin-top: 18px; }
.info-tagline {
  margin: 30px 0 0;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem); font-weight: 800; line-height: 1.2;
  text-transform: uppercase; color: var(--accent);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

@media (max-width: 700px) {
  .game-hero { padding: 80px 0 64px; }
  .game-meta { gap: 16px 28px; }
  .gallery-btn { width: 40px; height: 40px; }
}

/* =====================================================================
   GAME PAGE (in development): "we'll keep you updated" section
   ===================================================================== */
.stay-tuned {
  text-align: center;
  padding: 130px 0 140px;
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(224, 51, 79, 0.2), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
}
.stay-tuned h2 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 7vw, 4.2rem); font-weight: 800; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.stay-tuned h2 em { font-style: normal; color: var(--accent); }
.stay-sub {
  margin: 0 0 22px;
  font-size: clamp(1.2rem, 3.2vw, 1.8rem); font-weight: 700;
  text-transform: uppercase; color: var(--muted);
}
.stay-loop {
  margin: 0 0 34px;
  font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 800;
  text-transform: uppercase; color: var(--accent-hover);
}
.stay-tuned .btns { justify-content: center; }

@media (max-width: 700px) {
  .stay-tuned { padding: 84px 0 96px; }
}

/* =====================================================================
   MEDIA PAGE
   ===================================================================== */

/* Colored words a little larger, like the Contact page */
.media-page .page-head h1 em,
.media-page .s-title em { font-size: 1.15em; }

.creators-note { margin: 34px 0 0; }

/* ---------- Press kit cards ---------- */
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.press-card {
  display: block; overflow: hidden; color: inherit; text-decoration: none;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.press-card:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.press-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0b0d12; }
.press-body { padding: 22px 24px 24px; }
.press-body h3 { margin: 0 0 6px; font-size: 1.3rem; }
.press-body p { margin: 0 0 14px; color: var(--muted); }
.press-link { color: var(--accent); font-weight: 700; }
.press-card:hover .press-link { color: var(--accent-hover); }

/* ---------- Trailers ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-grid .video-wrap { width: 100%; }
.video-cap { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
/* a lone trailer is centered instead of stuck on the left half */
.video-grid:has(.video-item:only-child) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.video-wrap.latest { margin-top: 24px; }

/* ---------- Screenshot grid ---------- */
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.shot-grid figure.media { margin: 0; }
.shot-grid figure.media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (max-width: 900px) {
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .press-grid, .video-grid { grid-template-columns: 1fr; }
  .video-grid:has(.video-item:only-child) { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .shot-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   404 PAGE
   Paste at the very END of style.css in the gamerevgames-main repo.
   ===================================================================== */
.err-page {
  text-align: center;
  padding: 110px 0 130px;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(224, 51, 79, 0.2), transparent 70%),
    var(--bg);
}
.err-code {
  margin: 0; font-weight: 800; line-height: 1;
  font-size: clamp(6rem, 24vw, 13rem);
  letter-spacing: -0.04em;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(224, 51, 79, 0.35);
}
.err-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800; text-transform: uppercase;
  margin: 8px 0 16px;
}
.err-title em { font-style: normal; color: var(--accent); }
.err-page .s-copy { margin: 0 auto 28px; }
.err-page .btns { justify-content: center; }
@media (max-width: 700px) { .err-page { padding: 72px 0 90px; } }
