
/* V20.10.28: gacha result typography and cost rebalance */
#collectionGrid .card-meta,
#gachaResults .card-meta,
.v145-dex-grid .card-meta{
  margin-top:6px!important;
  padding-top:6px!important;
  border-top:1px solid rgba(255,255,255,.10);
  letter-spacing:-.02em;
}
#collectionGrid .card-meta strong,
#gachaResults .card-meta strong,
.v145-dex-grid .card-meta strong{
  color:#f7f9ff!important;
  font-weight:950!important;
  line-height:1.18!important;
}
#collectionGrid .card-meta span,
#gachaResults .card-meta span,
.v145-dex-grid .card-meta span{
  color:#98a7ba!important;
  line-height:1.32!important;
  font-weight:750!important;
}
.pmc-card-frame .pmc-age-badge,
.pmc-card-frame .pmc-jersey,
.pmc-card-frame .pmc-year,
.pmc-card-frame .pmc-stat-value,
.pmc-card-frame .pmc-cost-number{
  font-variant-numeric:tabular-nums;
}
.pmc-card-frame .pmc-team-name,
.pmc-card-frame .pmc-name b,
.pmc-card-frame .pmc-name span,
.pmc-card-frame .pmc-type-ribbon,
.pmc-card-frame .pmc-type-tag{
  text-rendering:geometricPrecision;
}

/* Desktop/tablet size modes */
#collectionGrid.v151-collection-grid-small{
  grid-template-columns:repeat(auto-fill,minmax(142px,1fr))!important;
  gap:8px!important;
}
#collectionGrid.v151-collection-grid-normal{
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;
  gap:12px!important;
}
#collectionGrid.v151-collection-grid-large{
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr))!important;
  gap:16px!important;
}
#collectionGrid.v151-collection-grid-small .card-tile{padding:6px!important;}
#collectionGrid.v151-collection-grid-normal .card-tile{padding:9px!important;}
#collectionGrid.v151-collection-grid-large .card-tile{padding:12px!important;}
#collectionGrid.v151-collection-grid-small .card-meta strong{font-size:12px!important;}
#collectionGrid.v151-collection-grid-small .card-meta span{font-size:9px!important;}
#collectionGrid.v151-collection-grid-normal .card-meta strong{font-size:14px!important;}
#collectionGrid.v151-collection-grid-normal .card-meta span{font-size:10px!important;}
#collectionGrid.v151-collection-grid-large .card-meta strong{font-size:17px!important;}
#collectionGrid.v151-collection-grid-large .card-meta span{font-size:12px!important;}

/* Detail card: make the front-side ability rows easier to read without changing collection cards */
:is(#detailArea,#v2097PlayerBody) .pmc-card-frame{
  width:min(320px,92vw)!important;
  max-width:320px!important;
}
:is(#detailArea,#v2097PlayerBody) .pmc-card-frame .pmc-stats{
  padding:.54em .70em .46em!important;
  gap:.10em!important;
}
:is(#detailArea,#v2097PlayerBody) .pmc-card-frame .pmc-stat{
  grid-template-columns:17.5% minmax(0,1fr) 27.5%!important;
  gap:1.6%!important;
}
:is(#detailArea,#v2097PlayerBody) .pmc-card-frame .pmc-stat-label{
  
  letter-spacing:-.025em!important;
}
:is(#detailArea,#v2097PlayerBody) .pmc-card-frame .pmc-stat-track{
  height:68%!important;
  min-height:8px!important;
  border-color:rgba(230,237,247,.74)!important;
}
:is(#detailArea,#v2097PlayerBody) .pmc-card-frame .pmc-stat-value{
  
  gap:.16em!important;
}
:is(#detailArea,#v2097PlayerBody) .pmc-card-frame .pmc-stat-value small{
  font-size:.62em!important;
  min-width:2.45em!important;
}

/* Detailed back-side final stat table */
:is(#detailArea,#v2097PlayerBody) .final-stat-table{
  display:grid!important;
  gap:7px!important;
}
:is(#detailArea,#v2097PlayerBody) .v201027-stat-head,
:is(#detailArea,#v2097PlayerBody) .final-stat-row{
  grid-template-columns:minmax(64px,1fr) 52px 58px 58px!important;
  gap:6px!important;
  align-items:center!important;
}
:is(#detailArea,#v2097PlayerBody) .v201027-stat-head{
  display:grid;
  padding:0 10px 5px;
  color:#7f91a7;
  font-size:10px;
  font-weight:900;
  text-align:center;
}
:is(#detailArea,#v2097PlayerBody) .v201027-stat-head span:first-child{text-align:left;}
:is(#detailArea,#v2097PlayerBody) .final-stat-row{
  min-height:42px!important;
  padding:8px 10px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025))!important;
}
:is(#detailArea,#v2097PlayerBody) .final-stat-row span{
  color:#e8edf5!important;
  font-size:12px!important;
  font-weight:900!important;
  white-space:nowrap;
}
:is(#detailArea,#v2097PlayerBody) .final-stat-row em{
  color:#b5c0cf!important;
  font-size:12px!important;
  font-weight:800!important;
  text-align:center!important;
}
:is(#detailArea,#v2097PlayerBody) .final-stat-row .bonus{
  min-width:44px;
  padding:4px 5px;
  border-radius:999px;
  background:rgba(181,115,255,.12);
  color:#dcadff!important;
  font-size:11px!important;
  font-weight:950!important;
  text-align:center!important;
}
:is(#detailArea,#v2097PlayerBody) .final-stat-row b{
  min-width:48px;
  padding:5px 7px;
  border-radius:8px;
  background:rgba(0,0,0,.28);
  font-size:16px!important;
  font-weight:1000!important;
  line-height:1!important;
  text-align:center!important;
}

