/* The free-art page, on top of site.css: a wall of library art around an
   orange search band, then one shelf for each kind of asset. Headings are set
   in Jersey 10, body text stays Rubik. Pixel art is shown at whole-number
   sizes only. Jersey 10 is served from assets/fonts under the SIL Open Font
   License, which sits beside it as Jersey10-OFL.txt. */

@font-face {
  font-family: "Jersey 10"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/Jersey10-Regular.ttf") format("truetype");
}

.wall-page { overflow-x: clip }
.fp-in { max-width: 1920px; margin: 0 auto; padding: 0 clamp(16px, 6.25vw, 120px) }
.fp-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- the wall: rows of 128 px cells drifting sideways ------------------- */
.fp-row {
  height: 128px; background-color: #0e1736;
  background-repeat: repeat-x; background-size: 3072px 128px;
}
.fp-row--a { background-position: -400px 0; animation: fp-left 150s linear infinite }
.fp-row--b { background-position: -1200px 0; animation: fp-right 190s linear infinite }
.fp-row--c { background-position: -800px 0; animation: fp-left 120s linear infinite }
.fp-row--d { background-position: -1600px 0; animation: fp-right 170s linear infinite }
.fp-row--e { background-position: -200px 0; animation: fp-left 140s linear infinite }
@keyframes fp-left { from { background-position-x: 0 } to { background-position-x: -3072px } }
@keyframes fp-right { from { background-position-x: -3072px } to { background-position-x: 0 } }
@media (prefers-reduced-motion: reduce) { .fp-row { animation: none } }

/* ---- the search band ---------------------------------------------------- */
.fp-band { background: var(--bright); color: var(--ground); padding: 40px 0 }
.fp-band a { color: var(--ground) }
.fp-band :focus-visible { outline: 3px solid var(--ground); outline-offset: 3px }
.fp-title {
  margin: 0 0 24px; color: var(--ground);
  font: 400 clamp(56px, 6.25vw, 120px)/.9 "Jersey 10", "Rubik", sans-serif;
  text-wrap: balance;
}
.fp-find { position: relative; display: flex; gap: 14px; align-items: center }
.fp-find svg { position: absolute; left: 26px; width: 30px; height: 30px; color: var(--pale); pointer-events: none }
.fp-find input {
  flex: 1 1 auto; min-width: 0; height: 80px; padding: 0 28px 0 74px;
  background: var(--ground); color: var(--pale); border: 0; border-radius: 8px;
  font: 400 26px "Rubik", system-ui, sans-serif;
}
.fp-find input::placeholder { color: #9aa6c4; opacity: 1 }
.fp-find input:focus-visible { outline: 3px solid var(--ground); outline-offset: 3px }
.fp-find button {
  flex: none; height: 80px; padding: 0 44px; cursor: pointer;
  background: var(--pale); color: var(--ground); border: 0; border-radius: 8px;
  font: 700 26px "Rubik", system-ui, sans-serif;
}
.fp-find button:hover { background: #fff4da }
.fp-chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px }
.fp-chips { display: flex; flex-wrap: wrap; gap: 12px }
.fp-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px;
  background: transparent; color: var(--ground); border: 2px solid var(--ground); border-radius: 24px;
  font: 400 18px "Rubik", system-ui, sans-serif; cursor: pointer;
}
.fp-chip b { font: 400 26px/1 "Jersey 10", "Rubik", sans-serif }
.fp-chip:hover { background: rgba(5, 8, 23, .1) }
.fp-chip[aria-pressed="true"] { background: var(--ground); color: var(--pale) }
.fp-total { margin: 0 0 0 auto; font-size: 20px }
/* the no-AI statement under the shelves' introduction */
.fp-noai { display: flex; gap: 18px; align-items: flex-start; max-width: 860px; margin: 22px 0 0; padding: 18px 20px;
           background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line);
           border-left: 3px solid #e5383b; scroll-margin-top: 90px }
.fp-noai p { margin: 0 0 8px; color: var(--ink-2); font-size: 16px; line-height: 1.55 }
.fp-noai p:last-child { margin: 0 }
.fp-noai b { color: var(--ink); font-size: 18px }
.noai { display: block; flex: none }

