/*
================================================================================
SEVENGAMES STYLESHEET — ADVANCED DEVELOPER GUIDE & COMPLETE REFERENCE
================================================================================
This master stylesheet controls the layout, responsive behavior, typography,
color schemes, and visual treatments for the entire SevenGames platform.

TABLE OF CONTENTS:
 1. Global Variables, Resets & Typography (:root & *)
 2. Layout & Content Containers (.content-wrap)
 3. Header, Navigation & Top CTA Bar (.topbar)
 4. Homepage Hero Banner (.hero)
 5. Homepage Category Cards & Image Treatments (.category-card)
 6. Featured Game Panel (.featured)
 7. Benefits Strip & Newsletter Signup (.why, .join-banner)
 8. Game Library & Filtering System (.library-hero, .filters, .game-grid)
 9. Site Footer (.footer)
10. Responsive Media Queries (Tablets and Mobile Layouts)
11. Image Overrides & Fix Pack (The Cascade Engine)
================================================================================
*/


/* ============================================================================
   1. GLOBAL VARIABLES, RESETS & TYPOGRAPHY
   ============================================================================
   Advanced Editing Note:
   - `:root` declares custom CSS properties (variables) accessible globally.
   - Changing hex values here instantly recolors your entire site palette.
   - `--width` sets the absolute maximum reading and grid boundary for desktop.
   - `box-sizing: border-box` ensures padding and borders never expand element widths.
   ============================================================================ */

:root {
  --bg: #03060d;           /* Deep space background base color */
  --panel: #06101c;        /* Primary container and card background */
  --panel2: #0a1624;       /* Alternate secondary container fill */
  --white: #f5f8ff;        /* Primary high-contrast text color */
  --muted: #a4b3c9;        /* Secondary description and metadata text */
  --lime: #c9ff00;         /* Primary brand accent / active indicator */
  --cyan: #2de8ff;         /* Secondary neon highlight color */
  --purple: #bd40ff;       /* Tertiary ambient glow and tag highlight */
  --line: #12334a;         /* Subtle structural border and divider color */
  --width: 1280px;         /* Maximum site-wide container width */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px; /* Offset to prevent sticky header overlapping anchors */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

button, input, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent; /* Removes mobile tap flash on iOS */
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}


/* ============================================================================
   2. LAYOUT & CONTENT CONTAINERS
   ============================================================================
   Advanced Editing Note:
   - `min(var(--width), calc(100% - 64px))` automatically shrinks content
     with responsive side padding on smaller desktop and tablet screens.
   ============================================================================ */

.content-wrap {
  width: min(var(--width), calc(100% - 64px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 9px;
  color: #bceeff;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

h1, h2, h3, p {
  margin-top: 0;
}


/* ============================================================================
   3. HEADER, NAVIGATION & TOP CTA BAR
   ============================================================================
   Advanced Editing Note:
   - Uses `position: sticky` and `backdrop-filter: blur(15px)` for a modern glassmorphism
     effect that stays pinned at the top when scrolling.
   ============================================================================ */

.topbar {
  height: 51px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(4%, calc((100% - 1450px) / 2));
  border: 1px solid #17405b;
  border-radius: 0 0 10px 10px;
  background: #030710ed;
  box-shadow: 0 5px 22px #0008;
  backdrop-filter: blur(15px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -.5px;
  white-space: nowrap;
}

.logo-seven {
  color: var(--lime);
  font-size: 34px;
  line-height: .8;
  font-weight: 1000;
  font-style: italic;
  text-shadow: 0 0 15px #c9ff0040;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: #d5e0ee;
  font-size: 10px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--lime);
}

.main-nav a.active:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lime);
}

.top-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 7px;
  padding: 9px 16px;
  border-radius: 20px;
  color: #03060d;
  background: var(--lime);
  box-shadow: 0 0 20px #c9ff0055;
  font-size: 9px;
  font-weight: 950;
}

.menu-toggle {
  display: none; /* Only visible on mobile viewports */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 33px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 22px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .15px;
  cursor: pointer;
}

.btn-lime {
  color: #06100a;
  background: var(--lime);
  box-shadow: 0 0 20px #c9ff0050;
}

.btn-dark {
  color: var(--white);
  background: #020712cc;
  border-color: #20425c;
}

