/* STEP3275 — category hub headings, 16:9 cards and shared landing motion. */
body.category.fpsj-theme .fpsj-listing .fpsj-category-motion-title {
  transform-origin: left center;
}
/* STEP3276: A saved category motion is an explicit editor-selected animation.
   STEP3275 inadvertently disabled it under prefers-reduced-motion, while two
   shared stylesheets shorten all motion to .01ms !important. Match the already
   accepted STEP3272 Game Hub contract: category title only, one normal play,
   with OFF untouched. Do not affect article cards or other page headings. */
body.category.fpsj-theme .fpsj-category-motion-title[data-fpsj-category-motion="reveal"] {
  animation:fpsjLandingFadeUp .82s cubic-bezier(.22,1,.36,1) both;
  animation-duration:.82s !important;
  animation-iteration-count:1 !important;
}
body.category.fpsj-theme .fpsj-category-motion-title[data-fpsj-category-motion="glitch"] {
  animation:fpsjLandingSlideIn .86s cubic-bezier(.2,.75,.25,1) both;
  animation-duration:.86s !important;
  animation-iteration-count:1 !important;
}
body.category.fpsj-theme .fpsj-category-motion-title[data-fpsj-category-motion="hud"] {
  animation:fpsjLandingSoftZoom .96s cubic-bezier(.18,1,.32,1) both;
  animation-duration:.96s !important;
  animation-iteration-count:1 !important;
}
body.category.fpsj-theme .fpsj-category-motion-title[data-fpsj-category-motion="off"] {animation:none;}
/* STEP3319 — Truly seamless hero. Earlier STEP3277 gradients lived inside
   the header rectangle, leaving a hard colour boundary even without borders.
   Keep the established H1 motion and decorative text, but use the same page
   canvas as the fixed-page landing heroes: no panel, mask, shadow or overlay. */