/* ---- the shelves: words on the left, the art running off the right edge -- */
.fp-sec { padding-top: 96px }
.fp-h2 {
  margin: 0 0 16px; color: var(--bright);
  font: 400 clamp(48px, 5vw, 88px)/.95 "Jersey 10", "Rubik", sans-serif;
}
.fp-lead { max-width: 64ch; margin: 0 0 40px; font-size: 20px; color: var(--ink-2) }
.fp-lead b { color: var(--pale) }
.fp-shelves {
  border-top: 1px solid var(--line);
  padding-left: max(clamp(16px, 6.25vw, 120px), calc((100% - 1920px) / 2 + 120px));
}
.fp-shelf {
  display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.fp-shelf h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 28px; color: var(--pale) }
.fp-shelf p { margin: 8px 0 10px; color: var(--ink-2); font-size: 17px }
.fp-count { font: 400 32px/1 "Jersey 10", "Rubik", sans-serif; color: var(--bright) }
a.fp-shelf:hover h3 { color: var(--bright) }
a.fp-shelf:hover .fp-count { color: var(--pale) }
a.fp-shelf:focus-visible { outline: 3px solid var(--bright); outline-offset: -3px }
.fp-shelf-art { height: 128px; overflow: hidden }
.fp-shelf-art img { width: auto; height: 128px; max-width: none }
.fp-credit { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0; padding: 0; list-style: none }
.fp-credit a { color: var(--ink); text-decoration: none; font-size: 18px }
.fp-credit b { font: 400 32px/1 "Jersey 10", "Rubik", sans-serif; color: var(--ccby); margin-right: 6px }
.fp-credit a:hover { color: var(--ccby) }

/* ---- the game asset packs block between the introduction and the shelves -- */
.fp-packs { max-width: 1200px; margin: 40px 0 44px; padding: 22px 20px 20px; border: 1px solid var(--line); background: rgba(8, 16, 42, .55) }
.fp-packs h2 { margin: 0 0 8px; font-size: 21px; color: var(--bright) }
.fp-packs p { margin: 0 0 16px; color: var(--ink) }
.fp-packs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 26px); margin: 0 0 18px; padding: 0; list-style: none }
.fp-pk { display: flex; flex-direction: column; min-width: 0; height: 100%; border: 8px solid #1c1510; background: #1c1510; box-shadow: 8px 10px 22px rgba(0, 0, 0, .5); color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease }
.fp-pk:hover, .fp-pk:focus-visible { transform: scale(1.03) rotate(-.5deg); box-shadow: 14px 18px 36px rgba(0, 0, 0, .6) }
.fp-pk:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px }
.fp-pk img { width: 100%; height: auto }
.fp-pk span { padding: 8px 10px; color: #fff; font: 700 14px/1.3 ui-monospace, Consolas, monospace; overflow-wrap: anywhere }
@media (prefers-reduced-motion: reduce) { .fp-pk { transition: none } .fp-pk:hover, .fp-pk:focus-visible { transform: none } }

/* ---- scripts Jersey 10 has no letters for: bold Rubik headings instead --- */
html:lang(ru) .fp-title, html:lang(zh) .fp-title, html:lang(ko) .fp-title {
  font-family: "Rubik", system-ui, sans-serif; font-weight: 700; font-size: clamp(40px, 4.6vw, 88px); line-height: 1.05;
}
html:lang(ru) .fp-h2, html:lang(zh) .fp-h2, html:lang(ko) .fp-h2 {
  font-family: "Rubik", system-ui, sans-serif; font-weight: 700; font-size: clamp(34px, 3.6vw, 64px); line-height: 1.1;
}

/* ---- narrower screens --------------------------------------------------- */
@media (max-width: 1100px) {
  .fp-shelf { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px }
}
@media (max-width: 760px) {
  .fp-row--c { display: none }
  .fp-band { padding: 22px 0 20px }
  .fp-title { margin-bottom: 16px }
  .fp-find { gap: 8px }
  .fp-find svg { display: none }
  .fp-find input { height: 56px; padding: 0 12px 0 14px; font-size: 17px }
  .fp-find button { height: 56px; padding: 0 14px; font-size: 17px }
  .fp-chips-row { margin-top: 14px }
  .fp-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; width: calc(100% + 32px); scrollbar-width: none }
  .fp-chips::-webkit-scrollbar { display: none }
  .fp-chip { flex: none; height: 44px; padding: 0 14px; font-size: 16px }
  .fp-chip b { font-size: 22px }
  .fp-total { margin: 0; font-size: 16px }
  .fp-sec { padding-top: 64px }
  .fp-lead { font-size: 18px; margin-bottom: 28px }
  .fp-shelf { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 0 }
  .fp-shelf h3 { font-size: 24px }
  .fp-packs { margin: 28px 0 32px; padding: 16px 14px 14px }
  .fp-packs-row { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