.btn:hover,
.top-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.play-circle {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #f5f8ff;
  color: #06101c;
  font-size: 8px;
}


/* ============================================================================
   4. HOMEPAGE HERO BANNER
   ============================================================================
   Advanced Editing Note:
   - Uses CSS `isolation: isolate` to establish a new stacking context so that
     background vignettes and artwork absolute layers render safely behind content.
   ============================================================================ */

.hero {
  position: relative;
  min-height: 291px;
  overflow: hidden;
  border-bottom: 1px solid #143d54;
  background: #030812;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: url("assets/hero-ai-world.png");
  background-position: center 38%;
  background-size: cover;
  opacity: .98;
}

.hero-vignette {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, #02050c 0%, #02050cf5 25%, #02050c99 46%, transparent 76%),
              linear-gradient(0deg, #03060d 0%, transparent 22%, #03060d20 100%);
}

.hero-copy {
  width: min(570px, 48%);
  padding: 34px 0 34px max(4%, calc((100% - 1450px) / 2));
}

.hero h1 {
  margin: 0;
  font-size: clamp(31px, 3vw, 93px);
  font-size: 28px;
  font-weight: 1000;
  line-height: .98;
  letter-spacing: -1.7px;
}

.hero h1 span,
.library-hero h1 span {
  color: var(--lime);
}

.intro {
  max-width: 390px;
  margin: 12px 0 15px;
  color: #e0e7f1;
  font-size: 11px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.mini-benefits {
  display: flex;
  gap: 19px;
  margin-top: 26px;
}

.mini-benefits > div {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
}

.mini-benefits b {
  color: var(--lime);
  font-size: 19px;
}

.mini-benefits small {
  display: block;
  color: #b4c1d3;
  font-size: 7px;
}

.hero-side-label {
  position: absolute;
  right: 4%;
  bottom: 25%;
  color: #fff;
  font-size: 14px;
  font-style: italic;
  line-height: 1.05;
  text-shadow: 0 0 15px var(--purple);
  transform: rotate(-7deg);
}

.hero-side-label strong {
  color: var(--lime);
}

.hero-index {
  position: absolute;
  right: 4%;
  bottom: 9px;
  left: 4%;
  display: flex;
  justify-content: space-between;
  color: #a2b5cc;
  font-size: 7px;
  letter-spacing: 1.3px;
}


/* ============================================================================
   5. HOMEPAGE CATEGORY CARDS & IMAGE TREATMENTS
   ============================================================================
   Advanced Editing Note:
   - `.category-grid` uses CSS Grid with `repeat(4, minmax(0, 1fr))` to scale
     perfectly across monitors while preventing content blowouts.
   ============================================================================ */

.categories {
  padding-top: 23px;
  padding-bottom: 26px;
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.section-top .eyebrow {
  margin-bottom: 3px;
}

.section-top h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -.5px;
}

.text-link {
  color: #e9f7d0;
  font-size: 9px;
  white-space: nowrap;
}

.text-link span {
  color: var(--lime);
  margin-left: 5px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  overflow: hidden;
  border: 1px solid var(--cat);
  border-radius: 6px;
  background: #050b15;
  transition: transform .2s, border-color .2s;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px #0008;
}

/* Category Variable Colors */
.category-action { --cat: #b43cff; }
.category-adventure { --cat: #14d7ff; }
.category-puzzle { --cat: #00edff; }
.category-classics { --cat: #ff8d00; }

.category-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #07101e;
}

.category-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.06);
}

.category-copy {
  padding: 8px 11px 10px;
}

.category-copy h3 {
  margin: 0;
  font-size: 13px;
}

.category-copy p {
  margin: 1px 0 6px;
  color: #c4cede;
  font-size: 9px;
}

.category-copy b {
  color: var(--lime);
  font-size: 8px;
}


/* ============================================================================
   6. FEATURED GAME PANEL
   ============================================================================ */

.featured {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
  align-items: center;
  padding: 11px;
  border: 1px solid #123047;
  border-radius: 8px;
  background: linear-gradient(115deg, #030915, #050d1a);
  margin-bottom: 19px;
}

.featured-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 143px;
  overflow: hidden;
  border: 1px solid #263a91;
  border-radius: 5px;
  background: radial-gradient(ellipse at 50% 50%, #1a47a8, #080b25 55%, #02050c);
}

.art-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 3px;
  background: #06101cbb;
  font-size: 7px;
  font-weight: 900;
}

.featured-copy .eyebrow {
  margin-bottom: 3px;
  font-size: 8px;
}

.featured-copy h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 5px;
  font-size: 24px;
  line-height: 1;
}

.pill {
  padding: 4px 6px;
  border: 1px solid #8c43cf;
  border-radius: 4px;
  background: #63269a55;
  color: #e5bfff;
  font-size: 7px;
}

.featured-copy > p:not(.eyebrow) {
  max-width: 440px;
  margin-bottom: 8px;
  color: #dce5f3;
  font-size: 10px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 9px 0 12px;
  color: #d8e6f3;
  font-size: 8px;
}

.feature-tags span:first-letter {
  color: var(--lime);
}


/* ============================================================================
   7. WHY SEVENGAMES + NEWSLETTER SIGNUP
   ============================================================================ */

.why {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 11px;
  padding: 11px 14px;
  border: 1px solid #102c40;
  border-radius: 7px;
  background: #040b15;
}

.why h2 {
  margin: 0;
  font-size: 12px;
}

.why .eyebrow {
  margin-bottom: 1px;
  font-size: 7px;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
}

.why-item > b {
  color: var(--lime);
  font-size: 19px;
}

.why-item small {
  display: block;
  color: #b4c3d5;
  font-size: 7px;
}

.join-banner {
  position: relative;
  overflow: hidden;
  min-height: 98px;
  background: radial-gradient(ellipse at 15% 80%, #164b91, transparent 40%),
              radial-gradient(ellipse at 85% 120%, #c3ff00, transparent 30%), #040a18;
  border-top: 1px solid #17384d;
  border-bottom: 1px solid #17384d;
}

.join-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, transparent 0 55px, #3cecff0b 56px 58px);
}

.join-content {
  position: relative;
  padding: 12px 20px;
  text-align: center;
}

.join-content .eyebrow {
  margin-bottom: 2px;
  font-size: 7px;
}

.join-content h2 {
  margin: 0;
  font-size: 16px;
}

.join-content > p:not(.eyebrow) {
  margin: 1px 0 8px;
  font-size: 8px;
  color: #d4dfef;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.subscribe-form input {
  width: min(260px, 55vw);
  padding: 8px 12px;
  border: 1px solid #21445e;
  border-radius: 20px;
  color: white;
  background: #030914cc;
  font-size: 8px;
}

.subscribe-form .btn {
  min-height: 28px;
}

.subscribe-message {
  display: block;
  min-height: 10px;
  color: var(--lime);
  font-size: 8px;
}


/* ============================================================================
   8. GAME LIBRARY PAGE, FILTERS & CARDS
   ============================================================================ */

.library-hero {
  position: relative;
  min-height: 135px;
  overflow: hidden;
  padding: 24px max(4%, calc((100% - 1450px) / 2));
  border-bottom: 1px solid #153a52;
  background: #030814;
  isolation: isolate;
}

.library-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 38%;
  background-image: url("assets/hero-ai-world.png");
  background-size: cover;
  background-position: center 38%;
  opacity: .7;
}

.library-hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #03060dfc 0%, #03060de8 40%, #03060d33 100%);
}

.library-hero-copy {
  max-width: 720px;
}

.library-hero .eyebrow {
  margin-bottom: 4px;
  font-size: 8px;
}

.library-hero h1 {
  margin: 0;
  font-size: clamp(21px, 2.3vw, 31px);
  line-height: 1.1;
  letter-spacing: -.5px;
}

.library-hero h1 span {
  color: var(--lime);
}

.library-hero-copy > p:last-child {
  max-width: 600px;
  margin: 6px 0 0;
  color: #e0e8f3;
  font-size: 10px;
}

.library-stamp {
  position: absolute;
  right: 4%;
  top: 33px;
  color: white;
  font-size: 11px;
  font-style: italic;
  font-weight: 800;
  line-height: 1.35;
  transform: rotate(-8deg);
  text-shadow: 0 0 15px var(--purple);
}

.library-stamp strong {
  color: var(--lime);
}

.library {
  padding-top: 16px;
  padding-bottom: 34px;
}

.filters {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid #1e5068;
  border-radius: 20px;
  background: #040b14;
}

.search-field > span {
  font-size: 20px;
  color: #b2c9de;
  line-height: 1;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  font-size: 9px;
}

.search-field input::placeholder {
  color: #8094ab;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-chips button {
  padding: 6px 10px;
  border: 1px solid #192b40;
  border-radius: 16px;
  color: #e2eaf5;
  background: #101c2b;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chips button:hover {
  border-color: var(--lime);
}

.filter-chips button.selected {
  color: #06100a;
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: 0 0 13px #c9ff0055;
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9aabc0;
  font-size: 8px;
  white-space: nowrap;
}

.sort-field select {
  max-width: 100px;
  padding: 6px;
  border: 1px solid #24394c;
  border-radius: 15px;
  color: #fff;
  background: #0b1522;
  font-size: 8px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 9px 0;
  color: #91a4ba;
  font-size: 9px;
}

.result-row button {
  border: 0;
  color: var(--lime);
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ffffff;
  border-radius: 5px;
  background: linear-gradient(180deg, #071321, #030911);
  transition: transform .2s, border-color .2s;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: #32dfff;
}

.game-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #07101e;
}

.game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game-id {
  position: absolute;
  top: 6px;
  left: 7px;
  z-index: 2;
  color: #d7e5f5;
  font-size: 6px;
  letter-spacing: .7px;
  background: rgba(3, 9, 20, 0.7);
  padding: 2px 4px;
  border-radius: 2px;
}

.game-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  padding: 3px 5px;
  border: 1px solid #c9ff0077;
  border-radius: 3px;
  color: var(--lime);
  background: #030914d9;
  font-size: 6px;
  font-weight: 900;
}