@media(max-width:760px){
  /* Real mobile size modes: 3 / 2 / 1 columns */
  #collectionGrid.v151-collection-grid-small{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:4px!important;
  }
  #collectionGrid.v151-collection-grid-normal{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  #collectionGrid.v151-collection-grid-large{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
  }
  #collectionGrid.v151-collection-grid-large .card-tile{
    width:min(100%,360px)!important;
    margin-inline:auto!important;
  }
  #collectionGrid.v151-collection-grid-small .card-tile{padding:2px!important;border-radius:6px!important;}
  #collectionGrid.v151-collection-grid-normal .card-tile{padding:5px!important;border-radius:8px!important;}
  #collectionGrid.v151-collection-grid-large .card-tile{padding:10px!important;border-radius:12px!important;}

  #collectionGrid.v151-collection-grid-small .card-meta{
    min-height:25px!important;
    margin-top:2px!important;
    padding-top:3px!important;
  }
  #collectionGrid.v151-collection-grid-small .card-meta strong{
    font-size:9px!important;
    line-height:1.12!important;
  }
  #collectionGrid.v151-collection-grid-small .card-meta span{display:none!important;}
  #collectionGrid.v151-collection-grid-small .pmc-stat-value small{display:none!important;}
  #collectionGrid.v151-collection-grid-small .pmc-stat{
    grid-template-columns:17% minmax(0,1fr) 20%!important;
    gap:.8%!important;
  }
  #collectionGrid.v151-collection-grid-small .pmc-stat-label{font-size:.68em!important;}
  #collectionGrid.v151-collection-grid-small .pmc-stat-value{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    font-size:.80em!important;
  }

  #collectionGrid.v151-collection-grid-normal .card-meta strong{font-size:12px!important;}
  #collectionGrid.v151-collection-grid-normal .card-meta span{font-size:8.5px!important;}
  #collectionGrid.v151-collection-grid-large .card-meta strong{font-size:17px!important;}
  #collectionGrid.v151-collection-grid-large .card-meta span{font-size:11px!important;}
  #collectionGrid.v151-collection-grid-large .pmc-stat-value{
    flex-direction:row!important;
    align-items:baseline!important;
    gap:.18em!important;
    font-size:1.02em!important;
    line-height:1!important;
  }
  #collectionGrid.v151-collection-grid-large .pmc-stat-value small{
    display:inline!important;
    font-size:.62em!important;
  }

  .v151-size-toggle [data-v151-size]::after{
    display:block;
    margin-top:2px;
    color:#a9b5c5;
    font-size:8px;
    font-weight:800;
    line-height:1;
  }
  .v151-size-toggle [data-v151-size="small"]::after{content:"3열";}
  .v151-size-toggle [data-v151-size="normal"]::after{content:"2열";}
  .v151-size-toggle [data-v151-size="large"]::after{content:"1열";}
  .v151-size-toggle button.active::after{color:#ffe39b;}

  :is(#detailArea,#v2097PlayerBody) .pmc-card-frame{
    width:min(318px,90vw)!important;
  }
  :is(#detailArea,#v2097PlayerBody) .v201027-stat-head,
  :is(#detailArea,#v2097PlayerBody) .final-stat-row{
    grid-template-columns:minmax(58px,1fr) 48px 54px 54px!important;
    gap:4px!important;
  }
  :is(#detailArea,#v2097PlayerBody) .v201027-stat-head{padding-inline:7px;font-size:9px;}
  :is(#detailArea,#v2097PlayerBody) .final-stat-row{padding:7px!important;}
  :is(#detailArea,#v2097PlayerBody) .final-stat-row span{font-size:11px!important;}
  :is(#detailArea,#v2097PlayerBody) .final-stat-row em{font-size:11px!important;}
  :is(#detailArea,#v2097PlayerBody) .final-stat-row .bonus{font-size:10px!important;padding:4px 3px;}
  :is(#detailArea,#v2097PlayerBody) .final-stat-row b{font-size:15px!important;padding:5px 4px;}
}
@media(max-width:370px){
  #collectionGrid.v151-collection-grid-small{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px!important;}
  #collectionGrid.v151-collection-grid-small .pmc-stat-label{font-size:.62em!important;}
  #collectionGrid.v151-collection-grid-small .pmc-stat-value{font-size:.74em!important;}
  :is(#detailArea,#v2097PlayerBody) .v201027-stat-head,
  :is(#detailArea,#v2097PlayerBody) .final-stat-row{grid-template-columns:minmax(54px,1fr) 43px 49px 49px!important;}
}
