/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, 150px);
  gap: 8px;
  justify-content: center;
}
.cards.sm {
  grid-template-columns: repeat(auto-fill, 128px);
}
.card {
  position: relative;
  padding: 0;
  background: var(--panel2);
  border: var(--px) solid var(--tc);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  overflow: hidden;
  box-shadow: var(--px) var(--px) 0 var(--lo);
}
.card.mania {
  box-shadow:
    0 0 0 var(--px) var(--gold),
    var(--px) var(--px) 0 var(--lo);
}
.card.sel {
  outline: var(--px) solid var(--gold);
  outline-offset: var(--px);
}
.card.dim {
  opacity: 0.4;
  cursor: not-allowed;
}
.card.used {
  opacity: 0.35;
}
.card .art {
  position: relative;
  height: 76px;
  background: var(--tc);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.card .art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.35) 0 var(--px),
      transparent var(--px) calc(var(--px) * 2)
    ),
    linear-gradient(180deg, rgba(26, 28, 44, 0.6), rgba(26, 28, 44, 0.15));
}
.card .art img {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: -2px;
}
.card .lvl {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--lo);
  color: #fff;
  font-family: var(--f-cond);
  font-size: 16px;
  line-height: 16px;
  padding: 0 4px;
  z-index: 1;
}
.card .pro {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
}
.card .al {
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 1;
}
.card .tag {
  position: absolute;
  bottom: 6px;
  left: 4px;
  z-index: 1;
  background: var(--sc, var(--gold));
  color: #1a1c2c;
  font-family: var(--f-cond);
  font-size: 16px;
  line-height: 16px;
  padding: 0 4px;
  text-transform: uppercase;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card.tiny .tag {
  bottom: 4px;
}
.card .nm {
  font-family: var(--f-cond);
  font-size: 16px;
  line-height: 16px;
  text-transform: uppercase;
  padding: 6px 6px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .ribbon {
  background: var(--tc);
  color: #fff;
  font-family: var(--f-cond);
  font-size: 16px;
  line-height: 16px;
  text-transform: uppercase;
  text-align: center;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card.mania .ribbon {
  color: var(--gold);
}
.card .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 6px;
  padding: 6px 6px 2px;
  font-family: var(--f-cond);
  font-size: 16px;
  line-height: 16px;
}
.card .stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.card .stats i {
  width: 10px;
  height: 10px;
  flex: none;
  display: inline-block;
  box-shadow: inset var(--px) var(--px) 0 rgba(255, 255, 255, 0.35);
}
.card .stats b {
  color: var(--fg);
  font-weight: 400;
}
.card .stats .hot b {
  color: var(--gold);
}
.card .stats .s0 i {
  background: var(--pow);
}
.card .stats .s1 i {
  background: var(--tgh);
}
.card .stats .s2 i {
  background: var(--spd);
}
.card .stats .s3 i {
  background: var(--cha);
}
.card .sig {
  font-size: 16px;
  line-height: 16px;
  color: var(--muted);
  padding: 2px 6px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card .lvlbar {
  height: 6px;
  background: var(--lo);
  margin: 4px 6px 0;
}
.card .lvlbar i {
  display: block;
  height: 100%;
  background: var(--gold);
}
.card.support .art {
  height: 56px;
}
.card.support .art img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}
.card.support .stats {
  grid-template-columns: 1fr;
}
.card.tiny .art {
  height: 48px;
}
.card.tiny .art img {
  margin-bottom: -18px;
}
.card.tiny .nm {
  padding: 4px 5px 2px;
}
.card.tiny .stats {
  padding: 4px 5px 2px;
}
.card.tiny .sig,
.card.tiny .lvlbar {
  display: none;
}
.card.tiny .al {
  bottom: 4px;
  right: 4px;
}
.al {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--lo);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 var(--px) var(--lo);
}
.al i {
  position: absolute;
  inset: 0;
  background: var(--ac);
}
.al.L i {
  right: 50%;
}
.al.R i {
  left: 50%;
}
.al.U i {
  bottom: 50%;
}
.al.D i {
  top: 50%;
}
.al.b {
  --ac: var(--rope-blue);
}
.al.y {
  --ac: #ffcd75;
}
.badge {
  display: inline-block;
  font-family: var(--f-cond);
  font-size: 16px;
  line-height: 16px;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--panel2);
  border: var(--px) solid var(--line);
}
.badge.gold {
  background: var(--gold);
  color: #1a1c2c;
  border-color: var(--gold2);
}
.badge.t {
  color: #fff;
  border-color: transparent;
  background: var(--tc);
}
.badge.st0 {
  border-color: var(--pow);
  color: #fff;
  background: var(--pow);
}
.badge.st1 {
  border-color: var(--tgh);
  color: #1a1c2c;
  background: var(--tgh);
}
.badge.st2 {
  border-color: var(--spd);
  color: #1a1c2c;
  background: var(--spd);
}
.badge.st3 {
  border-color: var(--cha);
  color: #1a1c2c;
  background: var(--cha);
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, 150px);
  gap: 8px;
  justify-content: center;
}
.slot {
  border: var(--px) dashed var(--line);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--f-cond);
  text-transform: uppercase;
  font-size: 16px;
  cursor: pointer;
  background: var(--bg2);
}
.slot.filled {
  border: none;
  padding: 0;
  min-height: 0;
  display: block;
}