.game-info {
  padding: 7px 9px 9px;
}

.game-info h3 {
  overflow: hidden;
  margin: 0 0 3px;
  font-size: 22px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-meta {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}

.game-meta span {
  padding: 2px 5px;
  border-radius: 8px;
  color: #c5d3e3;
  background: #152235;
  font-size: 6px;
}

.game-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.game-actions .btn {
  min-height: 22px;
  padding: 0 10px;
  font-size: 7px;
}

.game-actions .details {
  color: var(--lime);
  font-size: 7px;
}

.empty-state {
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--line);
}

.empty-state h2 {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
}

.catalogue-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 15px 0 0;
  color: #8b9db3;
  font-size: 8px;
}

.catalogue-note code {
  color: var(--cyan);
}


/* ============================================================================
   9. SITE FOOTER
   ============================================================================ */

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 11px 4%;
  border-top: 1px solid #15364b;
  background: #02050b;
}

.footer .logo-seven {
  font-size: 29px;
}

.footer nav {
  display: flex;
  gap: 20px;
}

.footer nav a {
  color: #c6d2e1;
  font-size: 8px;
}

.footer nav a:hover {
  color: var(--lime);
}

.socials {
  text-align: right;
  color: #d7e3f1;
  font-size: 12px;
}

.footer > small {
  grid-column: 1 / -1;
  text-align: center;
  color: #6f8097;
  font-size: 7px;
}