body.category.fpsj-theme .fpsj-listing .fpsj-listing-header {
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  padding:clamp(22px,3.4vw,42px) 0 clamp(35px,4.5vw,58px);
  margin:0 0 -8px;
  min-width:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
}
/* No rectangular grid mask or glow layer: text sits on the main background. */
body.category.fpsj-theme .fpsj-listing .fpsj-listing-header::before {
  content:none;
  display:none;
}
body.category.fpsj-theme .fpsj-listing .fpsj-listing-header > * {position:relative;z-index:1;}
body.category.fpsj-theme .fpsj-category-hero__eyebrow {
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0 0 clamp(13px,1.7vw,21px);
  color:#61cdec;
  font-size:clamp(.69rem,.88vw,.78rem);
  line-height:1.4;
  font-weight:850;
  letter-spacing:.135em;
}
body.category.fpsj-theme .fpsj-category-hero__eyebrow-line {
  display:block;
  flex:none;
  width:27px;
  height:2px;
  background:#39c9f4;
  border-radius:4px;
}
body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-listing-title {
  max-width:100%;
  margin:0 0 clamp(12px,1.75vw,19px);
  color:#f5f9ff;
  font-size:clamp(2.15rem,4.2vw,3.45rem);
  font-weight:900;
  line-height:1.16;
  letter-spacing:-.035em;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-listing-term-description {
  width:100%;
  max-width:69ch;
  margin:0;
  color:#b7cfe4;
  font-size:clamp(.96rem,1.3vw,1.045rem);
  line-height:1.8;
  overflow-wrap:anywhere;
}
body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-listing-term-description > :first-child {margin-top:0;}
body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-listing-term-description > :last-child {margin-bottom:0;}
body.category.fpsj-theme :is(#fpsj-category-popular-heading,#fpsj-category-recent-heading) {scroll-margin-top:110px;}
@media (max-width:750px) {
 body.category.fpsj-theme .fpsj-listing .fpsj-listing-header {
   padding:22px 0 38px;
   margin-bottom:-5px;
   background:transparent;
 }
 body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-listing-title {font-size:clamp(2rem,7vw,2.7rem);}
}

body.category.fpsj-theme .fpsj-category-spotlight {width:100%;margin:clamp(22px,3.5vw,44px) 0 28px;}
body.category.fpsj-theme .fpsj-category-section {margin:0 0 clamp(24px,3.5vw,44px);}
body.category.fpsj-theme .fpsj-category-section__heading {display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:16px;}
body.category.fpsj-theme .fpsj-category-section__eyebrow {display:block;color:#27c9ff;font-size:.7rem;font-weight:850;letter-spacing:.14em;margin-bottom:4px;}
body.category.fpsj-theme .fpsj-category-section__heading h2,
body.category.fpsj-theme .fpsj-category-all-heading {color:#f4f8ff;font-size:clamp(1.35rem,2.1vw,1.75rem);line-height:1.3;letter-spacing:.01em;margin:0;font-weight:850;}
body.category.fpsj-theme .fpsj-category-section__heading p {margin:0;color:#8faacb;font-size:.79rem;line-height:1.5;text-align:right;}
body.category.fpsj-theme .fpsj-category-section__grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
body.category.fpsj-theme .fpsj-category-card {display:flex;min-width:0;flex-direction:column;background:#081426;border:1px solid rgba(67,107,162,.27);border-radius:14px;overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease;}
body.category.fpsj-theme .fpsj-category-card:hover,
body.category.fpsj-theme .fpsj-category-card:focus-within {border-color:rgba(67,107,162,.58);box-shadow:0 12px 30px rgba(0,0,0,.15);}
body.category.fpsj-theme .fpsj-category-card__image {display:block;position:relative;width:100%;aspect-ratio:16 / 9;overflow:hidden;background:#071426;}
body.category.fpsj-theme .fpsj-category-card__image img {display:block;width:100%;height:100%;object-fit:contain;object-position:center;}
body.category.fpsj-theme .fpsj-category-card__placeholder {display:grid;place-items:center;width:100%;height:100%;font-size:1.05rem;font-weight:900;letter-spacing:.1em;color:#54bce6;}
body.category.fpsj-theme .fpsj-category-card__rank {position:absolute;top:10px;left:10px;display:grid;place-items:center;width:29px;height:29px;border-radius:7px;background:#07172cef;color:#6de5ff;font-weight:900;box-shadow:0 0 0 1px #369bd384;}
body.category.fpsj-theme .fpsj-category-card__body {display:flex;flex-direction:column;gap:12px;flex:1;padding:13px 14px 14px;min-height:112px;}
body.category.fpsj-theme .fpsj-category-card__title {margin:0;font-size:var(--fpsj-type-card,.96rem);font-weight:800;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
body.category.fpsj-theme .fpsj-category-card__title a {color:#f5f8ff;text-decoration:none;}
body.category.fpsj-theme .fpsj-category-card__title a:hover {color:#60d9ff;}
body.category.fpsj-theme .fpsj-category-card__title a:focus-visible,
body.category.fpsj-theme .fpsj-category-card__image:focus-visible {outline:2px solid #52d5ff;outline-offset:-2px;}
body.category.fpsj-theme .fpsj-category-card__date {display:flex;justify-content:flex-end;gap:6px;align-items:center;margin:auto 0 0;padding-top:9px;border-top:1px solid rgba(67,107,162,.14);color:#8498b4;font-size:var(--fpsj-type-meta,.76rem);font-weight:750;}
body.category.fpsj-theme .fpsj-category-card__date span {color:#31d7ff;font-size:1rem;}
body.category.fpsj-theme .fpsj-category-all-heading {margin:8px 0 16px;padding-top:10px;border-top:1px solid rgba(67,107,162,.25);}
@media (max-width:750px){
 body.category.fpsj-theme .fpsj-category-section__grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 body.category.fpsj-theme .fpsj-category-section__heading {align-items:start;flex-direction:column;gap:4px;}
 body.category.fpsj-theme .fpsj-category-section__heading p {text-align:left;}
 body.category.fpsj-theme .fpsj-category-card__body {padding:11px 11px 12px;min-height:112px;}
}
@media (max-width:460px){body.category.fpsj-theme .fpsj-category-section__grid {grid-template-columns:1fr;}}
/* The mode-off title always remains static. No category-wide motion disable here:
   STEP3275 made explicit saved motion silently unplayable on reduced-motion OSes. */


/* STEP3323 — compact two-level category Hero copy. No background panels or
   injected jumps; the long taxonomy description remains stored in WordPress. */
body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-category-hero__description {
  width:100%;max-width:min(100%,580px);margin:0 auto;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  text-align:center;overflow-wrap:anywhere;
}
body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-category-hero__description > p {margin:0;}
body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-category-hero__lead {
  color:#e8f5ff;font-size:clamp(1.05rem,1.55vw,1.26rem);
  line-height:1.55;font-weight:800;letter-spacing:.005em;text-wrap:balance;
}
body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-category-hero__sub {
  color:#a9c3d8;font-size:clamp(.85rem,1.06vw,.96rem);
  line-height:1.8;font-weight:450;text-wrap:pretty;
}
@media(max-width:750px){
 body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-category-hero__description {gap:8px;max-width:96%;}
 body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-category-hero__lead {font-size:clamp(1rem,3.8vw,1.15rem);}
 body.category.fpsj-theme .fpsj-listing .fpsj-listing-header .fpsj-category-hero__sub {font-size:.88rem;line-height:1.7;}
}
