/* ==========================================================================
   REBORN — GAMES CATALOGUE

   The catalogue is the one SEO landing that is mostly pictures: every arena
   map, every mode and every mini-game gets a real screenshot instead of a row
   in a table. seo-pages.css has no vocabulary for that, and pulling in
   public-experience.css to borrow the homepage's `.mk-game` cards would cost
   28KB of pricing, store and carousel rules on a page people land on cold from
   search. So the gallery components live here and are drawn from the same
   tokens as everything else in reborn: 2px ink borders, hard shadows and the
   four accents cycling so a grid reads as one set.

   Load order: /seo-pages.css, /reborn-core.css, /reborn-seo.css, then this.
   Font Awesome is not loaded on these pages — no icon fonts below.
   ========================================================================== */

/* ===== 1. Section jump list ===== */
.frontline-reborn .gc-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.frontline-reborn .gc-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 17px;
  border: 1.5px solid var(--reset-line-strong);
  border-radius: 999px;
  color: var(--reset-cream);
  background: var(--reset-panel);
  font-family: var(--heading-font-family);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.frontline-reborn .gc-jump a:hover {
  border-color: var(--reset-cream);
  color: var(--reset-tile-ink);
  background: var(--reset-sun);
  box-shadow: 2px 2px 0 var(--reset-shadow);
  transform: translate(-1px, -1px);
}

/* ===== 2. Grouped block inside a section =====
   Galleries, card grids and notes all carry `margin: 0`, so a group that
   follows one needs the air itself — otherwise its heading lands flush against
   the card row above it. */
.frontline-reborn .gc-group + .gc-group,
.frontline-reborn :is(.gc-cards, .gc-gallery, .gc-note, .gc-feature) + .gc-group { margin-top: 48px; }
.frontline-reborn .gc-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 22px;
}
.frontline-reborn .gc-group__head h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.frontline-reborn .gc-group__note {
  max-width: 46ch;
  margin: 0;
  color: var(--reset-muted);
  font-size: .92rem;
}
.frontline-reborn .gc-count {
  flex-shrink: 0;
  padding: 5px 13px;
  border: 1.5px solid var(--reset-line-strong);
  border-radius: 999px;
  color: var(--reset-ink-sun);
  font-family: var(--heading-font-family);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ===== 3. Screenshot gallery =====
   One recipe for maps and locations: the picture is the content, the name
   rides on it in the same pill the homepage carousel uses. */
.frontline-reborn .gc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.frontline-reborn .gc-gallery--wide { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.frontline-reborn .gc-shot {
  --gc-accent: var(--reset-sun);
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 2px solid var(--reset-cream);
  border-radius: 16px;
  background: var(--reset-panel);
  box-shadow: 4px 4px 0 var(--reset-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.frontline-reborn .gc-shot:hover {
  box-shadow: 7px 7px 0 var(--reset-shadow);
  transform: translate(-3px, -3px);
}
.frontline-reborn .gc-gallery > *:nth-child(4n+2) { --gc-accent: var(--reset-rose); }
.frontline-reborn .gc-gallery > *:nth-child(4n+3) { --gc-accent: var(--reset-sky); }
.frontline-reborn .gc-gallery > *:nth-child(4n+4) { --gc-accent: var(--reset-coral); }

.frontline-reborn .gc-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--reset-panel);
  filter: saturate(.94) contrast(1.03);
}
/* The scrim only has to carry the pill, so it starts below the middle. */
.frontline-reborn .gc-shot::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 46% 0 0;
  background: linear-gradient(to top, rgba(12, 13, 17, .74), rgba(12, 13, 17, 0));
  pointer-events: none;
}
.frontline-reborn .gc-shot figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 12px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.frontline-reborn .gc-shot__name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 15px;
  border: 1.5px solid var(--reset-cream);
  border-radius: 999px;
  background: var(--reset-control-surface);
  color: var(--reset-tile-ink);
  box-shadow: 2px 2px 0 var(--reset-shadow);
  font-family: var(--heading-font-family);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.frontline-reborn .gc-shot__name::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gc-accent);
}
/* Sits on the artwork, so it keeps a dark plate like .media-card__label. */
.frontline-reborn .gc-shot__tag {
  padding: 6px 12px;
  border: 1px solid rgba(247, 242, 232, .3);
  border-radius: 999px;
  background: rgba(20, 17, 12, .82);
  color: var(--reset-on-image);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  line-height: 1.3;
}

