/* Misc tab (mc-*), two columns: Bans (your lobbies against the typical ban rate; the rows are bans-chart.css) above the
   pings you used and your fist bumps; skillshots above spells cast by champion and by slot. Every panel is as tall as
   its content; the last panel of each column takes up the difference so both columns end together. Lists scroll
   inside their panels. */

.mc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.mc-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.mc-bans,
.mc-casts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mc-col > :last-child {
  flex: 1 1 auto;
}

.mc-list {
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.mc-ban-list {
  max-height: max(320px, calc(100vh - 540px));
}

.mc-cast-list {
  max-height: max(260px, calc(100vh - 780px));
}

/* ---------- Bans ---------- */

.mc-ban-key {
  margin: 4px 0 8px;
}

.mc-foot {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--j-line);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--j-dim);
}

/* ---------- Skillshots ---------- */

.mc-skill__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
}

.mc-skill__pair > div {
  display: grid;
  gap: 4px;
}

.mc-skill__pair > div + div {
  border-left: 1px solid var(--j-line-divider);
}

.mc-skill__label {
  font-size: 10px;
  letter-spacing: var(--j-track-meta);
  text-transform: uppercase;
}

.mc-skill__label.is-dodged { color: var(--j-ember-250); }
.mc-skill__label.is-landed { color: var(--j-gold-300); }

.mc-skill__pair b {
  font-family: var(--j-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--j-gold-50);
}

.mc-skill__pair small {
  font-size: 10px;
  letter-spacing: var(--j-track-label);
  text-transform: uppercase;
  color: var(--j-dim);
}

.mc-skill__ratio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--j-line);
  font-size: 10px;
  letter-spacing: var(--j-track-label);
  text-transform: uppercase;
  color: var(--j-muted);
}

.mc-skill__ratio b {
  font-family: var(--j-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--j-gold-100);
}

/* ---------- Pings and fist bumps ---------- */

.mc-ping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.mc-ping {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 6px 8px;
  border: 1px solid rgba(var(--j-gold-rgb), 0.12);
  background: rgba(var(--j-ink-rgb), 0.35);
  transition: border-color var(--j-dur) var(--j-ease-out), transform var(--j-dur) var(--j-ease-out);
  animation: j-pop 0.45s var(--j-ease-pop) backwards;
  animation-delay: var(--d, 0s);
}

.mc-ping:hover {
  border-color: rgba(var(--j-gold-rgb), 0.45);
  transform: translateY(-3px);
}

.mc-ping img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.mc-ping b {
  font-family: var(--j-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--j-gold-50);
}

.mc-ping span {
  font-size: 9px;
  letter-spacing: var(--j-track-label);
  text-transform: uppercase;
  color: var(--j-muted);
  text-align: center;
}

.mc-bump {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--j-gold-rgb), 0.12);
  background: rgba(var(--j-ink-rgb), 0.35);
}

.mc-ping-grid + .mc-bump {
  margin-top: 10px;
}

.mc-bump__icon {
  flex: none;
  width: 52px;
  height: 52px;
  margin: -6px 0;
  object-fit: contain;
}

.mc-bump__stat {
  display: grid;
  gap: 2px;
  padding-right: 14px;
  border-right: 1px solid var(--j-line-divider);
}

.mc-bump__stat b {
  font-family: var(--j-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--j-gold-50);
}

.mc-bump__stat span,
.mc-bump__buddy small,
.mc-bump__buddy span {
  font-size: 9px;
  letter-spacing: var(--j-track-label);
  text-transform: uppercase;
  color: var(--j-muted);
}

.mc-bump__stat:last-child {
  padding-right: 0;
  border-right: 0;
}

.mc-bump__buddy {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid rgba(var(--j-gold-rgb), 0.28);
  background: rgba(var(--j-gold-rgb), 0.06);
  color: inherit;
  text-align: right;
  text-decoration: none;
  transition: transform 0.2s var(--j-ease);
}

.mc-bump__buddy:hover {
  border-color: rgba(var(--j-gold-rgb), 0.6);
  transform: translateY(-2px);
}

.mc-bump__buddy b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  color: var(--j-gold-100);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- Spells cast ---------- */

.mc-slot-key {
  display: inline-flex;
  gap: 10px;
  margin-left: auto;
}

.mc-slot-key span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mc-slot-key i {
  width: 7px;
  height: 7px;
}

.mc-cast {
  display: grid;
  grid-template-columns: minmax(100px, 130px) minmax(60px, 1fr) 54px;
  align-items: center;
  column-gap: 12px;
  min-height: 40px;
  padding: 2px 8px;
  animation: kt-row-in 0.45s var(--j-ease) backwards;
  animation-delay: var(--d, 0s);
}

.mc-cast__champ {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mc-cast__champ > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mc-cast__champ b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 400;
  color: var(--j-text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mc-cast__champ small {
  font-size: 9px;
  letter-spacing: var(--j-track-label);
  text-transform: uppercase;
  color: var(--j-dim);
}

.mc-cast__bar {
  display: flex;
  height: 8px;
  background: rgba(var(--j-white-rgb), 0.04);
}

.mc-cast__bar i {
  display: block;
  height: 100%;
  background-image: var(--j-gloss);
  transform-origin: left;
  animation: j-grow 0.8s var(--j-ease) backwards;
  animation-delay: calc(var(--d, 0s) + 120ms);
}

.mc-cast__total {
  font-family: var(--j-display);
  font-size: 14px;
  color: var(--j-gold-50);
  text-align: right;
}

.mc-stack {
  display: flex;
  gap: 2px;
  height: 8px;
  margin-bottom: 12px;
}

.mc-stack i {
  background-image: var(--j-gloss);
  box-shadow: var(--j-bar-edge);
  transform-origin: left;
  animation: j-grow 1s var(--j-ease) 0.3s backwards;
}

.mc-slot {
  display: grid;
  grid-template-columns: 1fr 70px 60px 56px;
  align-items: center;
  min-height: 32px;
  padding: 0 8px;
  border-bottom: 1px solid var(--j-line-soft);
  font-family: var(--j-display);
  font-size: 14px;
  color: var(--j-text);
}

.mc-slot > span:not(:first-child) {
  text-align: right;
}

.mc-slot--head {
  min-height: 24px;
  font-family: var(--j-sans);
  font-size: 9.5px;
  letter-spacing: var(--j-track-label);
  text-transform: uppercase;
  color: var(--j-muted);
}

.mc-slot__key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--key);
}

.mc-slot__key::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--key);
}

.mc-slot__share {
  color: var(--j-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .mc {
    grid-template-columns: minmax(0, 1fr);
  }
  .mc-ban-list,
  .mc-cast-list {
    max-height: 520px;
  }
}

@media (max-width: 520px) {
  .mc-bump {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
  .mc-bump__buddy {
    flex: 1 1 100%;
    margin-left: 0;
    text-align: left;
  }
}
