/* PokePolis TCG — Unified set modal & listing 1.4.0.
   Scoped overrides for previously generated and new set pages. */
.pp-tcg-page .pp-tcg-card-zoom-hint,
.pp-tcg-page .pp-tcg-card-overlay,
.pp-tcg-featured-card .pp-tcg-card-zoom-hint,
.pp-tcg-featured-card .pp-tcg-card-overlay {display:none!important}
.pp-tcg-page .pp-tcg-featured-card,.pp-tcg-grid-card[data-card-key],#pp-tcg-table-body tr[data-card-key]{cursor:pointer}
.pp-tcg-featured-card:focus-visible,.pp-tcg-grid-card:focus-visible,#pp-tcg-table-body tr:focus-visible{outline:3px solid #0f766e;outline-offset:3px}
.pp-tcg-table-tools .pp-tcg-view-toggle{min-height:38px;transition:background-color .15s,border-color .15s}
.pp-tcg-table-tools .pp-tcg-view-toggle[aria-pressed=true]{background:#f0fdfa;color:#0f766e;border-color:#0f766e}
#pp-tcg-modal.pkp-tcg-unified.open{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow-y:auto!important;padding:clamp(8px,3vh,24px)!important;background:rgba(15,23,42,.75)!important;overscroll-behavior:contain}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-card{width:min(1050px,100%)!important;max-height:min(92dvh,970px)!important;background:#fff;border-radius:24px!important;overflow:hidden!important;position:relative!important;margin:auto!important;box-shadow:0 28px 85px rgba(0,0,0,.28)}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-grid{display:grid!important;grid-template-columns:minmax(220px,300px) minmax(0,1fr)!important;align-items:stretch;min-height:0;max-height:min(92dvh,970px)}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-media{background:linear-gradient(145deg,#e9f7f2,#dce9f6);padding:30px 24px;min-height:0;overflow-y:auto;display:flex;align-items:flex-start;justify-content:center}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-media img{width:min(100%,255px);height:auto;max-height:none;object-fit:contain;position:sticky;top:8px;border-radius:12px;box-shadow:0 12px 30px rgba(18,37,60,.17)}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-body{box-sizing:border-box;min-width:0;max-height:min(92dvh,970px)!important;overflow:auto!important;padding:28px 30px 34px!important;scrollbar-width:thin}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-header{padding-right:35px;gap:10px;align-items:flex-start}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-header h3{font-size:clamp(19px,2vw,24px);font-weight:850;line-height:1.25;color:#15213e;margin-bottom:5px}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-price{font-size:clamp(19px,2.1vw,28px);color:#087d66;white-space:nowrap}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-close{width:39px;height:39px;border-radius:50%;z-index:12;top:14px;right:14px;box-shadow:0 1px 3px rgba(0,0,0,.1)}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-close:focus-visible{outline:3px solid #0f766e;outline-offset:3px}
#pp-tcg-modal.pkp-tcg-unified .pkp-tcg14-badges{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 2px}
#pp-tcg-modal.pkp-tcg-unified .pkp-tcg14-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;color:#096e63;background:#e6f5f0;border:1px solid #ceede1;font-size:11px;font-weight:750}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-links .pp-tcg-btn{min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;padding:9px 8px;border-radius:10px;text-decoration:none;font-weight:800;font-size:13px}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;min-width:0}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-cols--single{grid-template-columns:1fr}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-col-prices,#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-col-card{min-width:0}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-col-card{border-left:1px solid #e2e8f0;padding-left:18px}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-cols--single .pp-tcg-modal-col-prices{max-width:100%}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-section-title{font-size:11px;font-weight:850;letter-spacing:.06em;color:#68778c;margin:14px 0 8px}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-price-grid{border:1px solid #dce5f0;border-radius:12px;padding:12px;margin-bottom:8px}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-price-cells{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-price-cell{min-width:0;white-space:normal;overflow-wrap:anywhere}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-price-cell span{font-size:11px;display:block;color:#68778c}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-price-cell strong{font-size:13px;display:block;color:#15213e}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-stat-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;border-bottom:1px solid #e6edf5;padding:8px 0;font-size:12px}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-stat-row strong{text-align:right;overflow-wrap:anywhere}
#pp-tcg-modal.pkp-tcg-unified .pkp-tcg14-legal{display:inline-block;margin:2px;padding:3px 6px;background:#e9f7ee;border-radius:6px;color:#14532d;font-size:11px}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-attack{border-radius:11px;padding:11px 12px;overflow-wrap:anywhere;line-height:1.55}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-attack p{margin:5px 0 0;font-size:13px;white-space:pre-line}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-rules-list{padding-left:20px;line-height:1.6}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-flavor{font-style:italic;color:#64748b;font-size:12px;margin-top:12px}
#pp-tcg-modal.pkp-tcg-unified .pp-tcg-chart-svg{width:100%;height:auto;max-height:105px}
.pp-tcg-value-context{border-color:#d8e9e8}
.pp-tcg-value-context__note{background:#f0fdfa;color:#0f665e;padding:12px 14px;border:1px solid #bee6dc;border-radius:12px;font-size:14px;line-height:1.6}
.pp-tcg-value-context__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.pp-tcg-value-context__stats>div{border:1px solid #dce5f0;background:#f8fbff;border-radius:13px;padding:13px;min-width:0}
.pp-tcg-value-context__stats span{display:block;color:#66758d;font-size:12px;margin-bottom:5px}
.pp-tcg-value-context__stats strong{font-size:clamp(14px,1.7vw,19px);color:#17304b;overflow-wrap:anywhere}
.pp-tcg-value-context__disclaimer{font-size:12px}
@media(max-width:960px){.pp-tcg-value-context__stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-grid{grid-template-columns:minmax(150px,220px) minmax(0,1fr)!important}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-cols{grid-template-columns:1fr}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-col-card{border-left:0;border-top:1px solid #e2e8f0;padding-left:0;padding-top:12px}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-body{padding:22px 17px 30px!important}
}
@media(max-width:580px){
 #pp-tcg-modal.pkp-tcg-unified.open{padding:6px!important;align-items:center!important}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-card{width:100%!important;max-height:96dvh!important;border-radius:17px!important}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-grid{grid-template-columns:1fr!important;max-height:96dvh;overflow:auto}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-media{padding:13px!important;max-height:35dvh;overflow:visible}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-media img{width:auto;max-width:190px;max-height:31dvh;position:static}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-body{max-height:none!important;overflow:visible!important;padding:18px 16px 24px!important}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-header{flex-wrap:wrap;padding-right:38px}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-price{font-size:21px}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-links{grid-template-columns:1fr 1fr}
 #pp-tcg-modal.pkp-tcg-unified .pp-tcg-modal-close{top:9px;right:9px}
 .pp-tcg-value-context__stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.pkp-tcg14-rarity-bar{display:flex;width:100%;height:23px;border-radius:999px;overflow:hidden;background:#eff3f8;margin:16px 0;border:1px solid #dbe4f0}
.pkp-tcg14-rarity-bar span{height:100%;flex:0 0 auto}
.pkp-tcg14-rarity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.pkp-tcg14-rarity-item{display:flex;align-items:center;gap:12px;border:1px solid #dbe4f0;background:#fff;border-radius:13px;padding:12px}
.pkp-tcg14-rarity-item i{display:block;flex:0 0 14px;width:14px;height:14px;border-radius:50%}
.pkp-tcg14-rarity-item strong{display:block;font-size:13px;color:#233b54}
.pkp-tcg14-rarity-item small{display:block;color:#64748b;font-size:12px;margin-top:3px}