/* ============================================================================
   10. RESPONSIVE MEDIA QUERIES (TABLETS & PHONES)
   ============================================================================ */

@media (min-width: 1400px) {
  .hero { min-height: 380px; }
  .hero-copy { padding-top: 48px; padding-bottom: 43px; }
  .category-image { height: 110px; }
  .game-art { height: 120px; }
}

@media (max-width: 900px) {
  .topbar { padding-inline: 3%; gap: 15px; }
  .main-nav { gap: 15px; }
  .content-wrap { width: 94%; }
  .hero-copy { width: 55%; padding-left: 3%; }
  .hero-side-label { display: none; }
  .filters { grid-template-columns: 190px 1fr; }
  .sort-field { grid-column: 2; justify-self: end; }
  .filter-chips { grid-column: 1 / -1; grid-row: 2; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why { flex-wrap: wrap; }
  .why > div:first-child { width: 100%; }
  .library-stamp { right: 3%; }
}

@media (max-width: 600px) {
  .topbar {
    height: 56px;
    padding-inline: 4%;
    gap: 12px;
  }
  .logo { font-size: 12px; }
  .logo-seven { font-size: 30px; }
  .menu-toggle {
    display: block;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 5px 9px;
    color: var(--lime);
    background: #07111e;
    font-size: 17px;
    cursor: pointer;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding: 18px 5%;
    background: #030710f7;
    border-bottom: 1px solid var(--lime);
  }
  .main-nav.open { display: flex; }
  .main-nav a.active:after { display: none; }
  .top-cta { padding: 8px 11px; font-size: 8px; }
  .hero { min-height: 480px; }
  .hero-image { background-position: 61% center; opacity: .7; }
  .hero-vignette {
    background: linear-gradient(90deg, #02050cf5, #02050c99 70%, #02050c55),
                linear-gradient(0deg, #03060d, transparent 40%);
  }
  .hero-copy { width: 100%; padding: 58px 5% 55px; }
  .hero h1 { font-size: clamp(34px, 10vw, 49px); }
  .intro { max-width: 350px; }
  .mini-benefits { gap: 14px; flex-wrap: wrap; margin-top: 24px; }
  .mini-benefits > div { min-width: 90px; }
  .hero-index { font-size: 6px; }
  .categories { padding-top: 24px; padding-bottom: 22px; }
  .section-top { align-items: flex-start; }
  .section-top h2 { font-size: 19px; }
  .section-top .text-link { font-size: 8px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .featured { grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
  .featured-art { min-height: 160px; }
  .featured-copy h2 { font-size: 22px; }
  .why { gap: 12px; }
  .why-item { width: 44%; }
  .join-content h2 { font-size: 14px; }
  .footer { grid-template-columns: 1fr auto; gap: 12px; }
  .footer nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 15px; }
  .socials { grid-column: 2; grid-row: 1; }
  .footer > small { grid-row: 3; }
  .library-hero { min-height: 180px; padding: 26px 4%; }
  .library-art { inset: 0; opacity: .55; background-position: 62% center; }
  .library-hero h1 { max-width: 390px; font-size: 27px; }
  .library-hero-copy > p:last-child { max-width: 390px; font-size: 9px; }
  .library-stamp { display: none; }
  .library { padding-top: 13px; }
  .filters { grid-template-columns: 1fr; gap: 9px; }
  .filter-chips { grid-column: auto; grid-row: auto; }
  .sort-field { grid-column: auto; justify-self: stretch; justify-content: space-between; }
  .sort-field select { max-width: 160px; flex: 1; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .game-info { padding: 7px; }
  .game-info h3 { font-size:20px; }
  .game-actions { align-items: stretch; flex-direction: column; gap: 5px; }
  .game-actions .btn { width: 100%; }
  .game-actions .details { display: none; }
  .footer nav { gap: 12px; }
}

@media (max-width: 360px) {
  .hero-buttons .btn { padding-inline: 12px; }
  .category-grid, .game-grid { grid-template-columns: 1fr; }
  .section-top { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}


/* ============================================================================
   11. FIX PACK & REAL IMAGE ENFORCEMENT
   ============================================================================
   Advanced Editing Note:
   - Placed at the bottom to harness CSS cascading priority rules.
   - Strips out old decorative graphics/placeholders and guarantees that
     real image assets fill thumbnail containers properly via `object-fit: cover`.
   ============================================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

img, video, canvas, svg {
  max-width: 100%;
}

/* Enforce Clean Real Images across Cards */
.category-image,
.game-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: none !important;
}

.category-image img,
.game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hide legacy fallback symbols or gradients */
.game-art::before,
.game-art::after,
.category-image::before,
.category-image::after,
.game-art .game-symbol,
.category-image span {
  display: none !important;
}

/* Mobile adjustments for image cards */
@media (max-width: 600px) {
  .category-grid,
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}











/* Compact SevenGames homepage ad */
.homepage-ad {
  width: calc(100% - 24px);
  max-width: 728px;
  min-height: 0;
  margin: 16px auto;
  padding: 4px 0;
  text-align: center;
  overflow: hidden;
}

.homepage-ad .ad-label {
  margin: 0 0 5px;
  color: #8993a8;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.homepage-ad ins.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 50px;
}

@media (max-width: 600px) {
  .homepage-ad {
    width: calc(100% - 32px);
    max-width: 360px;
    margin: 12px auto;
  }
}
