/** FPS JAPAN Theme-owned shell and WordPress core-block presentation. */
:where(.fpsj-theme) {
  --fpsj-night: #050a13;
  --fpsj-chrome: #07101f;
  --fpsj-panel: #0c1729;
  --fpsj-panel-raised: #111f35;
  --fpsj-ink: #f7faff;
  --fpsj-muted: #9aabc4;
  --fpsj-line: #223451;
  --fpsj-signal: #3478ff;
  --fpsj-cyan: #31d7ff;
  --fpsj-purple: #8c63ff;
  --fpsj-content-inline: min(820px, calc(100vw - 32px));
  --fpsj-wide-inline: min(1320px, calc(100vw - 32px));
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(52,120,255,.15), transparent 34rem),
    var(--fpsj-night);
  color: var(--fpsj-ink);
}

:where(.fpsj-theme .wp-site-blocks) { display:flex; min-height:100vh; flex-direction:column; overflow:clip; }
:where(.fpsj-theme .wp-site-blocks > main) { flex:1 0 auto; }
:where(.fpsj-theme .fpsj-skip-link) { position:fixed;z-index:100000;top:8px;left:8px;padding:10px 14px;border-radius:8px;background:#fff;color:#050a13;font-weight:800;transform:translateY(-160%); }
:where(.fpsj-theme .fpsj-skip-link:focus) { transform:translateY(0); }

/* Header */
:where(.fpsj-theme .fpsj-site-header) {
  display:block!important; visibility:visible!important; opacity:1!important;
  position:sticky; z-index:1000; top:var(--wp-admin--admin-bar--height,0px);
  width:100%; border-bottom:1px solid color-mix(in srgb,var(--fpsj-line) 84%,transparent);
  background:transparent;
  box-shadow:0 12px 36px rgba(0,0,0,.18);
}
:where(.fpsj-theme .fpsj-site-header)::before {
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:color-mix(in srgb,var(--fpsj-chrome) 90%,transparent);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
:where(.fpsj-theme .fpsj-site-header__inner) { position:relative;z-index:1;width:var(--fpsj-wide-inline);max-width:100%;min-height:68px;margin-inline:auto;gap:1rem; }
:where(.fpsj-theme .fpsj-site-brand) { flex:0 0 auto;min-width:max-content;white-space:nowrap;gap:.65rem; }
:where(.fpsj-theme .fpsj-site-header .wp-block-site-logo img) { display:block;max-height:38px;width:auto;filter:drop-shadow(0 0 12px rgba(49,215,255,.15)); }
:where(.fpsj-theme .fpsj-brand-copy) { gap:0; }
:where(.fpsj-theme .fpsj-site-header .wp-block-site-title) { margin:0;font-weight:900;letter-spacing:.035em;line-height:1.05; }
:where(.fpsj-theme .fpsj-site-header .wp-block-site-title a),
:where(.fpsj-theme .fpsj-brand) { color:var(--fpsj-ink);text-decoration:none; }
:where(.fpsj-theme .fpsj-brand-kicker) { margin:.15rem 0 0;color:var(--fpsj-muted);font-weight:750;letter-spacing:.12em;line-height:1; }
:where(.fpsj-theme .fpsj-quick-navigation) { flex:1 1 auto; }
:where(.fpsj-theme .fpsj-quick-navigation .wp-block-navigation-item__content) { color:#cbd8eb;font-size:.82rem;font-weight:750;text-decoration:none; }
:where(.fpsj-theme .fpsj-quick-navigation .wp-block-navigation-item__content:hover) { color:var(--fpsj-cyan); }
:where(.fpsj-theme .fpsj-site-actions) { min-width:0;margin-left:auto;gap:.65rem; }
:where(.fpsj-theme .fpsj-header-search) { width:min(220px,18vw);min-width:150px; }
:where(.fpsj-theme .fpsj-header-search .wp-block-search__inside-wrapper),
:where(.fpsj-theme .fpsj-footer-search .wp-block-search__inside-wrapper) { border:1px solid var(--fpsj-line);border-radius:10px;background:#050b16;overflow:hidden; }
:where(.fpsj-theme .wp-block-search__input) { color:var(--fpsj-ink);background:transparent;border:0; }
:where(.fpsj-theme .wp-block-search__input::placeholder) { color:#7587a1; }
:where(.fpsj-theme .wp-block-search__button) { margin:0;border:0;border-radius:8px;background:var(--fpsj-signal);color:#fff;text-decoration:none; }
:where(.fpsj-theme .fpsj-primary-navigation) { flex:0 0 auto; }
:where(.fpsj-theme .fpsj-primary-navigation .wp-block-navigation__responsive-container-open) { padding:.7rem;border:1px solid var(--fpsj-line);border-radius:10px;color:var(--fpsj-ink);background:var(--fpsj-panel); }

/*
 * Core Navigation opens a fixed modal. Keep the containing header free of
 * backdrop-filter so the fixed container remains viewport-relative.
 * These selectors intentionally carry normal specificity instead of :where()
 * so WordPress Core responsive-navigation defaults cannot repaint the modal.
 */
.fpsj-theme .wp-block-navigation.fpsj-primary-navigation.has-background .wp-block-navigation__responsive-container.is-menu-open {
  position:fixed;inset:var(--wp-admin--admin-bar--height,0px) 0 0;
  width:100%;min-height:calc(100dvh - var(--wp-admin--admin-bar--height,0px));
  padding:clamp(1.25rem,4vw,3rem);overflow-y:auto;
  color:var(--fpsj-ink)!important;
  background-color:var(--fpsj-night)!important;
  background-image:
    radial-gradient(circle at 50% 0%,rgba(52,120,255,.12),transparent 34rem),
    linear-gradient(180deg,rgba(7,16,31,.995),rgba(5,10,19,.995));
}
.fpsj-theme .wp-block-navigation.fpsj-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
  width:min(100%,720px);margin:0 auto;
}
.fpsj-theme .wp-block-navigation.fpsj-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top:clamp(3rem,8vh,6rem);
}
.fpsj-theme .wp-block-navigation.fpsj-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  width:100%;gap:.5rem;align-items:stretch;
}
.fpsj-theme .wp-block-navigation.fpsj-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width:100%;
}
.fpsj-theme .wp-block-navigation.fpsj-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display:block;width:100%;padding:.9rem 1rem;border:1px solid transparent;border-radius:10px;
  color:var(--fpsj-ink);font-size:1.05rem;font-weight:750;text-decoration:none;
}
.fpsj-theme .wp-block-navigation.fpsj-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.fpsj-theme .wp-block-navigation.fpsj-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
  border-color:var(--fpsj-line);background:var(--fpsj-panel);
}
.fpsj-theme .fpsj-primary-navigation .wp-block-navigation__responsive-container-close {
  padding:.7rem;border:1px solid var(--fpsj-line);border-radius:10px;color:var(--fpsj-ink);background:var(--fpsj-panel);
}

/* Layout */
:where(.fpsj-theme .fpsj-shell) { width:100%; }
:where(.fpsj-theme .fpsj-content-frame) { width:var(--fpsj-content-inline);max-width:100%;margin-inline:auto; }
:where(.fpsj-theme.fpsj-layout-app .fpsj-content-frame),
:where(.fpsj-theme.fpsj-layout-wide .fpsj-content-frame),
:where(.fpsj-theme.fpsj-layout-front .fpsj-content-frame),
:where(.fpsj-theme .fpsj-listing .fpsj-content-frame) { width:var(--fpsj-wide-inline); }
:where(.fpsj-theme .fpsj-front-page) { background:linear-gradient(180deg,rgba(15,31,55,.24),transparent 28rem); }
:where(.fpsj-theme .fpsj-reading-surface) { border:1px solid var(--fpsj-line);border-radius:20px;background:linear-gradient(155deg,rgba(17,31,53,.94),rgba(7,16,31,.98));box-shadow:0 24px 80px rgba(0,0,0,.25); }
:where(.fpsj-theme .fpsj-breadcrumbs) { margin-bottom:1rem; }
:where(.fpsj-theme .fpsj-breadcrumbs a) { color:var(--fpsj-muted); }
:where(.fpsj-theme .fpsj-page-header),:where(.fpsj-theme .fpsj-post-header),:where(.fpsj-theme .fpsj-listing-header) { margin-bottom:clamp(1.5rem,4vw,2.75rem); }
:where(.fpsj-theme .fpsj-listing-header) { position:relative;padding-left:1rem; }
:where(.fpsj-theme .fpsj-listing-header::before) { content:"";position:absolute;inset:.25rem auto .25rem 0;width:3px;border-radius:999px;background:linear-gradient(var(--fpsj-cyan),var(--fpsj-signal),var(--fpsj-purple));box-shadow:0 0 20px rgba(52,120,255,.45); }
:where(.fpsj-theme .fpsj-page-title),:where(.fpsj-theme .fpsj-post-title),:where(.fpsj-theme .fpsj-listing-title) { margin-top:0;margin-bottom:.8rem;text-wrap:balance; }
:where(.fpsj-theme .fpsj-post-meta) { gap:.5rem 1rem;color:var(--fpsj-muted); }
:where(.fpsj-theme .fpsj-post-meta a) { color:inherit; }
:where(.fpsj-theme .fpsj-category-pills) { margin-bottom:.6rem; }
:where(.fpsj-theme .fpsj-category-pills a) { display:inline-flex;margin:0 .35rem .35rem 0;padding:.25rem .58rem;border:1px solid rgba(49,215,255,.28);border-radius:999px;background:rgba(49,215,255,.08);color:var(--fpsj-cyan);font-weight:750;text-decoration:none; }
:where(.fpsj-theme .fpsj-featured-image) { overflow:hidden;border:1px solid var(--fpsj-line);border-radius:16px;background:var(--fpsj-panel); }
:where(.fpsj-theme .fpsj-featured-image img) { width:100%;height:auto; }
:where(.fpsj-theme .fpsj-post-footer) { margin-top:clamp(2.5rem,6vw,4rem);padding-top:1.5rem;border-top:1px solid var(--fpsj-line); }
:where(.fpsj-theme .fpsj-post-navigation) { gap:1rem; }
:where(.fpsj-theme .fpsj-post-navigation > *) { min-width:min(100%,260px); }
:where(.fpsj-theme .fpsj-post-navigation a) { display:block;padding:1rem;border:1px solid var(--fpsj-line);border-radius:12px;background:var(--fpsj-panel);color:var(--fpsj-ink); }

