/* NPC CATALOG is Barracks DETAILED, not a separate card design. */
#page-npc-catalog{width:100%;max-width:none}
.npc-catalog-page-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:22px}
#npc-catalog-close{font-size:.78rem;padding:11px 16px;white-space:nowrap}
.npc-catalog-sector{margin:0 0 34px}
/* Compact Barracks-style faction filters. ALL is selected by default. */
.npc-catalog-filters{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:0 0 23px}
.npc-catalog-filter{padding:8px 12px;min-height:34px;border:1px solid #2e6650;background:#082016;color:#b8ddc6;font-size:.73rem;font-weight:800;letter-spacing:.035em;cursor:pointer}
.npc-catalog-filter:hover{border-color:#65c492;background:#123b29;color:#ecffef}
.npc-catalog-filter.is-active{background:#145437;color:#9cffbb;border-color:#57c78e}
.npc-catalog-filter:focus-visible{outline:2px solid #9cffbb;outline-offset:2px}
.npc-catalog-faction{margin:0 0 26px}
.npc-catalog-faction>h4{margin:0 0 13px;color:#b1f9cb;letter-spacing:.075em;font-size:.86rem;font-weight:900}
.npc-catalog-faction>h4 small{font-size:.69rem;color:#8fbfa5;font-weight:600;letter-spacing:0}
.npc-catalog-sector>h3{color:#91ffc0;font-size:1.13rem;letter-spacing:.08em;margin:0 0 17px;border-bottom:1px solid #2b6044;padding-bottom:13px}
.npc-catalog-sector>h3 small{font-size:.78rem;color:#a0bbaa;letter-spacing:0}
/* Same four-column desktop grid and responsive breakpoints as #unit-cards. */
#npc-catalog-list .npc-catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
/* Every card inherits .unit-card global styling from Barracks. */
#npc-catalog-list .unit-card{min-width:0;display:flex;flex-direction:column}
#npc-catalog-list .unit-top{display:grid;justify-items:center;text-align:center;gap:8px}
#npc-catalog-list .unit-top>div:last-child{width:100%}
#npc-catalog-list .unit-mark{width:min(200px,70%);height:auto;aspect-ratio:1;max-width:100%;font-size:2.6rem;border:0;background:transparent}
#npc-catalog-list .unit-mark.has-preview>.pawn-preview{position:absolute;inset:0}
#npc-catalog-list .pawn-preview-idle{transform-origin:50% 96%;animation:pawn-preview-breathe 3.7s ease-in-out infinite;animation-delay:var(--idle-delay,0s)}
#npc-catalog-list .unit-lore{min-height:3em}
#npc-catalog-list .npc-weapon-name{color:var(--muted);font-size:.65rem;font-weight:700;margin:0 0 12px;letter-spacing:.025em}
#npc-catalog-list .unit-stats{grid-auto-rows:minmax(62px,auto);margin-bottom:6px}
#npc-catalog-list .unit-stats-ranged{grid-template-columns:repeat(4,minmax(0,1fr))}
/* The game's Barracks DETAILED secondary stats use two columns. */
#npc-catalog-list .unit-secondary-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-bottom:9px}
#npc-catalog-list .unit-secondary-stats>div{display:grid;align-content:start;gap:5px;min-width:0;min-height:46px;padding:6px;border:1px solid var(--line);background:#06180e}
#npc-catalog-list .unit-secondary-stats span{color:var(--muted);font-size:.52rem;line-height:1.3}
#npc-catalog-list .unit-secondary-stats strong{color:var(--text);font-size:.72rem;line-height:1.3;font-variant-numeric:tabular-nums}
#npc-catalog-list .unit-ripper-chances{margin:0 0 17px;color:var(--gold);font-size:.62rem;line-height:1.5}
#npc-catalog-list .unit-ability-list{display:grid;gap:2px;margin:0 0 12px}
#npc-catalog-list .unit-ability-row{color:var(--gold);font-size:.62rem;line-height:1.5}
#npc-catalog-list .unit-ability-row strong{font-weight:750}
@media(max-width:1499px){#npc-catalog-list .npc-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1199px){#npc-catalog-list .npc-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){#npc-catalog-list .npc-catalog-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:400px){#npc-catalog-list .unit-stats-ranged strong{font-size:.76rem;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){#npc-catalog-list .pawn-preview-idle{animation:none}}

/* Active season: a simpler counterpart to the Team Wars sector panel. */
#page-battle .captains-season-panel{position:relative;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:22px;min-height:146px;margin:0 0 22px;padding:25px 28px;border:1px solid #356e4d;background-color:#092319;background-image:linear-gradient(90deg,rgba(3,22,13,.91),rgba(5,27,17,.66) 57%,rgba(5,27,17,.60)),url('./assets/sectors/sector_garbage_plains.png');background-size:cover;background-position:center 52%}
.captains-season-content{position:relative;z-index:1}
.captains-season-eyebrow{font-size:.75rem;letter-spacing:.09em;color:#8ffbb7;font-weight:900}
.captains-season-panel h2{margin:8px 0;font-size:clamp(1.25rem,2.3vw,1.8rem);color:#d9ffe3;text-shadow:0 2px 5px #000}
.captains-season-panel p{font-size:.8rem;color:#e0ebdb;margin:0;line-height:1.5;text-shadow:0 2px 4px #000}
#npc-catalog-open{position:relative;z-index:1;white-space:nowrap;border:1px solid #58ae75;background:#0d3926;color:#c4ffd7;padding:12px 19px;cursor:pointer;font-size:.82rem;font-weight:900}
#npc-catalog-open:hover{background:#17643b;border-color:#88ffc0}

@media(max-width:780px){.captains-season-panel{padding:20px}}
@media(max-width:520px){#page-battle .captains-season-panel{padding:17px;gap:14px}}