/* ===== 4. Mode and mini-game cards ===== */
.frontline-reborn .gc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.frontline-reborn .gc-card {
  --gc-accent: var(--reset-sun);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--reset-cream);
  border-radius: 18px;
  background: var(--reset-panel-raised);
  box-shadow: 4px 4px 0 var(--reset-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.frontline-reborn .gc-card:hover {
  box-shadow: 7px 7px 0 var(--reset-shadow);
  transform: translate(-3px, -3px);
}
.frontline-reborn .gc-cards > *:nth-child(4n+2) { --gc-accent: var(--reset-rose); }
.frontline-reborn .gc-cards > *:nth-child(4n+3) { --gc-accent: var(--reset-sky); }
.frontline-reborn .gc-cards > *:nth-child(4n+4) { --gc-accent: var(--reset-coral); }

.frontline-reborn .gc-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 2px solid var(--reset-cream);
  background: var(--reset-panel);
  filter: saturate(.94) contrast(1.03);
}
/* Poster-shaped key art: hold the top of the frame so heads are not cropped. */
.frontline-reborn .gc-card--poster img { object-position: center 22%; }

.frontline-reborn .gc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 22px;
}
/* Grid, not flex: a long name wraps inside its own column instead of pushing
   the launcher code onto a line of its own on one card in a row of four. */
.frontline-reborn .gc-card__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.frontline-reborn .gc-card h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.frontline-reborn .gc-card h3::before {
  content: "";
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--reset-cream);
  border-radius: 5px;
  background: var(--gc-accent);
}
.frontline-reborn .gc-card__code {
  flex-shrink: 0;
  padding: 4px 11px;
  border: 1.5px solid var(--reset-line-strong);
  border-radius: 999px;
  color: var(--reset-muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .69rem;
  line-height: 1.5;
}
.frontline-reborn .gc-card p {
  margin: 0;
  color: var(--reset-muted);
  font-size: .93rem;
  line-height: 1.55;
}

/* Fact pills pinned to the bottom so cards of unequal copy still line up. */
.frontline-reborn .gc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}
.frontline-reborn .gc-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1.5px solid var(--reset-line-strong);
  border-radius: 999px;
  color: var(--reset-cream);
  background: var(--reset-panel);
  font-size: .79rem;
  line-height: 1.35;
}
.frontline-reborn .gc-meta b {
  color: var(--reset-muted);
  font-weight: 600;
}
.frontline-reborn .gc-meta .status { padding: 0; border: 0; background: none; }

/* ===== 5. Wide feature block (one screenshot carrying a whole section) ===== */
.frontline-reborn .gc-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  overflow: hidden;
  border: 2px solid var(--reset-cream);
  border-radius: 18px;
  background: var(--reset-panel-raised);
  box-shadow: 5px 5px 0 var(--reset-shadow);
}
.frontline-reborn .gc-feature > figure {
  position: relative;
  margin: 0;
  min-height: 0;
}
.frontline-reborn .gc-feature img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  filter: saturate(.94) contrast(1.03);
}
.frontline-reborn .gc-feature__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 32px;
  border-left: 2px solid var(--reset-cream);
}
.frontline-reborn .gc-feature__copy h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.frontline-reborn .gc-feature__copy p {
  margin: 0;
  color: var(--reset-muted);
  font-size: .96rem;
}

/* ===== 6. Notes under a gallery ===== */
.frontline-reborn .gc-note {
  max-width: 78ch;
  margin: 26px 0 0;
  color: var(--reset-muted);
  font-size: .92rem;
}

/* ===== 7. Catalogue table =====
   Four columns here rather than the three reborn-seo.css sizes #catalog-status
   for, so the launcher name can sit next to the Russian one. */
.frontline-reborn #catalog-status th:nth-child(1) { width: 28%; }
.frontline-reborn #catalog-status th:nth-child(2) { width: 26%; }
.frontline-reborn #catalog-status th:nth-child(3) { width: 17%; }
.frontline-reborn #catalog-status th:nth-child(4) { width: 29%; }
.frontline-reborn #catalog-status td code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .84em;
  color: var(--reset-muted);
  overflow-wrap: anywhere;
}

/* ===== 8. Responsive ===== */
@media (max-width: 900px) {
  .frontline-reborn .gc-feature { grid-template-columns: 1fr; }
  .frontline-reborn .gc-feature__copy {
    border-left: 0;
    border-top: 2px solid var(--reset-cream);
    padding: 24px 22px;
  }
  .frontline-reborn .gc-feature img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) {
  .frontline-reborn .gc-gallery,
  .frontline-reborn .gc-gallery--wide,
  .frontline-reborn .gc-cards { grid-template-columns: 1fr; gap: 18px; }
  .frontline-reborn .gc-card__body { padding: 18px 18px 20px; }
  .frontline-reborn .gc-group__head { margin-bottom: 18px; }
  .frontline-reborn .gc-group + .gc-group,
  .frontline-reborn :is(.gc-cards, .gc-gallery, .gc-note, .gc-feature) + .gc-group { margin-top: 36px; }
  .frontline-reborn .gc-shot figcaption { inset: auto 10px 10px; }
}