/* Article content */
:where(.fpsj-theme:not(.fpsj-layout-app) .wp-block-post-content > h2) { margin-top:2.75rem;padding:.75rem 0 .75rem 1rem;border-left:4px solid var(--fpsj-signal); }
:where(.fpsj-theme:not(.fpsj-layout-app) .wp-block-post-content > h3) { margin-top:2.15rem;padding-bottom:.55rem;border-bottom:1px solid var(--fpsj-line); }
:where(.fpsj-theme:not(.fpsj-layout-app) .wp-block-post-content p),
:where(.fpsj-theme:not(.fpsj-layout-app) .wp-block-post-content li) { color:#d8e2f1; }
:where(.fpsj-theme:not(.fpsj-layout-app) .wp-block-post-content strong) { color:#fff; }
:where(.fpsj-theme:not(.fpsj-layout-app) .wp-block-post-content a) { text-decoration:underline;text-decoration-color:rgba(49,215,255,.38);text-underline-offset:.18em; }
:where(.fpsj-theme:not(.fpsj-layout-app) .wp-block-post-content table) { border-color:var(--fpsj-line);background:var(--fpsj-panel); }
:where(.fpsj-theme:not(.fpsj-layout-app) .wp-block-post-content th) { background:#132541;color:#fff; }
:where(.fpsj-theme:not(.fpsj-layout-app) .wp-block-post-content td) { border-color:var(--fpsj-line); }

/* Cards */
:where(.fpsj-theme .fpsj-card-grid .wp-block-post) { height:100%; }
:where(.fpsj-theme .fpsj-post-card) { position:relative;height:100%;overflow:hidden;border:1px solid var(--fpsj-line);border-radius:15px;background:linear-gradient(155deg,var(--fpsj-panel-raised),var(--fpsj-panel));box-shadow:0 14px 40px rgba(0,0,0,.18);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
:where(.fpsj-theme .fpsj-post-card:hover) { transform:translateY(-3px);border-color:rgba(52,120,255,.65);box-shadow:0 20px 50px rgba(0,0,0,.28),0 0 26px rgba(52,120,255,.12); }
:where(.fpsj-theme .fpsj-post-card .wp-block-post-featured-image) { margin:0;overflow:hidden;background:#050b16; }
:where(.fpsj-theme .fpsj-post-card .wp-block-post-featured-image img) { transition:transform .35s ease; }
:where(.fpsj-theme .fpsj-post-card:hover .wp-block-post-featured-image img) { transform:scale(1.025); }
:where(.fpsj-theme .fpsj-post-card .wp-block-post-title) { margin-top:0;line-height:1.35; }
:where(.fpsj-theme .fpsj-post-card .wp-block-post-title a) { color:var(--fpsj-ink); }
:where(.fpsj-theme .fpsj-post-card .wp-block-post-excerpt) { color:var(--fpsj-muted); }
:where(.fpsj-theme .fpsj-post-card .wp-block-post-excerpt__more-link) { color:var(--fpsj-cyan);font-weight:750; }
:where(.fpsj-theme .fpsj-post-card__meta) { padding-top:.8rem;border-top:1px solid rgba(34,52,81,.72); }
:where(.fpsj-theme .fpsj-pagination) { margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--fpsj-line); }
:where(.fpsj-theme .fpsj-pagination a),:where(.fpsj-theme .fpsj-pagination .page-numbers) { padding:.55rem .8rem;border:1px solid var(--fpsj-line);border-radius:8px;background:var(--fpsj-panel);color:var(--fpsj-ink); }

/* Theme block styles */
:where(.fpsj-theme .is-style-fpsj-panel) { border:1px solid var(--fpsj-line);border-radius:16px;background:linear-gradient(150deg,var(--fpsj-panel-raised),var(--fpsj-panel));box-shadow:0 18px 50px rgba(0,0,0,.2); }
:where(.fpsj-theme .is-style-fpsj-glass) { position:relative;overflow:hidden;border:1px solid rgba(73,115,177,.42);border-radius:22px;background:linear-gradient(145deg,rgba(17,31,53,.88),rgba(5,10,19,.92));box-shadow:0 30px 80px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.04); }
:where(.fpsj-theme .is-style-fpsj-glass)::before { content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 72% 18%,rgba(52,120,255,.22),transparent 38%),linear-gradient(120deg,rgba(49,215,255,.07),transparent 35%,rgba(140,99,255,.08)); }
:where(.fpsj-theme .is-style-fpsj-glass > *) { position:relative; }
:where(.fpsj-theme .is-style-fpsj-accent) { border-left:4px solid var(--fpsj-signal);background:rgba(52,120,255,.08); }
:where(.fpsj-theme .wp-block-button.is-style-fpsj-outline .wp-block-button__link) { border:1px solid var(--fpsj-signal);background:transparent;color:#7fb0ff;box-shadow:none; }
:where(.fpsj-theme .wp-block-button.is-style-fpsj-ghost .wp-block-button__link) { border:1px solid var(--fpsj-line);background:var(--fpsj-panel);color:var(--fpsj-ink);box-shadow:none; }
:where(.fpsj-theme .wp-block-button .wp-block-button__link) { transition:transform .18s ease,box-shadow .18s ease,background .18s ease; }
:where(.fpsj-theme .wp-block-button .wp-block-button__link:hover) { transform:translateY(-2px);box-shadow:0 12px 30px rgba(52,120,255,.28); }
:where(.fpsj-theme .is-style-fpsj-media img) { border:1px solid var(--fpsj-line);border-radius:16px;box-shadow:0 16px 45px rgba(0,0,0,.22); }
:where(.fpsj-theme .fpsj-section-heading) { gap:1rem;padding-bottom:1rem;border-bottom:1px solid var(--fpsj-line); }
:where(.fpsj-theme .fpsj-section-heading p),:where(.fpsj-theme .fpsj-section-heading h2) { margin:0; }


/* PHASE 4 Layout Studio components: opt-in stability primitives. */
:where(.fpsj-theme .fpsj-layout-media-slot),
:where(.fpsj-theme .is-style-fpsj-media-16-9),
:where(.fpsj-theme .is-style-fpsj-media-4-3) {
  position:relative;
  overflow:hidden;
  background:var(--fpsj-panel);
}
:where(.fpsj-theme .fpsj-layout-media-slot.is-ratio-16-9),
:where(.fpsj-theme .is-style-fpsj-media-16-9) { aspect-ratio:16 / 9; }
:where(.fpsj-theme .fpsj-layout-media-slot.is-ratio-4-3),
:where(.fpsj-theme .is-style-fpsj-media-4-3) { aspect-ratio:4 / 3; }
:where(.fpsj-theme .fpsj-layout-media-slot > img),
:where(.fpsj-theme .fpsj-layout-media-slot > picture),
:where(.fpsj-theme .fpsj-layout-media-slot > picture > img),
:where(.fpsj-theme .is-style-fpsj-media-16-9 img),
:where(.fpsj-theme .is-style-fpsj-media-4-3 img) {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
:where(.fpsj-theme .fpsj-layout-media-slot.is-contain > img),
:where(.fpsj-theme .fpsj-layout-media-slot.is-contain > picture > img) { object-fit:contain; }
:where(.fpsj-theme .fpsj-lcp-candidate) { --fpsj-lcp-candidate:1; }
:where(.fpsj-theme .fpsj-above-fold-budget) { --fpsj-above-fold-budget:1; }

@media (prefers-reduced-motion: reduce) {
  :where(.fpsj-theme *) {
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}



/* PHASE 4 Layout Studio: opt-in single-post composition. */
:where(.fpsj-theme .fpsj-single-studio-intro) {
  display:grid;
  gap:clamp(1rem,2.5vw,1.75rem);
  margin-bottom:clamp(1.75rem,4vw,3rem);
}
:where(.fpsj-theme .fpsj-single-studio-intro .fpsj-post-header) { margin-bottom:0; }
:where(.fpsj-theme .fpsj-single-studio-intro .fpsj-featured-image) { margin-block:0; }

/* Legacy saved markup visual safety; no shortcode registration or data mutation. */
:where(.fpsj-theme .wp-block-st-blocks-my-button),:where(.fpsj-theme .st-mybtn-mini) { display:inline-flex;max-width:100%;margin:.35rem .2rem; }
:where(.fpsj-theme .wp-block-st-blocks-my-button > a),:where(.fpsj-theme .st-mybtn-mini > a) { display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.65rem 1rem;border:1px solid var(--fpsj-line);border-radius:9px;background:var(--fpsj-signal);color:#fff!important;font-weight:750;text-decoration:none!important; }

/* Footer */
:where(.fpsj-theme .fpsj-site-footer) { display:block!important;visibility:visible!important;opacity:1!important;width:100%;margin-top:auto;border-top:1px solid var(--fpsj-line);background:linear-gradient(180deg,#07101f,#040912);color:#dbe8fb; }
:where(.fpsj-theme .fpsj-site-footer__inner) { width:var(--fpsj-wide-inline);max-width:100%;margin-inline:auto; }
:where(.fpsj-theme .fpsj-site-footer h3) { color:#fff;text-transform:uppercase;letter-spacing:.08em; }
:where(.fpsj-theme .fpsj-site-footer a) { color:#c8d7ec;text-decoration:none; }
:where(.fpsj-theme .fpsj-site-footer a:hover) { color:var(--fpsj-cyan); }
:where(.fpsj-theme .fpsj-footer-links) { margin:0;padding:0;list-style:none; }
:where(.fpsj-theme .fpsj-footer-links li) { margin:.45rem 0; }
:where(.fpsj-theme .fpsj-footer-bottom) { gap:1rem; }
:where(.fpsj-theme .fpsj-footer-bottom p) { margin:0; }

:where(.fpsj-theme.fpsj-layout-app .fpsj-page-header) { display:none; }
:where(.fpsj-theme.fpsj-layout-app .fpsj-shell) { padding-top:1.5rem!important; }
:where(.fpsj-theme .fpsj-template-part-fallback) { padding:1rem; }
:where(.fpsj-theme .wp-block-query-pagination a),:where(.fpsj-theme .wp-block-post-navigation-link a) { text-decoration:none; }
:where(.fpsj-theme :focus-visible) { outline:3px solid color-mix(in srgb,var(--fpsj-cyan) 75%,#fff);outline-offset:3px; }

@media (max-width:1080px) {
  :where(.fpsj-theme .fpsj-quick-navigation) { display:none; }
  :where(.fpsj-theme .fpsj-header-search) { width:min(240px,26vw); }
  :where(.fpsj-theme .fpsj-card-grid .wp-block-post-template) { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
@media (max-width:781px) {
  :where(.fpsj-theme) { --fpsj-content-inline:min(100%,calc(100vw - 24px));--fpsj-wide-inline:min(100%,calc(100vw - 24px)); }
  :where(.fpsj-theme .fpsj-site-header__inner) { min-height:60px; }
  :where(.fpsj-theme .fpsj-brand-kicker) { display:none; }
  :where(.fpsj-theme .fpsj-shell) { padding-top:1.25rem!important;padding-bottom:2.5rem!important; }
  :where(.fpsj-theme .fpsj-card-grid .wp-block-post-template) { grid-template-columns:minmax(0,1fr)!important; }
  :where(.fpsj-theme .fpsj-post-navigation) { flex-direction:column;align-items:stretch; }
  :where(.fpsj-theme .fpsj-footer-grid) { gap:1.5rem; }
  :where(.fpsj-theme .fpsj-footer-grid > .wp-block-column) { flex-basis:100%!important; }
}
@media (max-width:640px) {
  :where(.fpsj-theme .fpsj-header-search) { display:none; }
  :where(.fpsj-theme .fpsj-site-header__inner) { gap:.65rem; }
  :where(.fpsj-theme .fpsj-site-header .wp-block-site-title) { font-size:1rem!important; }
  :where(.fpsj-theme .fpsj-reading-surface) { border-radius:14px; }
  :where(.fpsj-theme .fpsj-footer-bottom) { align-items:flex-start;flex-direction:column; }
}


/* PHASE 1 Front Page Composition v0.4.44 */
:where(.fpsj-theme .fpsj-front-home .fpsj-content-frame) {
  display:grid;
  width:min(1320px,calc(100vw - 48px));
  max-width:none;
  margin-inline:auto;
  gap:clamp(2.25rem,4vw,4rem);
}
:where(.fpsj-theme .fpsj-front-hero) {
  position:relative;
  overflow:hidden;
  border:1px solid rgba(73,115,177,.42);
  border-radius:24px;
  background:
    radial-gradient(circle at 74% 28%,rgba(52,120,255,.24),transparent 30rem),
    linear-gradient(140deg,rgba(12,23,41,.98),rgba(5,10,19,.99));
  box-shadow:0 28px 80px rgba(0,0,0,.32);
}
:where(.fpsj-theme .fpsj-front-hero)::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(49,215,255,.06) 1px,transparent 1px),
    linear-gradient(rgba(49,215,255,.04) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.55));
}
:where(.fpsj-theme .fpsj-front-hero__grid) {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.28fr) minmax(340px,.72fr);
  gap:clamp(2.25rem,3.5vw,3.75rem);
  align-items:center;
  min-height:600px;
  padding:clamp(3rem,4vw,4rem);
}
:where(.fpsj-theme .fpsj-front-hero__copy) { max-width:760px; }
:where(.fpsj-theme .fpsj-front-eyebrow) {
  margin:0 0 1rem;
  letter-spacing:.12em;
}
:where(.fpsj-theme .fpsj-front-hero__title) {
  margin:0;
  line-height:1.05;
  letter-spacing:-.045em;
  text-wrap:balance;
}
:where(.fpsj-theme .fpsj-front-hero__title) {
  font-size:clamp(3.25rem,4vw,3.9rem)!important;
  line-height:1.08;
}
:where(.fpsj-theme .fpsj-front-hero__line) {
  display:block;
  white-space:nowrap;
}
:where(.fpsj-theme .fpsj-front-hero__line--accent) {
  margin-top:.08em;
  color:var(--fpsj-signal);
}
:where(.fpsj-theme .fpsj-front-hero__lead) {
  max-width:660px;
  margin-top:1.4rem;
  line-height:1.85;
}
:where(.fpsj-theme .fpsj-front-hero__search) {
  max-width:680px;
  margin-top:1.5rem;
}
:where(.fpsj-theme .fpsj-front-hero__search .wp-block-search__inside-wrapper) {
  min-height:58px;
  padding:.35rem;
  border:1px solid rgba(73,115,177,.62);
  border-radius:14px;
  background:rgba(3,8,17,.82);
}
:where(.fpsj-theme .fpsj-front-hero__search .wp-block-search__input) {
  border:0;
  background:transparent;
  color:var(--fpsj-ink);
}


/* =========================================================
   FPS JAPAN Front Page V2 / 0.4.46
   Full-width editorial + tactical dashboard composition
   ========================================================= */

:where(.fpsj-theme .fpsj-front-v2) {
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 6%,rgba(35,90,190,.10),transparent 34rem),
    #050a13;
}

:where(.fpsj-theme .fpsj-v2-shell) {
  width:min(1440px,calc(100vw - 56px));
  max-width:none!important;
  margin-inline:auto;
}

:where(.fpsj-theme .fpsj-v2-hero) {
  position:relative;
  min-height:760px;
  display:flex;
  align-items:center;
  border-bottom:1px solid rgba(73,115,177,.24);
  background:
    linear-gradient(90deg,rgba(5,10,19,.18),rgba(5,10,19,.88)),
    radial-gradient(circle at 74% 42%,rgba(22,103,255,.18),transparent 30rem);
}

:where(.fpsj-theme .fpsj-v2-hero)::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.42;
  background-image:
    linear-gradient(rgba(62,129,255,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(62,129,255,.07) 1px,transparent 1px);
  background-size:58px 58px;
  mask-image:linear-gradient(90deg,transparent 0,black 34%,black 100%);
}

:where(.fpsj-theme .fpsj-v2-hero__inner) {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(440px,.92fr);
  gap:clamp(3rem,6vw,7rem);
  align-items:center;
  padding-block:clamp(5rem,8vw,8rem);
}

:where(.fpsj-theme .fpsj-v2-hero__copy) {
  max-width:760px;
  margin:0;
}

:where(.fpsj-theme .fpsj-v2-kicker) {
  display:block;
  margin:0 0 1.2rem;
  color:var(--fpsj-cyan);
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}

:where(.fpsj-theme .fpsj-v2-hero__title) {
  margin:0;
  font-size:clamp(4rem,6vw,6.5rem)!important;
  line-height:.92;
  letter-spacing:-.055em;
  font-weight:900;
}

:where(.fpsj-theme .fpsj-v2-hero__title span) {
  display:block;
  white-space:nowrap;
}

:where(.fpsj-theme .fpsj-v2-hero__title-accent) {
  margin-top:.08em;
  color:var(--fpsj-signal);
}

:where(.fpsj-theme .fpsj-v2-hero__lead) {
  max-width:690px;
  margin:1.7rem 0 0;
  line-height:1.9;
}

:where(.fpsj-theme .fpsj-v2-search) {
  max-width:720px;
  margin-top:1.6rem;
}

:where(.fpsj-theme .fpsj-v2-search .wp-block-search__inside-wrapper) {
  min-height:64px;
  padding:.36rem;
  border:1px solid rgba(78,127,199,.5);
  border-radius:12px;
  background:rgba(3,8,17,.86);
  box-shadow:0 20px 55px rgba(0,0,0,.25);
}

:where(.fpsj-theme .fpsj-v2-search .wp-block-search__input) {
  border:0;
  background:transparent;
  color:var(--fpsj-ink);
  padding-inline:1rem;
}

:where(.fpsj-theme .fpsj-v2-search .wp-block-search__button) {
  min-width:118px;
  border:0;
  border-radius:8px;
  background:var(--fpsj-signal);
  color:#fff;
  font-weight:900;
  letter-spacing:.08em;
}

:where(.fpsj-theme .fpsj-v2-hero__actions) {
  margin-top:1.15rem;
  gap:.75rem;
}

:where(.fpsj-theme .fpsj-v2-hero__hud) {
  position:relative;
  min-height:520px;
  overflow:hidden;
  border:1px solid rgba(69,121,199,.34);
  border-radius:24px;
  background:
    radial-gradient(circle at 50% 48%,rgba(31,102,218,.22),transparent 18rem),
    linear-gradient(145deg,rgba(13,27,48,.78),rgba(6,13,24,.92));
  box-shadow:inset 0 0 90px rgba(15,72,165,.1),0 40px 100px rgba(0,0,0,.32);
}

:where(.fpsj-theme .fpsj-v2-hud__grid) {
  position:absolute;
  inset:0;
  opacity:.48;
  background-image:
    linear-gradient(rgba(58,129,255,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(58,129,255,.08) 1px,transparent 1px);
  background-size:46px 46px;
}

:where(.fpsj-theme .fpsj-v2-hud__reticle) {
  position:absolute;
  left:50%;
  top:46%;
  width:min(66%,340px);
  aspect-ratio:1;
  border:1px solid rgba(49,215,255,.48);
  border-radius:50%;
  transform:translate(-50%,-50%);
  box-shadow:0 0 70px rgba(49,215,255,.08);
}

:where(.fpsj-theme .fpsj-v2-hud__reticle)::before,
:where(.fpsj-theme .fpsj-v2-hud__reticle)::after {
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  border:1px solid rgba(49,215,255,.28);
  border-radius:50%;
}

:where(.fpsj-theme .fpsj-v2-hud__reticle)::before {
  width:64%;
  height:64%;
}

:where(.fpsj-theme .fpsj-v2-hud__reticle)::after {
  width:30%;
  height:30%;
}

:where(.fpsj-theme .fpsj-v2-hud__reticle span)::before,
:where(.fpsj-theme .fpsj-v2-hud__reticle span)::after {
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  background:var(--fpsj-cyan);
  transform:translate(-50%,-50%);
  box-shadow:0 0 14px rgba(49,215,255,.8);
}

:where(.fpsj-theme .fpsj-v2-hud__reticle span)::before { width:58px;height:2px; }
:where(.fpsj-theme .fpsj-v2-hud__reticle span)::after { width:2px;height:58px; }

:where(.fpsj-theme .fpsj-v2-hud__status) {
  position:absolute;
  left:1.4rem;
  top:1.35rem;
  display:grid;
  gap:.2rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  text-transform:uppercase;
}

:where(.fpsj-theme .fpsj-v2-hud__status span) {
  color:var(--fpsj-muted);
  font-size:.68rem;
  letter-spacing:.14em;
}

:where(.fpsj-theme .fpsj-v2-hud__status strong) {
  color:var(--fpsj-cyan);
  font-size:.88rem;
  letter-spacing:.08em;
}

:where(.fpsj-theme .fpsj-v2-hud__chips) {
  position:absolute;
  left:1.4rem;
  right:1.4rem;
  bottom:1.35rem;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.6rem;
}

:where(.fpsj-theme .fpsj-v2-hud__chips span) {
  padding:.85rem .6rem;
  border:1px solid rgba(76,129,205,.28);
  border-radius:9px;
  background:rgba(5,12,23,.75);
  color:#9db4d6;
  font-size:.66rem;
  font-weight:800;
  text-align:center;
  letter-spacing:.07em;
}

:where(.fpsj-theme .fpsj-v2-command),
:where(.fpsj-theme .fpsj-v2-latest),
:where(.fpsj-theme .fpsj-v2-bento),
:where(.fpsj-theme .fpsj-v2-final) {
  padding-block:clamp(4rem,7vw,7rem);
}

:where(.fpsj-theme .fpsj-v2-section-label) {
  display:grid;
  grid-template-columns:auto auto 1fr;
  gap:.85rem;
  align-items:center;
  margin-bottom:1.5rem;
  padding-bottom:1rem;
  border-bottom:1px solid rgba(75,116,174,.30);
  font-size:.74rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}

:where(.fpsj-theme .fpsj-v2-section-label span) {
  color:var(--fpsj-signal);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
}

:where(.fpsj-theme .fpsj-v2-section-label strong) {
  color:var(--fpsj-ink);
}

:where(.fpsj-theme .fpsj-v2-section-label em) {
  justify-self:end;
  color:var(--fpsj-muted);
  font-style:normal;
  letter-spacing:.04em;
  text-transform:none;
}

:where(.fpsj-theme .fpsj-v2-section-label a) {
  color:var(--fpsj-cyan);
  text-decoration:none;
}

:where(.fpsj-theme .fpsj-v2-command__grid) {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
}

:where(.fpsj-theme .fpsj-v2-command-card) {
  position:relative;
  min-height:220px;
  padding:1.5rem;
  overflow:hidden;
  border:1px solid rgba(72,116,180,.32);
  border-radius:16px;
  background:
    radial-gradient(circle at 100% 0,rgba(37,105,225,.13),transparent 13rem),
    #0a1424;
  transition:transform .2s ease,border-color .2s ease,background .2s ease;
}

:where(.fpsj-theme .fpsj-v2-command-card--wide) {
  grid-column:span 2;
}

:where(.fpsj-theme .fpsj-v2-command-card:hover) {
  transform:translateY(-4px);
  border-color:rgba(49,215,255,.52);
  background:
    radial-gradient(circle at 100% 0,rgba(37,105,225,.22),transparent 13rem),
    #0d192b;
}

:where(.fpsj-theme .fpsj-v2-command-card__index) {
  margin:0 0 3.2rem;
  color:#50698d;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.72rem;
}

:where(.fpsj-theme .fpsj-v2-command-card h2),
:where(.fpsj-theme .fpsj-v2-command-card h3) {
  margin:0;
  font-size:clamp(1.35rem,2vw,2.05rem);
  letter-spacing:-.03em;
}

:where(.fpsj-theme .fpsj-v2-command-card h2 a),
:where(.fpsj-theme .fpsj-v2-command-card h3 a) {
  color:var(--fpsj-ink);
  text-decoration:none;
}

:where(.fpsj-theme .fpsj-v2-command-card > p:not(.fpsj-v2-command-card__index)) {
  margin:.6rem 0 0;
  color:var(--fpsj-muted);
  font-size:.9rem;
}

:where(.fpsj-theme .fpsj-v2-command-card__arrow) {
  position:absolute;
  right:1.2rem;
  bottom:1rem;
  color:var(--fpsj-cyan);
  font-size:1.4rem;
}

:where(.fpsj-theme .fpsj-v2-latest) {
  background:linear-gradient(180deg,transparent,rgba(11,24,43,.28),transparent);
}

:where(.fpsj-theme .fpsj-v2-post-grid.wp-block-post-template) {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:1rem!important;
}

:where(.fpsj-theme .fpsj-v2-post-grid > li:first-child) {
  grid-column:span 2;
  grid-row:span 2;
}

:where(.fpsj-theme .fpsj-v2-post-card) {
  height:100%;
  overflow:hidden;
  border:1px solid rgba(74,118,180,.30);
  border-radius:16px;
  background:#0a1424;
}

:where(.fpsj-theme .fpsj-v2-post-card .wp-block-post-featured-image) {
  margin:0;
  overflow:hidden;
  background:
    linear-gradient(135deg,rgba(29,78,161,.22),rgba(4,10,19,.9));
}

:where(.fpsj-theme .fpsj-v2-post-card .wp-block-post-featured-image img) {
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  transition:filter .35s ease;
}

:where(.fpsj-theme .fpsj-v2-post-card:hover .wp-block-post-featured-image img) {
  transform:none;
  filter:saturate(1.025);
}

:where(.fpsj-theme .fpsj-v2-post-grid > li:first-child .wp-block-post-featured-image) {
  aspect-ratio:16/9;
}

:where(.fpsj-theme .fpsj-v2-post-grid > li:not(:first-child) .wp-block-post-featured-image) {
  aspect-ratio:16/9;
}

:where(.fpsj-theme .fpsj-v2-post-card__body) {
  padding:1.05rem 1.1rem 1.2rem;
}

:where(.fpsj-theme .fpsj-v2-post-card .wp-block-post-title) {
  margin:.6rem 0 .8rem;
  line-height:1.45;
}

:where(.fpsj-theme .fpsj-v2-post-grid > li:first-child .wp-block-post-title) {
  font-size:clamp(1.4rem,2.2vw,2.2rem)!important;
}

:where(.fpsj-theme .fpsj-v2-post-card .wp-block-post-date) {
  margin:0;
}

:where(.fpsj-theme .fpsj-v2-bento__grid) {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-rows:minmax(210px,auto);
  gap:1rem;
}

:where(.fpsj-theme .fpsj-v2-bento-card) {
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:230px;
  padding:1.5rem;
  overflow:hidden;
  border:1px solid rgba(74,118,180,.30);
  border-radius:18px;
  background:#0a1424;
  color:var(--fpsj-ink);
  text-decoration:none;
  transition:transform .2s ease,border-color .2s ease;
}

:where(.fpsj-theme .fpsj-v2-bento-card:hover) {
  transform:translateY(-4px);
  border-color:rgba(49,215,255,.5);
}

:where(.fpsj-theme .fpsj-v2-bento-card--rank) {
  grid-column:span 2;
  grid-row:span 2;
  min-height:470px;
  background:
    radial-gradient(circle at 80% 20%,rgba(47,112,235,.26),transparent 20rem),
    linear-gradient(145deg,#0b1930,#07101d);
}

:where(.fpsj-theme .fpsj-v2-bento-card--crosshair) {
  grid-column:span 2;
  background:
    radial-gradient(circle at 78% 50%,rgba(69,215,162,.15),transparent 13rem),
    #091522;
}

:where(.fpsj-theme .fpsj-v2-bento-card--monitor),
:where(.fpsj-theme .fpsj-v2-bento-card--keyboard) {
  background:linear-gradient(145deg,#0c1728,#08111d);
}

:where(.fpsj-theme .fpsj-v2-bento-card__eyebrow) {
  position:absolute;
  left:1.5rem;
  top:1.35rem;
  color:var(--fpsj-cyan);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.7rem;
  letter-spacing:.12em;
}

:where(.fpsj-theme .fpsj-v2-bento-card strong) {
  position:relative;
  z-index:2;
  font-size:clamp(1.5rem,2.4vw,2.8rem);
  line-height:1.12;
  letter-spacing:-.04em;
}

:where(.fpsj-theme .fpsj-v2-bento-card small) {
  position:relative;
  z-index:2;
  margin-top:.8rem;
  color:#89a3c8;
}

:where(.fpsj-theme .fpsj-v2-bento-card--rank i) {
  position:absolute;
  right:1rem;
  top:.5rem;
  color:rgba(65,127,230,.11);
  font-size:12rem;
  font-style:normal;
  font-weight:900;
  line-height:1;
}

:where(.fpsj-theme .fpsj-v2-mini-crosshair) {
  position:absolute;
  right:9%;
  top:50%;
  width:150px;
  aspect-ratio:1;
  border:1px solid rgba(69,215,162,.30);
  border-radius:50%;
  transform:translateY(-50%);
}

:where(.fpsj-theme .fpsj-v2-mini-crosshair)::before,
:where(.fpsj-theme .fpsj-v2-mini-crosshair)::after {
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  background:#45d7a2;
  transform:translate(-50%,-50%);
  box-shadow:0 0 12px rgba(69,215,162,.5);
}

:where(.fpsj-theme .fpsj-v2-mini-crosshair)::before { width:42px;height:2px; }
:where(.fpsj-theme .fpsj-v2-mini-crosshair)::after { width:2px;height:42px; }

:where(.fpsj-theme .fpsj-v2-final) {
  padding-top:2rem;
  padding-bottom:7rem;
}

:where(.fpsj-theme .fpsj-v2-final__inner) {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:2rem;
  padding:clamp(2rem,4vw,4rem);
  border:1px solid rgba(74,118,180,.30);
  border-radius:20px;
  background:
    radial-gradient(circle at 100% 0,rgba(41,106,221,.20),transparent 22rem),
    linear-gradient(135deg,#0c192c,#07101c);
}

:where(.fpsj-theme .fpsj-v2-final__inner h2) {
  margin:.4rem 0 0;
  font-size:clamp(2rem,4vw,4.5rem);
  line-height:1.02;
  letter-spacing:-.05em;
}

:where(.fpsj-theme .fpsj-v2-final__actions) {
  flex:0 0 auto;
}

/* Tablet */
@media (max-width:1100px) {
  :where(.fpsj-theme .fpsj-v2-shell) {
    width:min(100%,calc(100vw - 32px));
  }
  :where(.fpsj-theme .fpsj-v2-hero__inner) {
    grid-template-columns:minmax(0,1fr);
    gap:2.5rem;
    padding-block:4rem;
  }
  :where(.fpsj-theme .fpsj-v2-hero) { min-height:0; }
  :where(.fpsj-theme .fpsj-v2-hero__hud) { min-height:420px; }
  :where(.fpsj-theme .fpsj-v2-hero__title) {
    font-size:clamp(3.4rem,9vw,6rem)!important;
  }
  :where(.fpsj-theme .fpsj-v2-command__grid) {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  :where(.fpsj-theme .fpsj-v2-command-card--wide) {
    grid-column:span 2;
  }
  :where(.fpsj-theme .fpsj-v2-post-grid.wp-block-post-template) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  :where(.fpsj-theme .fpsj-v2-post-grid > li:first-child) {
    grid-column:span 2;
    grid-row:auto;
  }
}

/* Mobile */
@media (max-width:680px) {
  :where(.fpsj-theme .fpsj-v2-shell) {
    width:calc(100vw - 24px);
  }
  :where(.fpsj-theme .fpsj-v2-hero__inner) {
    padding-block:2.5rem 3rem;
  }
  :where(.fpsj-theme .fpsj-v2-hero__title) {
    font-size:clamp(2.8rem,14vw,4.4rem)!important;
  }
  :where(.fpsj-theme .fpsj-v2-hero__title span) {
    white-space:normal;
  }
  :where(.fpsj-theme .fpsj-v2-hero__lead) {
    font-size:1rem!important;
    line-height:1.75;
  }
  :where(.fpsj-theme .fpsj-v2-search .wp-block-search__inside-wrapper) {
    min-height:56px;
  }
  :where(.fpsj-theme .fpsj-v2-search .wp-block-search__button) {
    min-width:88px;
    font-size:.8rem;
  }
  :where(.fpsj-theme .fpsj-v2-hero__actions .wp-block-button) {
    flex:1 1 100%;
  }
  :where(.fpsj-theme .fpsj-v2-hero__actions .wp-block-button__link) {
    width:100%;
    text-align:center;
  }
  :where(.fpsj-theme .fpsj-v2-hero__hud) {
    min-height:360px;
    border-radius:18px;
  }
  :where(.fpsj-theme .fpsj-v2-hud__chips) {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  :where(.fpsj-theme .fpsj-v2-section-label) {
    grid-template-columns:auto 1fr;
  }
  :where(.fpsj-theme .fpsj-v2-section-label em) {
    grid-column:1 / -1;
    justify-self:start;
  }
  :where(.fpsj-theme .fpsj-v2-command__grid) {
    grid-template-columns:minmax(0,1fr);
  }
  :where(.fpsj-theme .fpsj-v2-command-card--wide) {
    grid-column:auto;
  }
  :where(.fpsj-theme .fpsj-v2-command-card) {
    min-height:180px;
  }
  :where(.fpsj-theme .fpsj-v2-post-grid.wp-block-post-template) {
    grid-template-columns:minmax(0,1fr)!important;
  }
  :where(.fpsj-theme .fpsj-v2-post-grid > li:first-child) {
    grid-column:auto;
  }
  :where(.fpsj-theme .fpsj-v2-bento__grid) {
    grid-template-columns:minmax(0,1fr);
    grid-auto-rows:auto;
  }
  :where(.fpsj-theme .fpsj-v2-bento-card--rank),
  :where(.fpsj-theme .fpsj-v2-bento-card--crosshair) {
    grid-column:auto;
    grid-row:auto;
    min-height:300px;
  }
  :where(.fpsj-theme .fpsj-v2-mini-crosshair) {
    width:120px;
    opacity:.75;
  }
  :where(.fpsj-theme .fpsj-v2-final__inner) {
    display:grid;
    align-items:start;
  }
  :where(.fpsj-theme .fpsj-v2-final__actions) {
    width:100%;
  }
  :where(.fpsj-theme .fpsj-v2-final__actions .wp-block-button) {
    flex:1 1 100%;
  }
  :where(.fpsj-theme .fpsj-v2-final__actions .wp-block-button__link) {
    width:100%;
    text-align:center;
  }
}


/* =========================================================
   FPS JAPAN Front Page V2 Density Refinement / 0.4.47
   ========================================================= */

:where(.fpsj-theme .fpsj-v2-hero) {
  min-height:620px;
}

:where(.fpsj-theme .fpsj-v2-hero__inner) {
  grid-template-columns:minmax(0,1.12fr) minmax(390px,.88fr);
  gap:clamp(2.5rem,4.5vw,5rem);
  padding-block:clamp(3.8rem,5.5vw,5.5rem);
}

:where(.fpsj-theme .fpsj-v2-hero__copy) {
  max-width:720px;
}

:where(.fpsj-theme .fpsj-v2-hero__title) {
  font-size:clamp(3.6rem,5.2vw,5.75rem)!important;
  line-height:.94;
}

:where(.fpsj-theme .fpsj-v2-hero__lead) {
  max-width:650px;
  margin-top:1.35rem;
  font-size:clamp(1rem,1.25vw,1.15rem)!important;
  line-height:1.8;
}

:where(.fpsj-theme .fpsj-v2-search) {
  max-width:650px;
  margin-top:1.3rem;
}

:where(.fpsj-theme .fpsj-v2-search .wp-block-search__inside-wrapper) {
  min-height:58px;
}

:where(.fpsj-theme .fpsj-v2-search .wp-block-search__button) {
  min-width:104px;
}

:where(.fpsj-theme .fpsj-v2-hero__actions) {
  margin-top:.95rem;
}

:where(.fpsj-theme .fpsj-v2-hero__actions .wp-block-button__link) {
  padding:.82rem 1.18rem;
  font-size:.9rem;
}

:where(.fpsj-theme .fpsj-v2-hero__hud) {
  min-height:450px;
  border-radius:20px;
}

:where(.fpsj-theme .fpsj-v2-hud__reticle) {
  width:min(58%,300px);
}

:where(.fpsj-theme .fpsj-v2-hud__chips) {
  left:1.15rem;
  right:1.15rem;
  bottom:1.1rem;
  gap:.5rem;
}

:where(.fpsj-theme .fpsj-v2-hud__chips span) {
  padding:.68rem .5rem;
  font-size:.62rem;
}

/* Section vertical rhythm */
:where(.fpsj-theme .fpsj-v2-command),
:where(.fpsj-theme .fpsj-v2-latest),
:where(.fpsj-theme .fpsj-v2-bento) {
  padding-block:clamp(2.8rem,4.5vw,4.6rem);
}

:where(.fpsj-theme .fpsj-v2-final) {
  padding-top:1.5rem;
  padding-bottom:4.5rem;
}

:where(.fpsj-theme .fpsj-v2-section-label) {
  margin-bottom:1.05rem;
  padding-bottom:.72rem;
  font-size:.68rem;
}

/* Command Deck: six-track layout keeps all 5 cards on one desktop row. */
:where(.fpsj-theme .fpsj-v2-command__grid) {
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:.78rem;
}

:where(.fpsj-theme .fpsj-v2-command-card) {
  grid-column:span 1;
  min-height:168px;
  padding:1.1rem 1.05rem;
  border-radius:13px;
}

:where(.fpsj-theme .fpsj-v2-command-card--wide) {
  grid-column:span 2;
}

:where(.fpsj-theme .fpsj-v2-command-card__index) {
  margin:0 0 1.55rem;
  font-size:.64rem;
}

:where(.fpsj-theme .fpsj-v2-command-card h2),
:where(.fpsj-theme .fpsj-v2-command-card h3) {
  font-size:clamp(1.05rem,1.45vw,1.48rem);
  line-height:1.08;
  letter-spacing:-.02em;
}

:where(.fpsj-theme .fpsj-v2-command-card > p:not(.fpsj-v2-command-card__index)) {
  margin:.5rem 0 0;
  font-size:.8rem;
  line-height:1.55;
}

:where(.fpsj-theme .fpsj-v2-command-card__arrow) {
  right:.9rem;
  bottom:.75rem;
  font-size:1.05rem;
}

/* Latest Intel: tighter editorial cards. */
:where(.fpsj-theme .fpsj-v2-post-grid.wp-block-post-template) {
  gap:.78rem!important;
}

:where(.fpsj-theme .fpsj-v2-post-card) {
  border-radius:13px;
}

:where(.fpsj-theme .fpsj-v2-post-card__body) {
  padding:.85rem .9rem .95rem;
}

:where(.fpsj-theme .fpsj-v2-post-card .wp-block-post-title) {
  margin:.45rem 0 .62rem;
  font-size:.98rem!important;
  line-height:1.4;
}

:where(.fpsj-theme .fpsj-v2-post-grid > li:first-child .wp-block-post-title) {
  font-size:clamp(1.25rem,1.8vw,1.8rem)!important;
}

:where(.fpsj-theme .fpsj-v2-post-card .wp-block-post-date) {
  font-size:.72rem!important;
}

/* Explore Bento: preserve hierarchy but reduce oversized empty space. */
:where(.fpsj-theme .fpsj-v2-bento__grid) {
  grid-auto-rows:minmax(170px,auto);
  gap:.78rem;
}

:where(.fpsj-theme .fpsj-v2-bento-card) {
  min-height:190px;
  padding:1.2rem;
  border-radius:15px;
}

:where(.fpsj-theme .fpsj-v2-bento-card--rank) {
  min-height:390px;
}

:where(.fpsj-theme .fpsj-v2-bento-card--crosshair) {
  min-height:190px;
}

:where(.fpsj-theme .fpsj-v2-bento-card__eyebrow) {
  left:1.2rem;
  top:1.05rem;
  font-size:.62rem;
}

:where(.fpsj-theme .fpsj-v2-bento-card strong) {
  font-size:clamp(1.3rem,2vw,2.25rem);
}

:where(.fpsj-theme .fpsj-v2-bento-card small) {
  margin-top:.55rem;
  font-size:.75rem;
}

:where(.fpsj-theme .fpsj-v2-bento-card--rank i) {
  font-size:9rem;
}

:where(.fpsj-theme .fpsj-v2-mini-crosshair) {
  width:118px;
}

/* Final CTA */
:where(.fpsj-theme .fpsj-v2-final__inner) {
  padding:clamp(1.65rem,3vw,2.8rem);
  border-radius:16px;
}

:where(.fpsj-theme .fpsj-v2-final__inner h2) {
  font-size:clamp(1.8rem,3.2vw,3.6rem);
}

/* Tablet refinement */
@media (max-width:1100px) {
  :where(.fpsj-theme .fpsj-v2-hero__inner) {
    gap:1.8rem;
    padding-block:3rem;
  }
  :where(.fpsj-theme .fpsj-v2-hero__hud) {
    min-height:360px;
  }
  :where(.fpsj-theme .fpsj-v2-command__grid) {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  :where(.fpsj-theme .fpsj-v2-command-card--wide) {
    grid-column:span 2;
  }
  :where(.fpsj-theme .fpsj-v2-command-card) {
    min-height:155px;
  }
}

/* Mobile refinement */
@media (max-width:680px) {
  :where(.fpsj-theme .fpsj-v2-hero__inner) {
    padding-block:2rem 2.4rem;
  }
  :where(.fpsj-theme .fpsj-v2-hero__title) {
    font-size:clamp(2.55rem,13vw,4rem)!important;
  }
  :where(.fpsj-theme .fpsj-v2-hero__hud) {
    min-height:320px;
  }
  :where(.fpsj-theme .fpsj-v2-command),
  :where(.fpsj-theme .fpsj-v2-latest),
  :where(.fpsj-theme .fpsj-v2-bento) {
    padding-block:2.5rem;
  }
  :where(.fpsj-theme .fpsj-v2-command__grid) {
    grid-template-columns:minmax(0,1fr);
  }
  :where(.fpsj-theme .fpsj-v2-command-card),
  :where(.fpsj-theme .fpsj-v2-command-card--wide) {
    grid-column:auto;
    min-height:145px;
  }
  :where(.fpsj-theme .fpsj-v2-command-card__index) {
    margin-bottom:1rem;
  }
  :where(.fpsj-theme .fpsj-v2-bento-card--rank) {
    min-height:260px;
  }
  :where(.fpsj-theme .fpsj-v2-bento-card--crosshair),
  :where(.fpsj-theme .fpsj-v2-bento-card--monitor),
  :where(.fpsj-theme .fpsj-v2-bento-card--keyboard) {
    min-height:165px;
  }
}


/* =========================================================
   FPS JAPAN Front Page V3 / 0.4.48
   Tools-first compact dark information architecture
   ========================================================= */

:where(.fpsj-theme .fpsj-front-v3) {
  overflow:hidden;
  background:
    radial-gradient(circle at 16% 0%,rgba(42,98,210,.10),transparent 28rem),
    #050a13;
}

:where(.fpsj-theme .fpsj-v3-shell) {
  width:min(1280px,calc(100vw - 48px));
  max-width:none!important;
  margin-inline:auto;
}

:where(.fpsj-theme .fpsj-v3-hero) {
  position:relative;
  min-height:500px;
  display:flex;
  align-items:center;
  border-bottom:1px solid rgba(73,115,177,.22);
}

:where(.fpsj-theme .fpsj-v3-hero)::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.38;
  background-image:
    linear-gradient(rgba(55,120,230,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(55,120,230,.06) 1px,transparent 1px);
  background-size:54px 54px;
  mask-image:linear-gradient(90deg,black,rgba(0,0,0,.18));
}

:where(.fpsj-theme .fpsj-v3-hero__inner) {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);
  gap:clamp(2.4rem,5vw,5rem);
  align-items:center;
  padding-block:clamp(3.5rem,5vw,5rem);
}

:where(.fpsj-theme .fpsj-v3-hero__copy) {
  max-width:720px;
  margin:0;
}

:where(.fpsj-theme .fpsj-v3-kicker) {
  margin:0 0 1rem;
  color:var(--fpsj-cyan);
  font-size:.72rem!important;
  font-weight:800;
  letter-spacing:.14em;
}

:where(.fpsj-theme .fpsj-v3-hero__title) {
  margin:0;
  font-size:clamp(3.2rem,4.4vw,4.8rem)!important;
  line-height:1;
  letter-spacing:-.045em;
  font-weight:900;
}

:where(.fpsj-theme .fpsj-v3-hero__title span) {
  display:block;
  white-space:nowrap;
}

:where(.fpsj-theme .fpsj-v3-hero__title-accent) {
  margin-top:.12em;
  color:var(--fpsj-signal);
}

:where(.fpsj-theme .fpsj-v3-hero__lead) {
  max-width:650px;
  margin:1.2rem 0 0;
  color:var(--fpsj-muted);
  font-size:1rem;
  line-height:1.75;
}

:where(.fpsj-theme .fpsj-v3-search) {
  max-width:640px;
  margin-top:1.35rem;
}

:where(.fpsj-theme .fpsj-v3-search .wp-block-search__inside-wrapper) {
  min-height:54px;
  padding:.3rem;
  border:1px solid rgba(75,121,191,.45);
  border-radius:10px;
  background:rgba(3,8,17,.86);
}

:where(.fpsj-theme .fpsj-v3-search .wp-block-search__input) {
  border:0;
  background:transparent;
  color:var(--fpsj-ink);
  padding-inline:.9rem;
}

:where(.fpsj-theme .fpsj-v3-search .wp-block-search__button) {
  min-width:84px;
  border:0;
  border-radius:7px;
  background:var(--fpsj-signal);
  color:#fff;
  font-weight:800;
}

:where(.fpsj-theme .fpsj-v3-hero__quick) {
  display:grid;
  gap:.72rem;
}

:where(.fpsj-theme .fpsj-v3-quick-card) {
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:.8rem 1rem;
  align-items:center;
  min-height:92px;
  padding:1rem 1.1rem;
  border:1px solid rgba(75,121,191,.30);
  border-radius:12px;
  background:
    radial-gradient(circle at 100% 0,rgba(47,110,224,.14),transparent 13rem),
    #0a1424;
  color:var(--fpsj-ink);
  text-decoration:none;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}

:where(.fpsj-theme .fpsj-v3-quick-card:hover) {
  transform:translateX(4px);
  border-color:rgba(49,215,255,.48);
  background:#0d192b;
}

:where(.fpsj-theme .fpsj-v3-quick-card span) {
  color:#58749b;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.62rem;
  letter-spacing:.08em;
}

:where(.fpsj-theme .fpsj-v3-quick-card strong) {
  font-size:1.1rem;
  letter-spacing:-.02em;
}

:where(.fpsj-theme .fpsj-v3-quick-card small) {
  color:#8ba5ca;
  font-size:.72rem;
}

:where(.fpsj-theme .fpsj-v3-quick-card--minor) {
  min-height:72px;
  opacity:.88;
}

/* Section rhythm */
:where(.fpsj-theme .fpsj-v3-section) {
  padding-block:clamp(3rem,4.5vw,4.5rem);
}

:where(.fpsj-theme .fpsj-v3-section + .fpsj-v3-section) {
  border-top:1px solid rgba(65,103,158,.13);
}

:where(.fpsj-theme .fpsj-v3-section-head) {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:1.5rem;
  margin-bottom:1.2rem;
  padding-bottom:.78rem;
  border-bottom:1px solid rgba(73,115,177,.27);
}

:where(.fpsj-theme .fpsj-v3-section-head span) {
  display:block;
  margin-bottom:.3rem;
  color:var(--fpsj-cyan);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.67rem;
  font-weight:800;
  letter-spacing:.12em;
}

:where(.fpsj-theme .fpsj-v3-section-head h2) {
  margin:0;
  font-size:clamp(1.5rem,2vw,2rem);
  line-height:1.1;
  letter-spacing:-.025em;
}

:where(.fpsj-theme .fpsj-v3-section-head p) {
  margin:0;
  color:var(--fpsj-muted);
  font-size:.78rem;
}

:where(.fpsj-theme .fpsj-v3-section-head a) {
  color:var(--fpsj-cyan);
  text-decoration:none;
}

/* Tools */
:where(.fpsj-theme .fpsj-v3-tools) {
  background:linear-gradient(180deg,rgba(10,22,40,.16),rgba(5,10,19,0));
}

:where(.fpsj-theme .fpsj-v3-tool-grid) {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.9rem;
}

:where(.fpsj-theme .fpsj-v3-tool-card) {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(180px,.62fr);
  gap:1.2rem;
  min-height:238px;
  padding:1.55rem;
  overflow:hidden;
  border:1px solid rgba(74,119,183,.34);
  border-radius:16px;
  color:var(--fpsj-ink);
  text-decoration:none;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

:where(.fpsj-theme .fpsj-v3-tool-card:hover) {
  transform:translateY(-3px);
  border-color:rgba(49,215,255,.52);
  box-shadow:0 24px 60px rgba(0,0,0,.25);
}

:where(.fpsj-theme .fpsj-v3-tool-card--agent) {
  background:
    radial-gradient(circle at 86% 18%,rgba(52,120,255,.24),transparent 15rem),
    linear-gradient(145deg,#0d1b31,#08111f);
}

:where(.fpsj-theme .fpsj-v3-tool-card--skin) {
  background:
    radial-gradient(circle at 85% 20%,rgba(169,90,255,.18),transparent 14rem),
    linear-gradient(145deg,#11182d,#08111f);
}

:where(.fpsj-theme .fpsj-v3-tool-card__copy) {
  position:relative;
  z-index:2;
  align-self:center;
}

:where(.fpsj-theme .fpsj-v3-tool-card__eyebrow) {
  display:block;
  margin-bottom:.65rem;
  color:var(--fpsj-cyan);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.62rem;
  letter-spacing:.11em;
}

:where(.fpsj-theme .fpsj-v3-tool-card__copy > strong) {
  display:block;
  font-size:clamp(2rem,3vw,3rem);
  line-height:.88;
  letter-spacing:-.045em;
}

:where(.fpsj-theme .fpsj-v3-tool-card__copy p) {
  max-width:330px;
  margin:.85rem 0 .85rem;
  color:#9db0cb;
  font-size:.82rem;
  line-height:1.6;
}

:where(.fpsj-theme .fpsj-v3-tool-card__copy b) {
  color:#fff;
  font-size:.8rem;
}

:where(.fpsj-theme .fpsj-v3-tool-card__copy b i) {
  color:var(--fpsj-cyan);
  font-style:normal;
}

/* Agent visual */
:where(.fpsj-theme .fpsj-v3-agent-visual) {
  position:relative;
  align-self:center;
  justify-self:center;
  width:160px;
  height:180px;
}

:where(.fpsj-theme .fpsj-v3-agent-visual__head) {
  position:absolute;
  left:50%;
  top:12px;
  width:66px;
  height:66px;
  border:1px solid rgba(49,215,255,.45);
  border-radius:50%;
  background:radial-gradient(circle at 45% 35%,rgba(49,215,255,.18),rgba(5,10,19,.25));
  transform:translateX(-50%);
}

:where(.fpsj-theme .fpsj-v3-agent-visual__body) {
  position:absolute;
  left:50%;
  top:82px;
  width:118px;
  height:84px;
  border:1px solid rgba(52,120,255,.38);
  border-radius:58px 58px 12px 12px;
  transform:translateX(-50%);
}

:where(.fpsj-theme .fpsj-v3-agent-visual i) {
  position:absolute;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--fpsj-cyan);
  box-shadow:0 0 12px rgba(49,215,255,.55);
}

:where(.fpsj-theme .fpsj-v3-agent-visual i:nth-of-type(1)) { left:5px;top:70px; }
:where(.fpsj-theme .fpsj-v3-agent-visual i:nth-of-type(2)) { right:8px;top:38px; }
:where(.fpsj-theme .fpsj-v3-agent-visual i:nth-of-type(3)) { right:1px;bottom:20px; }

/* Skin visual */
:where(.fpsj-theme .fpsj-v3-skin-visual) {
  position:relative;
  align-self:center;
  justify-self:center;
  width:190px;
  height:150px;
}

:where(.fpsj-theme .fpsj-v3-skin-visual span) {
  position:absolute;
  left:8px;
  top:50px;
  width:154px;
  height:38px;
  border:1px solid rgba(171,111,255,.46);
  background:linear-gradient(90deg,rgba(52,120,255,.28),rgba(171,111,255,.25));
  clip-path:polygon(0 25%,70% 25%,78% 0,100% 0,92% 58%,70% 58%,58% 100%,44% 100%,48% 58%,0 58%);
  box-shadow:0 0 30px rgba(116,79,255,.12);
}

:where(.fpsj-theme .fpsj-v3-skin-visual i),
:where(.fpsj-theme .fpsj-v3-skin-visual b) {
  position:absolute;
  bottom:12px;
  width:42px;
  height:5px;
  border-radius:999px;
}

:where(.fpsj-theme .fpsj-v3-skin-visual i) {
  left:36px;
  background:#3478ff;
}

:where(.fpsj-theme .fpsj-v3-skin-visual b) {
  left:84px;
  background:#ad6fff;
}

:where(.fpsj-theme .fpsj-v3-tool-subgrid) {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.72rem;
  margin-top:.72rem;
}

:where(.fpsj-theme .fpsj-v3-tool-subgrid a) {
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:.7rem;
  align-items:center;
  min-height:64px;
  padding:.8rem .9rem;
  border:1px solid rgba(72,112,172,.25);
  border-radius:10px;
  background:#091321;
  color:var(--fpsj-ink);
  text-decoration:none;
}

:where(.fpsj-theme .fpsj-v3-tool-subgrid span) {
  color:#536f98;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.62rem;
}

:where(.fpsj-theme .fpsj-v3-tool-subgrid strong) {
  font-size:.9rem;
}

:where(.fpsj-theme .fpsj-v3-tool-subgrid small) {
  color:#829bbf;
  font-size:.68rem;
}

/* Compact category navigation */
:where(.fpsj-theme .fpsj-v3-category-grid) {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:.7rem;
}

:where(.fpsj-theme .fpsj-v3-category-grid a) {
  position:relative;
  min-height:112px;
  padding:1rem .9rem;
  border:1px solid rgba(72,112,172,.26);
  border-radius:11px;
  background:#091321;
  color:var(--fpsj-ink);
  text-decoration:none;
  transition:border-color .18s ease,transform .18s ease;
}

:where(.fpsj-theme .fpsj-v3-category-grid a:hover) {
  transform:translateY(-2px);
  border-color:rgba(49,215,255,.46);
}

:where(.fpsj-theme .fpsj-v3-category-grid i) {
  display:block;
  margin-bottom:1.25rem;
  color:#536f98;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.62rem;
  font-style:normal;
}

:where(.fpsj-theme .fpsj-v3-category-grid strong) {
  display:block;
  font-size:1rem;
  letter-spacing:-.015em;
}

:where(.fpsj-theme .fpsj-v3-category-grid small) {
  display:block;
  margin-top:.28rem;
  color:#7f98ba;
  font-size:.66rem;
}

/* Latest editorial */
:where(.fpsj-theme .fpsj-v3-post-grid.wp-block-post-template) {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:.78rem!important;
}

:where(.fpsj-theme .fpsj-v3-post-grid > li:first-child) {
  grid-column:span 2;
  grid-row:span 2;
}

:where(.fpsj-theme .fpsj-v3-post-card) {
  height:100%;
  overflow:hidden;
  border:1px solid rgba(72,112,172,.27);
  border-radius:12px;
  background:#091321;
}

:where(.fpsj-theme .fpsj-v3-post-card .wp-block-post-featured-image) {
  margin:0;
  overflow:hidden;
  background:linear-gradient(135deg,rgba(31,77,156,.20),#07101c);
}

:where(.fpsj-theme .fpsj-v3-post-card .wp-block-post-featured-image img) {
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}

:where(.fpsj-theme .fpsj-v3-post-card__body) {
  padding:.82rem .9rem .92rem;
}

:where(.fpsj-theme .fpsj-v3-post-card .wp-block-post-title) {
  margin:.45rem 0 .6rem;
  font-size:.94rem!important;
  line-height:1.42;
}

:where(.fpsj-theme .fpsj-v3-post-grid > li:first-child .wp-block-post-title) {
  font-size:clamp(1.2rem,1.7vw,1.75rem)!important;
}

:where(.fpsj-theme .fpsj-v3-post-card .wp-block-post-date) {
  margin:0;
  font-size:.68rem!important;
}

/* Ranking */
:where(.fpsj-theme .fpsj-v3-ranking-grid) {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.72rem;
}

:where(.fpsj-theme .fpsj-v3-ranking-grid a) {
  min-height:104px;
  padding:1rem;
  border:1px solid rgba(72,112,172,.25);
  border-radius:11px;
  background:linear-gradient(145deg,#0a1424,#08111e);
  color:var(--fpsj-ink);
  text-decoration:none;
}

:where(.fpsj-theme .fpsj-v3-ranking-grid span) {
  display:block;
  margin-bottom:1rem;
  color:var(--fpsj-cyan);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.61rem;
  letter-spacing:.1em;
}

:where(.fpsj-theme .fpsj-v3-ranking-grid strong) {
  display:block;
  font-size:1rem;
}

:where(.fpsj-theme .fpsj-v3-ranking-grid small) {
  display:block;
  margin-top:.3rem;
  color:#8098b9;
  font-size:.67rem;
}

/* Game Hub */
:where(.fpsj-theme .fpsj-v3-game-grid) {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.72rem;
}

:where(.fpsj-theme .fpsj-v3-game-grid a) {
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:132px;
  padding:1rem;
  overflow:hidden;
  border:1px solid rgba(72,112,172,.25);
  border-radius:11px;
  background:
    radial-gradient(circle at 100% 0,rgba(49,101,202,.18),transparent 10rem),
    #091321;
  color:var(--fpsj-ink);
  text-decoration:none;
}

:where(.fpsj-theme .fpsj-v3-game-grid strong) {
  font-size:1.15rem;
  letter-spacing:-.02em;
}

:where(.fpsj-theme .fpsj-v3-game-grid span) {
  margin-top:.2rem;
  color:#6f89ad;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.6rem;
  letter-spacing:.08em;
}

/* Tablet */
@media (max-width:1050px) {
  :where(.fpsj-theme .fpsj-v3-shell) {
    width:min(100%,calc(100vw - 32px));
  }
  :where(.fpsj-theme .fpsj-v3-hero__inner) {
    grid-template-columns:minmax(0,1fr);
    gap:1.6rem;
    padding-block:3rem;
  }
  :where(.fpsj-theme .fpsj-v3-hero) { min-height:0; }
  :where(.fpsj-theme .fpsj-v3-hero__quick) {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  :where(.fpsj-theme .fpsj-v3-quick-card) {
    grid-template-columns:1fr;
    align-content:end;
    min-height:110px;
  }
  :where(.fpsj-theme .fpsj-v3-tool-card) {
    grid-template-columns:minmax(0,1fr) minmax(140px,.5fr);
  }
  :where(.fpsj-theme .fpsj-v3-category-grid) {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  :where(.fpsj-theme .fpsj-v3-post-grid.wp-block-post-template) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  :where(.fpsj-theme .fpsj-v3-post-grid > li:first-child) {
    grid-column:span 2;
    grid-row:auto;
  }
}

/* Mobile */
@media (max-width:680px) {
  :where(.fpsj-theme .fpsj-v3-shell) {
    width:calc(100vw - 24px);
  }
  :where(.fpsj-theme .fpsj-v3-hero__inner) {
    padding-block:2.2rem 2.5rem;
  }
  :where(.fpsj-theme .fpsj-v3-hero__title) {
    font-size:clamp(2.5rem,12.5vw,3.8rem)!important;
  }
  :where(.fpsj-theme .fpsj-v3-hero__title span) {
    white-space:normal;
  }
  :where(.fpsj-theme .fpsj-v3-hero__quick) {
    grid-template-columns:minmax(0,1fr);
  }
  :where(.fpsj-theme .fpsj-v3-quick-card) {
    min-height:72px;
  }
  :where(.fpsj-theme .fpsj-v3-section) {
    padding-block:2.5rem;
  }
  :where(.fpsj-theme .fpsj-v3-section-head) {
    display:block;
  }
  :where(.fpsj-theme .fpsj-v3-section-head p) {
    margin-top:.45rem;
  }
  :where(.fpsj-theme .fpsj-v3-tool-grid) {
    grid-template-columns:minmax(0,1fr);
  }
  :where(.fpsj-theme .fpsj-v3-tool-card) {
    grid-template-columns:minmax(0,1fr) 120px;
    min-height:210px;
    padding:1.2rem;
  }
  :where(.fpsj-theme .fpsj-v3-tool-card__copy > strong) {
    font-size:clamp(1.8rem,9vw,2.6rem);
  }
  :where(.fpsj-theme .fpsj-v3-agent-visual) {
    width:110px;
    height:145px;
    opacity:.8;
  }
  :where(.fpsj-theme .fpsj-v3-agent-visual__body) {
    width:92px;
  }
  :where(.fpsj-theme .fpsj-v3-skin-visual) {
    width:125px;
  }
  :where(.fpsj-theme .fpsj-v3-skin-visual span) {
    width:118px;
  }
  :where(.fpsj-theme .fpsj-v3-tool-subgrid) {
    grid-template-columns:minmax(0,1fr);
  }
  :where(.fpsj-theme .fpsj-v3-category-grid) {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  :where(.fpsj-theme .fpsj-v3-post-grid.wp-block-post-template) {
    grid-template-columns:minmax(0,1fr)!important;
  }
  :where(.fpsj-theme .fpsj-v3-post-grid > li:first-child) {
    grid-column:auto;
  }
  :where(.fpsj-theme .fpsj-v3-ranking-grid),
  :where(.fpsj-theme .fpsj-v3-game-grid) {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:420px) {
  :where(.fpsj-theme .fpsj-v3-tool-card) {
    grid-template-columns:minmax(0,1fr);
  }
  :where(.fpsj-theme .fpsj-v3-agent-visual),
  :where(.fpsj-theme .fpsj-v3-skin-visual) {
    display:none;
  }
  :where(.fpsj-theme .fpsj-v3-category-grid),
  :where(.fpsj-theme .fpsj-v3-ranking-grid),
  :where(.fpsj-theme .fpsj-v3-game-grid) {
    grid-template-columns:minmax(0,1fr);
  }
}


/* =========================================================
   Header live category navigation / Tool card media — 0.4.49
   ========================================================= */

:where(.fpsj-theme .fpsj-category-navigation--desktop) {
  flex:1 1 auto;
  min-width:0;
}

:where(.fpsj-theme .fpsj-category-menu__root),
:where(.fpsj-theme .fpsj-category-menu__submenu) {
  margin:0;
  padding:0;
  list-style:none;
}

:where(.fpsj-theme .fpsj-category-navigation--desktop > .fpsj-category-menu__root) {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:.08rem;
}

:where(.fpsj-theme .fpsj-category-menu__item) {
  position:relative;
}

:where(.fpsj-theme .fpsj-category-navigation--desktop .fpsj-category-menu__link) {
  display:flex;
  align-items:center;
  gap:.28rem;
  padding:.62rem .58rem;
  border-radius:7px;
  color:#cbd8eb;
  font-size:.76rem;
  font-weight:760;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
}

:where(.fpsj-theme .fpsj-category-navigation--desktop .fpsj-category-menu__link:hover),
:where(.fpsj-theme .fpsj-category-navigation--desktop .fpsj-category-menu__link:focus-visible) {
  color:var(--fpsj-cyan);
  background:rgba(52,120,255,.08);
}

:where(.fpsj-theme .fpsj-category-menu__chevron) {
  color:#7088ab;
  font-size:.72em;
}

:where(.fpsj-theme .fpsj-category-navigation--desktop .fpsj-category-menu__submenu) {
  position:absolute;
  z-index:1200;
  left:0;
  top:100%;
  display:none;
  width:max-content;
  min-width:220px;
  max-width:320px;
  padding:.5rem .45rem .45rem;
  border:1px solid rgba(74,118,180,.34);
  border-radius:0 0 11px 11px;
  background:rgba(7,16,31,.985);
  box-shadow:0 24px 60px rgba(0,0,0,.38);
  backdrop-filter:blur(14px);
}

:where(.fpsj-theme .fpsj-category-navigation--desktop .fpsj-category-menu__submenu .fpsj-category-menu__submenu) {
  left:calc(100% - 1px);
  top:-.5rem;
  border-radius:0 11px 11px 11px;
}

:where(.fpsj-theme .fpsj-category-navigation--desktop .has-children:hover > .fpsj-category-menu__submenu),
:where(.fpsj-theme .fpsj-category-navigation--desktop .has-children:focus-within > .fpsj-category-menu__submenu) {
  display:block;
}

:where(.fpsj-theme .fpsj-category-navigation--desktop .fpsj-category-menu__submenu .fpsj-category-menu__link) {
  justify-content:space-between;
  width:100%;
  padding:.72rem .75rem;
  color:#c9d7eb;
  font-size:.78rem;
}

:where(.fpsj-theme .fpsj-header-tools-link) {
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:.45rem .55rem;
  color:var(--fpsj-cyan);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.67rem;
  font-weight:850;
  letter-spacing:.09em;
  text-decoration:none;
}

:where(.fpsj-theme .fpsj-mobile-category-menu) {
  display:none;
}

/* Tool cards automatically use the target page's featured image when present. */
:where(.fpsj-theme .fpsj-v3-tool-card__media) {
  position:relative;
  z-index:1;
  min-width:0;
  align-self:stretch;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:12px;
}

:where(.fpsj-theme .fpsj-v3-tool-card__media--image) {
  margin:-.7rem -.7rem -.7rem 0;
  background:#07101c;
}

:where(.fpsj-theme .fpsj-v3-tool-card__image) {
  width:100%;
  height:100%;
  min-height:190px;
  object-fit:cover;
  object-position:center;
  opacity:.88;
  filter:saturate(.92) contrast(1.04);
  transition:transform .3s ease,opacity .3s ease;
}

:where(.fpsj-theme .fpsj-v3-tool-card:hover .fpsj-v3-tool-card__image) {
  transform:scale(1.035);
  opacity:1;
}

:where(.fpsj-theme .fpsj-v3-tool-card__media--image)::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(8,17,31,.62),transparent 48%);
}

@media (min-width:901px) {
  :where(.fpsj-theme .fpsj-mobile-category-menu) {
    display:none!important;
  }
}

@media (max-width:900px) {
  :where(.fpsj-theme .fpsj-category-navigation--desktop),
  :where(.fpsj-theme .fpsj-header-tools-link) {
    display:none!important;
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu) {
    display:block;
    position:relative;
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu__toggle) {
    position:relative;
    z-index:1302;
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    padding:0;
    border:1px solid var(--fpsj-line);
    border-radius:9px;
    background:var(--fpsj-panel);
    cursor:pointer;
    list-style:none;
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu__toggle::-webkit-details-marker) {
    display:none;
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu__icon) {
    display:grid;
    gap:4px;
    width:18px;
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu__icon i) {
    display:block;
    width:100%;
    height:2px;
    border-radius:999px;
    background:var(--fpsj-ink);
    transition:transform .18s ease,opacity .18s ease;
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu[open] .fpsj-mobile-category-menu__icon i:nth-child(1)) {
    transform:translateY(6px) rotate(45deg);
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu[open] .fpsj-mobile-category-menu__icon i:nth-child(2)) {
    opacity:0;
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu[open] .fpsj-mobile-category-menu__icon i:nth-child(3)) {
    transform:translateY(-6px) rotate(-45deg);
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu__panel) {
    position:fixed;
    z-index:1300;
    inset:var(--wp-admin--admin-bar--height,0px) 0 0;
    overflow-y:auto;
    padding:86px 16px 28px;
    background:
      radial-gradient(circle at 50% 0,rgba(52,120,255,.12),transparent 30rem),
      linear-gradient(180deg,rgba(7,16,31,.998),rgba(5,10,19,.998));
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu__inner) {
    width:min(100%,680px);
    margin-inline:auto;
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu__utility) {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.55rem;
    margin-bottom:1.5rem;
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu__utility a) {
    padding:.75rem .7rem;
    border:1px solid rgba(74,118,180,.28);
    border-radius:9px;
    background:#091321;
    color:var(--fpsj-ink);
    font-size:.78rem;
    font-weight:760;
    text-align:center;
    text-decoration:none;
  }

  :where(.fpsj-theme .fpsj-mobile-category-menu__label) {
    margin:0 0 .7rem;
    color:var(--fpsj-cyan);
    font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
    font-size:.68rem;
    font-weight:850;
    letter-spacing:.12em;
    text-transform:uppercase;
  }

  :where(.fpsj-theme .fpsj-category-navigation--mobile .fpsj-category-menu__root) {
    display:grid;
    gap:.45rem;
  }

  :where(.fpsj-theme .fpsj-category-navigation--mobile .fpsj-category-menu__item) {
    width:100%;
  }

  :where(.fpsj-theme .fpsj-category-navigation--mobile .fpsj-category-menu__link) {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:.75rem;
    width:100%;
    padding:.78rem .85rem;
    border:1px solid rgba(74,118,180,.20);
    border-radius:9px;
    background:#08121f;
    color:var(--fpsj-ink);
    font-size:.9rem;
    font-weight:760;
    text-decoration:none;
  }

  :where(.fpsj-theme .fpsj-category-navigation--mobile .fpsj-category-menu__submenu) {
    display:grid;
    gap:.35rem;
    margin:.35rem 0 .35rem .7rem;
    padding-left:.7rem;
    border-left:1px solid rgba(49,215,255,.22);
  }

  :where(.fpsj-theme .fpsj-category-navigation--mobile .fpsj-category-menu__submenu .fpsj-category-menu__link) {
    background:transparent;
    font-size:.82rem;
    font-weight:650;
  }
}

@media (max-width:680px) {
  :where(.fpsj-theme .fpsj-v3-tool-card__media--image) {
    margin:-.4rem -.4rem -.4rem 0;
  }

  :where(.fpsj-theme .fpsj-v3-tool-card__image) {
    min-height:150px;
  }
}

@media (max-width:420px) {
  :where(.fpsj-theme .fpsj-v3-tool-card__media--image) {
    min-height:150px;
    margin:.3rem 0 0;
  }
}


/* v0.4.50: keep hover hit-testing continuous between dropdown levels. */
:where(.fpsj-theme .fpsj-category-navigation--desktop .fpsj-category-menu__item.has-children)::after {
  content:"";
  position:absolute;
  z-index:1199;
  left:0;
  right:0;
  top:100%;
  height:.35rem;
  pointer-events:auto;
}

:where(.fpsj-theme .fpsj-category-navigation--desktop .fpsj-category-menu__submenu .fpsj-category-menu__item.has-children)::after {
  left:100%;
  right:auto;
  top:0;
  width:.35rem;
  height:100%;
}


/* =========================================================
   Front-page template-part assembly bridge / 0.4.54
   ========================================================= */
:where(.fpsj-theme .fpsj-front-v3 > .wp-block-template-part) {
  display:contents;
}

/* Canonical front-page template-part wrapper bridge — 0.4.62 */
:where(.fpsj-theme .fpsj-front-v4 > .wp-block-template-part){margin:0;}
:where(.fpsj-theme .fpsj-front-v4 > .wp-block-template-part > *){margin-block-start:0;margin-block-end:0;}

/* Hero search public rendering:
 * - user-entered query text stays bright
 * - browser placeholder guidance stays subdued
 */
:where(.fpsj-theme .fpsj-front-hero__search input.wp-block-search__input) {
  color:#eef5ff!important;
  -webkit-text-fill-color:#eef5ff!important;
}
:where(.fpsj-theme .fpsj-front-hero__search input.wp-block-search__input::placeholder) {
  color:#63758d!important;
  -webkit-text-fill-color:#63758d!important;
  opacity:1!important;
}
:where(.fpsj-theme .fpsj-front-hero__search input.wp-block-search__input::-webkit-input-placeholder) {
  color:#63758d!important;
  -webkit-text-fill-color:#63758d!important;
  opacity:1!important;
}
:where(.fpsj-theme .fpsj-front-hero__search input.wp-block-search__input::-moz-placeholder) {
  color:#63758d!important;
  opacity:1!important;
}

/* Hero search button — restored subdued integrated appearance. */
:where(.fpsj-theme .fpsj-front-hero__search .wp-block-search__button) {
  min-width:58px;
  padding-inline:.9rem;
  display:grid;
  place-items:center;
  margin:0;
  border:0;
  border-radius:9px;
  background:rgba(13,27,47,.88)!important;
  color:#b7c6da!important;
  box-shadow:none!important;
  font-weight:700;
}
:where(.fpsj-theme .fpsj-front-hero__search .wp-block-search__button:hover) {
  background:rgba(13,27,47,.96)!important;
  color:#e8f1ff!important;
}
:where(.fpsj-theme .fpsj-front-hero__search .wp-block-search__button svg) {
  width:18px;
  height:18px;
  fill:currentColor;
}

/* Quick Access — compact navigation grid */
:where(.fpsj-theme .fpsj-front-quick-access) {
  padding:1rem 0 3rem;
  background:#050b14;
}
:where(.fpsj-theme .fpsj-front-access-shell) {
  width:min(1040px,calc(100% - 2rem));
  max-width:1040px;
  margin-inline:auto;
}
:where(.fpsj-theme .fpsj-front-access-grid) {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.7rem;
}
:where(.fpsj-theme .fpsj-front-card--access) {
  position:relative;
  min-height:108px;
  padding:.9rem .95rem .85rem;
  border:1px solid rgba(66,103,157,.28);
  border-radius:11px;
  background:linear-gradient(145deg,#0a1525,#08111e);
  overflow:hidden;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
:where(.fpsj-theme .fpsj-front-card--access:hover) {
  transform:translateY(-2px);
  border-color:rgba(49,215,255,.44);
  background:linear-gradient(145deg,#0d1b2e,#091522);
}
:where(.fpsj-theme .fpsj-front-card--access .fpsj-front-card__label) {
  display:block;
  margin-bottom:.48rem;
  color:#738cac;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.56rem;
  letter-spacing:.09em;
}
:where(.fpsj-theme .fpsj-front-card--access strong) {
  display:block;
  color:#f4f8ff;
  font-size:.98rem;
  line-height:1.3;
}
:where(.fpsj-theme .fpsj-front-card--access small) {
  display:block;
  max-width:88%;
  margin-top:.26rem;
  color:#7f92ae;
  font-size:.64rem;
  line-height:1.45;
}
:where(.fpsj-theme .fpsj-front-card--access b) {
  position:absolute;
  right:.78rem;
  top:.76rem;
  color:#5e7698;
  font-size:.88rem;
}
@media (max-width:1050px) {
  :where(.fpsj-theme .fpsj-front-access-grid) {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:640px) {
  :where(.fpsj-theme .fpsj-front-quick-access) {
    padding-top:.8rem;
    padding-bottom:2.35rem;
  }
  :where(.fpsj-theme .fpsj-front-access-shell) {
    width:min(1040px,calc(100% - 1rem));
  }
  :where(.fpsj-theme .fpsj-front-access-grid) {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.55rem;
  }
  :where(.fpsj-theme .fpsj-front-card--access) {
    min-height:100px;
    padding:.82rem .8rem .78rem;
  }
  :where(.fpsj-theme .fpsj-front-access-grid > :last-child:nth-child(odd)) {
    grid-column:1 / -1;
  }
}

/* Quick Access live count */
:where(.fpsj-theme .fpsj-front-card--access .fpsj-front-card__title-row) {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:.45rem;
  min-width:0;
}
:where(.fpsj-theme .fpsj-front-card--access .fpsj-front-card__title-row strong) {
  min-width:0;
}
:where(.fpsj-theme .fpsj-front-card--access .fpsj-front-card__count) {
  flex:0 0 auto;
  color:#c9d7ea;
  font-size:1.04rem;
  font-weight:850;
  line-height:1;
  letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;
}
