/* A single board keeps every type and its equipped state in view. */
#app:has(.ps-board) #summary{display:none}
#screen:has(.ps-board){padding-top:12px;gap:10px}
.ps-counts{display:flex;align-items:center;gap:14px;font-size:12px;color:#436344}
.ps-counts b{font-size:18px;font-weight:700}
.ps-counts .plus-count{color:#876117}
.ps-board{min-height:0;flex:1;display:grid;grid-template-rows:repeat(6,minmax(0,1fr));gap:6px}
.ps-type-row{display:grid;grid-template-columns:97px minmax(0,1fr);align-items:stretch;gap:10px;border-bottom:1px solid #dfd8c6;padding-bottom:6px;min-height:0}
.ps-type-row h3{font-size:20px;align-self:center;line-height:1.05}
.ps-type-row h3 small{display:block;font:500 11px 'DM Sans';margin-top:5px;color:#777966}
.ps-gk-short{display:none}
.ps-type-tiles{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;align-items:stretch;min-height:0}
.ps-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;gap:5px;padding:5px 3px;border:1px solid #d5d3c8;background:#edece5;color:#737469;border-radius:6px}
.ps-tile .ps-icon{width:clamp(24px,2.6vw,36px);height:clamp(24px,2.6vw,36px);object-fit:contain;filter:grayscale(1);opacity:.7}
.ps-tile>span{font:600 12px 'DM Sans';line-height:1.13;text-align:center}
.ps-tile.standard{background:#e0efdc;color:#245b33;border-color:#71a17a}
.ps-tile.standard .ps-icon,.ps-inspector.standard .ps-icon{filter:sepia(1) saturate(2.5) hue-rotate(65deg);opacity:1}
.ps-tile.plus{background:linear-gradient(135deg,#fff3c0,#e1c46b);color:#654809;border-color:#a87e22}
.ps-tile.plus .ps-icon{filter:none;opacity:1;filter:drop-shadow(0 1px 1px #64461255)}
.ps-tile.focused{outline:2px solid #303c2a;outline-offset:1px}
.ps-tile:hover{background:#f8f6ee;border-color:#647456}
.ps-tile.standard:hover{background:#cfe5cc}.ps-tile.plus:hover{background:#eed589}
.ps-check{position:absolute;top:3px;right:4px;font-size:13px;line-height:1;color:inherit}
.ps-inspector{flex-shrink:0;background:#f1eee4;border:1px solid #d5cdb7;border-radius:7px;padding:9px 12px}
.ps-focus-title{display:flex;align-items:center;gap:10px}
.ps-focus-title>.ps-icon{width:34px;height:34px;object-fit:contain}
.ps-focus-title h3{font-size:24px;line-height:1.1}
.ps-focus-title>div>span{display:block;font-size:11px;color:#66705c;margin-top:2px}
.ps-focus-title button{margin-left:auto;font-size:12px;padding:8px 12px}
.ps-inspector.standard{border-color:#71a17a}.ps-inspector.plus{border-color:#b7953f}
.ps-requirements{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:6px}
.ps-requirements .req-line{display:flex;gap:10px;font-size:12px;padding:0;min-width:130px}
.ps-requirements .req-line b{margin-left:auto}
.ps-requirements .req-line.met{color:#287046}
.ps-focus-title button:disabled{opacity:.8;background:#e7e3d7;color:#5d6054}
/* Keep artwork in its own aspect ratio. Badges sit beside the portrait. */
.mini-card{aspect-ratio:576/800}
.mini-card .portrait{left:0;top:0;width:100%;height:100%;mask-image:linear-gradient(#000 57%,transparent 71%)}
.mini-card .portrait.headshot{left:24%;top:22%;width:65%;height:44%;mask-image:linear-gradient(#000 78%,transparent)}
.pro-card .pro-portrait.full-canvas{left:0;top:0;width:100%;height:100%;mask-image:linear-gradient(#000 54%,transparent 66%)}
.mini-card .rating{left:14%;top:22%;font-size:16cqw}
.mini-card .rating small{font-size:6.5cqw;margin-top:2cqw}
.mini-card .name{top:65%;left:10%;right:10%;font-size:9cqw;line-height:1.1}
.mini-card .name.long{font-size:7.5cqw}
.mini-card .face{top:75%;left:12%;right:12%;font-size:4.1cqw;line-height:1.2}
.mini-card .face b{font-size:8cqw;line-height:1.1}
.picked-card-plus{position:absolute;z-index:3;left:8%;top:42%;display:flex;flex-direction:column;gap:1.4cqw;max-height:29%;flex-wrap:wrap}
.picked-plus-badge{display:grid;place-items:center;width:11cqw;height:11cqw;background:#44381f;clip-path:polygon(25% 0,75% 0,100% 25%,100% 70%,50% 100%,0 70%,0 25%)}
.picked-plus-badge .ps-icon{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 1px #35270a)}
.pro-card .card-plus{left:8%;top:43%;gap:1.5cqw}
.pro-card .card-plus .card-playstyle{width:10cqw;height:10cqw}
.detail-main .ps-set>span{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:5px;background:#e0efdc;color:#245b33;border:1px solid #91ad8d;font-size:12px}
.detail-main .ps-set>span.is-plus{background:#f3e1a0;border-color:#b7953f;color:#654809}
@media(max-width:1100px) and (min-width:761px){.ps-type-row{grid-template-columns:75px 1fr;gap:7px}.ps-type-row h3{font-size:18px}.ps-type-tiles{gap:4px}.ps-tile>span{font-size:10px}.ps-tile .ps-icon{width:28px;height:28px}.ps-counts{gap:8px;font-size:10px}.ps-counts b{font-size:16px}}
@media(max-width:760px){
  #app:has(.ps-board) #mobileIdentity{display:none}
  #screen:has(.ps-board){padding-top:4px;gap:6px}
  #screen:has(.ps-board) .screen-head{gap:4px}
  #screen:has(.ps-board) .screen-head h2{font-size:23px}
  .ps-counts{gap:7px;font-size:10px;white-space:nowrap}.ps-counts b{font-size:14px}
  .ps-board{gap:4px}.ps-type-row{grid-template-columns:1fr;grid-template-rows:17px minmax(0,1fr);gap:3px;padding-bottom:4px}
  .ps-type-row h3{display:flex;align-items:center;justify-content:space-between;font-size:17px}.ps-type-row h3 small{font-size:10px;margin:0}
  .ps-type-tiles{gap:4px}.ps-tile{padding:2px;gap:0}.ps-tile .ps-icon{width:28px;height:28px;max-width:100%}.ps-tile>span{display:none}.ps-check{top:1px;right:2px;font-size:11px}
  .ps-inspector{padding:7px 8px}.ps-focus-title{gap:7px}.ps-focus-title>.ps-icon{width:28px;height:28px}.ps-focus-title h3{font-size:21px}.ps-focus-title>div>span{font-size:10px}.ps-focus-title button{font-size:11px;padding:7px;max-width:112px}
  .ps-requirements{gap:3px 10px;margin-top:5px}.ps-requirements .req-line{min-width:0;font-size:11px;gap:6px}.ps-requirements>span{font-size:10px}
  .detail-main .ps-set>span{padding:4px;font-size:10px}
}
@media(max-width:760px) and (min-height:740px){.ps-tile .ps-icon{width:32px;height:32px}.ps-type-row h3{font-size:19px}}
@media(max-height:600px){.ps-type-row h3{font-size:16px}.ps-tile>span{display:none}.ps-tile .ps-icon{width:26px;height:26px}.ps-inspector{padding:6px 9px}.ps-focus-title h3{font-size:20px}.ps-focus-title>.ps-icon{width:27px;height:27px}.ps-focus-title button{padding:5px 8px}.ps-counts{gap:7px;font-size:10px}.ps-counts b{font-size:14px}}
@media(min-width:761px) and (max-height:500px){.ps-board{gap:3px}.ps-type-row{padding-bottom:3px}.ps-tile{padding:1px}.ps-tile .ps-icon{width:23px;height:23px}.ps-inspector{display:flex;align-items:center;gap:14px}.ps-focus-title{flex:1}.ps-requirements{margin:0;max-width:40%;font-size:10px}.ps-requirements .req-line{font-size:10px;min-width:0}}
@media(max-width:760px) and (max-height:650px){.ps-type-row{grid-template-columns:53px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:4px}.ps-type-row h3{display:block;font-size:14px;overflow-wrap:anywhere}.ps-type-row h3 small{display:block;font-size:9px;margin-top:2px}.ps-type-tiles{gap:2px}.ps-tile{padding:2px 0}.ps-tile .ps-icon{width:23px;height:23px}.ps-check{font-size:9px;right:0}.ps-requirements .req-line{line-height:1.2}}
@media(max-width:760px) and (max-height:650px){.ps-goalkeeping{display:none}.ps-gk-short{display:inline}}
@media(min-width:761px) and (max-height:500px){#screen:has(.ps-board){padding-top:3px;gap:5px}#screen:has(.ps-board) .screen-head{min-height:25px}.ps-type-row{grid-template-rows:minmax(0,1fr)}.ps-type-row h3{font-size:15px}.ps-type-row h3 small{display:none}.ps-tile .ps-icon{width:20px;height:20px;max-height:100%}.ps-focus-title>div>span{font-size:9px}.ps-inspector{padding:5px 8px}}
