/* ===== Made with Xorin page =====
   Full-width billboard of featured games (rotates) + horizontal rows.
   Uses the site's own buttons, tags, gold stats and type.
   Loaded after home.css and made-with-xorin.css, only on made-with-xorin/index.html. */

.nf-page {
  --nf-bg: #090807;
  --nf-edge: max(24px, 4vw);
  background: var(--nf-bg);
}
.nf-page::before {
  background: var(--nf-bg);
}
.nf {
  position: relative;
  display: block;
  padding-bottom: 24px;
  background: var(--nf-bg);
}

/* ---------- Billboard ---------- */
.nf-bb {
  position: relative;
  height: clamp(600px, 94vh, 920px);
  margin-top: -57px; /* slide under the sticky nav */
  overflow: hidden;
  background: var(--nf-bg);
}
/* hide the sub-pixel seam where the scaled art meets the page */
.nf-bb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 8px;
  z-index: 1;
  background: var(--nf-bg);
  pointer-events: none;
}
.nf-bb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.nf-bb-slide[hidden] {
  display: block; /* stays in layout so it can fade */
  visibility: hidden;
}
.nf-bb-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.nf-bb-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  transform: scale(1.04);
  transition: transform 9s linear;
}
.nf-bb-slide.is-active .nf-bb-art {
  transform: scale(1);
}
/* warm, site-coloured shading (left for the copy, bottom into the rows) */
.nf-bb-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 0% 70%, rgba(9, 8, 7, 0.92) 0%, rgba(9, 8, 7, 0.6) 40%, rgba(9, 8, 7, 0) 75%),
    linear-gradient(0deg, #090807 0%, #090807 6%, rgba(9, 8, 7, 0.8) 18%, rgba(9, 8, 7, 0.3) 32%, rgba(9, 8, 7, 0) 46%),
    linear-gradient(180deg, rgba(9, 8, 7, 0.6) 0%, rgba(9, 8, 7, 0) 16%);
}
.nf-bb-content {
  position: absolute;
  left: var(--nf-edge);
  bottom: 21%;
  width: min(560px, 42%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.nf-eyebrow {
  color: #e7cf86;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.nf-bb-title {
  margin: 0;
  line-height: 0;
}
.nf-bb-title img {
  display: block;
  width: clamp(260px, 31vw, 520px);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}
.nf-bb-title-shizu img {
  width: clamp(210px, 22vw, 380px);
}
.nf-bb-content .mwx-tag {
  background: rgba(9, 8, 7, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nf-bb-pitch {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
  color: var(--body-intense);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85);
}
.nf-stats {
  display: flex;
  flex-wrap: wrap;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.nf-stats div {
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.nf-stats div:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.nf-stats dt {
  font: 500 11px/15px "Fira Mono", monospace;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #a39367;
}
.nf-stats dd {
  margin: 2px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 32px;
  background: linear-gradient(92deg, #ffe9a8 0%, #ffcf4d 50%, #e0a52a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Carousel controls: frosted pill of dots + round play/pause, centred */
.nf-bb-controls {
  position: absolute;
  left: 50%;
  bottom: 21%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}
.nf-dotnav,
.nf-playpause {
  background: rgba(66, 62, 56, 0.55);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.nf-dotnav {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
}
.nf-dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  cursor: pointer;
  transition:
    width 0.4s ease,
    background 0.2s ease;
}
.nf-dot::before {
  /* bigger hit area */
  content: "";
  position: absolute;
  inset: -12px -5px;
}
.nf-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.nf-dot.is-active {
  width: 44px;
  background: rgba(255, 255, 255, 0.35);
}
.nf-dot-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: #fff;
}
.nf-dot.is-active .nf-dot-fill {
  width: 100%;
}
.nf-bb.is-playing .nf-dot.is-active .nf-dot-fill {
  width: 0;
  animation: nf-fill var(--nf-interval, 9s) linear forwards;
}
.nf-bb.is-paused .nf-dot.is-active .nf-dot-fill {
  animation-play-state: paused;
}
@keyframes nf-fill {
  to {
    width: 100%;
  }
}
.nf-playpause {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.nf-playpause:hover {
  background: rgba(86, 81, 73, 0.7);
}
.nf-playpause svg {
  width: 20px;
  height: 20px;
}
.nf-playpause .nf-icon-play,
.nf-bb.is-stopped .nf-playpause .nf-icon-pause {
  display: none;
}
.nf-bb.is-stopped .nf-playpause .nf-icon-play {
  display: block;
}
.nf-dot:focus-visible,
.nf-playpause:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Rows ---------- */
.nf-rows {
  position: relative;
  z-index: 2;
  margin-top: clamp(-150px, -12vh, -80px);
  display: flex;
  flex-direction: column;
  gap: 52px;
}
.nf-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--nf-edge);
  margin-bottom: 14px;
}
.nf-row-head h2 {
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.25;
  color: #fff;
}
.nf-row-head h2 a span {
  display: inline-block;
  margin-left: 6px;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.nf-row-head h2 a:hover span {
  transform: translateX(4px);
}
.nf-row-nav {
  display: flex;
  gap: 8px;
}
.nf-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(243, 196, 61, 0.4);
  background: rgba(243, 196, 61, 0.06);
  color: var(--gold);
  font-size: 17px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}
.nf-nav:hover {
  background: rgba(243, 196, 61, 0.16);
}
.nf-nav:disabled {
  opacity: 0.28;
  cursor: default;
}
.nf-row-nav.is-static {
  visibility: hidden; /* row fits: no arrows needed */
}
.nf-nav:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.nf-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--nf-edge);
  padding: 6px var(--nf-edge) 8px;
  scrollbar-width: none;
}
.nf-track::-webkit-scrollbar {
  display: none;
}

/* ---------- Cards ---------- */
.nf-card {
  flex: 0 0 auto;
  width: clamp(230px, 20vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  scroll-snap-align: start;
}
.nf-card-media {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #15120d;
  transition:
    border-color 0.2s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.nf-card-media > img:first-child {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.nf-card-cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}
.nf-card-cap strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 19px;
  color: #e9e9e9;
}
.nf-card-cap small {
  font: 500 11px/15px "Fira Mono", monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a39367;
}
.nf-card:hover .nf-card-media,
.nf-card:focus-visible .nf-card-media {
  border-color: rgba(243, 196, 61, 0.65);
  transform: translateY(-4px);
  box-shadow: 0 18px 32px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(243, 196, 61, 0.25);
}
.nf-card:hover .nf-card-cap strong {
  color: #fff;
}
.nf-card:focus-visible {
  outline: none;
}
.nf-card:focus-visible .nf-card-media {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Game cards: bigger, with the logo on the art */
.nf-card-game {
  width: clamp(300px, 30vw, 460px);
}
.nf-card-game .nf-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}
.nf-card-logo {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  width: 46%;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8));
}
.nf-card-logo-shizu {
  width: 28%;
}

/* Character cards: portrait */
.nf-card-cast {
  width: clamp(140px, 12vw, 190px);
}
.nf-card-cast .nf-card-media > img:first-child {
  aspect-ratio: 3 / 4;
}

/* Stat cards: one big number each */
.nf-stat {
  position: relative;
  flex: 0 0 auto;
  width: clamp(220px, 19vw, 290px);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(243, 196, 61, 0.18);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(243, 196, 61, 0.13) 0%, rgba(243, 196, 61, 0) 60%),
    linear-gradient(160deg, #1b1710 0%, #100f0c 100%);
  scroll-snap-align: start;
  transition:
    border-color 0.2s ease,
    transform 0.25s ease;
}
.nf-stat:hover,
.nf-stat:focus-visible {
  border-color: rgba(243, 196, 61, 0.5);
  transform: translateY(-4px);
}
.nf-stat:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.nf-stat-logo {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 92px;
  height: auto;
  opacity: 0.85;
}
.nf-stat-logo-shizu {
  width: 56px;
  top: 10px;
}
.nf-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.1;
  background: linear-gradient(92deg, #ffe9a8 0%, #ffcf4d 50%, #e0a52a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nf-stat span {
  font-size: 13px;
  line-height: 18px;
  color: #bdbdbd;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nf-page {
    --nf-edge: 20px;
  }
  .nf-bb {
    height: auto;
    min-height: 640px;
  }
  .nf-bb-content {
    width: auto;
    right: var(--nf-edge);
    bottom: 150px;
    gap: 14px;
  }
  .nf-bb-shade {
    background:
      linear-gradient(0deg, #090807 0%, #090807 22%, rgba(9, 8, 7, 0.85) 42%, rgba(9, 8, 7, 0.2) 70%, rgba(9, 8, 7, 0) 82%),
      linear-gradient(180deg, rgba(9, 8, 7, 0.6) 0%, rgba(9, 8, 7, 0) 16%);
  }
  .nf-bb-controls {
    bottom: 40px;
  }
  .nf-rows {
    margin-top: 8px;
    gap: 40px;
  }
}
@media (max-width: 600px) {
  .nf-bb {
    min-height: 760px;
  }
  .nf-bb-content {
    bottom: 132px;
    gap: 12px;
  }
  /* the same numbers are in the "By the numbers" row */
  .nf-stats {
    display: none;
  }
  /* phones: the two CTAs stack full-width, same size */
  .nf-bb-content .g-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .nf-bb-content .btn {
    width: 100%;
    height: 46px;
    min-width: 0;
    padding: 0 16px;
    font-size: 16px;
  }
  .nf-bb-controls {
    bottom: 32px;
  }
  .nf-bb-title img {
    width: min(76vw, 320px);
  }
  .nf-bb-title-shizu img {
    width: min(52vw, 210px);
  }
  .nf-bb-pitch {
    font-size: 15px;
  }
  .nf-stats div {
    padding-right: 14px;
    margin-right: 14px;
  }
  .nf-stats dd {
    font-size: 20px;
    line-height: 26px;
  }
  .nf-row-nav {
    display: none;
  }
  .nf-card {
    width: 66vw;
  }
  .nf-card-game {
    width: 80vw;
  }
  .nf-card-cast {
    width: 38vw;
  }
  .nf-stat {
    width: 62vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nf-bb-slide,
  .nf-bb-art,
  .nf-card-media,
  .nf-stat {
    transition: none;
  }
  .nf-bb-art {
    transform: none;
  }
}

/* Short description of the game under an "In game" row title */
.nf-row-brief {
  max-width: 720px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 24px;
  color: var(--body-subtle);
}
@media (max-width: 600px) {
  .nf-row-brief {
    font-size: 14px;
    line-height: 22px;
  }
}

/* Billboard pills carry Xorin stats: gold number, plain label */
.nf-pills .nf-pill {
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-color: rgba(243, 196, 61, 0.35);
  font-size: 14px;
  color: var(--body-moderate);
}
.nf-pill b {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
}
