/* 雷霆前线 · 匹配系统 UI */

.mm-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(10, 26, 38, .92), rgba(3, 6, 9, .97));
  backdrop-filter: blur(6px);
}
.mm-overlay.show { display: flex; animation: mmFade .18s ease-out; }
@keyframes mmFade { from { opacity: 0; } to { opacity: 1; } }

.mm-card {
  position: relative;
  width: 420px;
  max-width: calc(100vw - 32px);
  padding: 26px 26px 22px;
  background: linear-gradient(180deg, #0e1922 0%, #0a1117 100%);
  border: 1px solid var(--line-hi);
  clip-path: var(--chamfer);
  box-shadow: 0 0 0 1px rgba(55, 198, 255, .08), 0 18px 60px rgba(0, 0, 0, .7);
  animation: mmIn .24s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes mmIn { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

.mm-corner {
  position: absolute;
  width: 12px; height: 12px;
  border: 2px solid var(--cyan);
  opacity: .8;
}
.mm-corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.mm-corner.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.mm-corner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.mm-corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.mm-head { text-align: center; margin-bottom: 6px; }
.mm-title {
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 4px;
  color: var(--txt-bright);
  text-shadow: 0 0 14px rgba(55, 198, 255, .5);
}
.mm-mode {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
}

.mm-ring-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 14px auto 10px;
}
.mm-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.mm-ring-bg {
  fill: none;
  stroke: #16232e;
  stroke-width: 7;
}
.mm-ring-fg {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset .12s linear, stroke .25s;
  filter: drop-shadow(0 0 6px rgba(55, 198, 255, .6));
}
.mm-ring-fg.filling { stroke: var(--gold); filter: drop-shadow(0 0 8px rgba(255, 179, 0, .7)); }
.mm-ring-fg.done { stroke: var(--green); filter: drop-shadow(0 0 10px rgba(70, 214, 140, .8)); }

.mm-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.mm-ring-num {
  font-size: 46px;
  font-weight: bold;
  line-height: 1;
  color: var(--txt-bright);
  font-variant-numeric: tabular-nums;
}
.mm-ring-unit {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--txt-dim);
}

.mm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 10px;
}
.mm-stat {
  padding: 8px 4px;
  text-align: center;
  background: rgba(22, 34, 44, .7);
  border: 1px solid var(--line);
}
.mm-stat b {
  display: block;
  font-size: 17px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.mm-stat span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--txt-dim);
}

.mm-note {
  min-height: 32px;
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--txt-dim);
  background: rgba(255, 179, 0, .05);
  border-left: 2px solid rgba(255, 179, 0, .5);
}
.mm-note.warn { color: var(--gold); border-left-color: var(--gold); }

.mm-roster {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
  max-height: 190px;
  overflow-y: auto;
}
.mm-roster.show { display: grid; animation: mmFade .2s; }
.mm-p {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 12px;
  background: rgba(16, 25, 32, .9);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mm-p.human { border-color: rgba(55, 198, 255, .55); }
.mm-p.self { border-color: var(--gold); background: rgba(255, 179, 0, .1); }
.mm-p-team { width: 3px; height: 14px; flex: 0 0 3px; }
.mm-p-team.blue { background: var(--blue-team); }
.mm-p-team.red { background: var(--red-team); }
.mm-p-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--txt);
}
.mm-p-tag {
  font-size: 9px;
  letter-spacing: 1px;
  padding: 1px 4px;
  color: var(--txt-dim);
  border: 1px solid var(--line-hi);
}
.mm-p.human .mm-p-tag { color: var(--cyan); border-color: var(--cyan); }

.mm-cancel {
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  font-size: 14px;
}
