/* extracted from 07-management-panels-b.css during pass182; load immediately after 07-management-panels-b.css to preserve cascade order */

/* ============================================================
   Karate Tournament MP
   ============================================================ */
#vote-karate-tournament { position: relative; }
.lp-banner-caption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ktmp-body {
  background: linear-gradient(180deg, rgba(24,29,44,0.94), rgba(10,12,19,0.96));
  color: #eef3ff;
  overflow: auto;
}

.ktmp-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.ktmp-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 4px 2px 0;
}

.ktmp-status {
  font-size: 18px;
  font-weight: 700;
}

.ktmp-meta {
  font-size: 13px;
  opacity: 0.86;
}

.ktmp-current-match {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
}
.ktmp-current-match.idle { opacity: 0.92; }
.ktmp-current-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.ktmp-current-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.ktmp-vs {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.1em;
  opacity: 0.75;
}
.ktmp-wait {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.82;
}

.ktmp-rounds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
}

.ktmp-round {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ktmp-round-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.84;
}

.ktmp-match {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.ktmp-match.active {
  border-color: rgba(255, 218, 104, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 218, 104, 0.2), 0 0 22px rgba(255,218,104,0.18);
}
.ktmp-match.done { opacity: 0.96; }
.ktmp-match-footer {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.78;
}

.ktmp-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 12px;
  padding: 6px 8px;
  background: rgba(0,0,0,0.22);
}
.ktmp-entry + .ktmp-entry { margin-top: 6px; }
.ktmp-entry-empty {
  opacity: 0.45;
}
.ktmp-side {
  width: 16px;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.7;
}
.ktmp-puck {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
}
.ktmp-puck img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.ktmp-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

/* ============================
   Matchmake Panel
   ============================ */
.matchmake-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.matchmake-topbar {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto auto;
  gap: 10px;
  align-items: end;
}
.matchmake-mode-card,
.matchmake-top-field,
.matchmake-top-check {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px;
}
.matchmake-mode-label,
.matchmake-top-field > span {
  font-size: 12px;
  opacity: 0.8;
  display: block;
  margin-bottom: 6px;
}
.matchmake-mode-value {
  font-size: 18px;
  font-weight: 700;
}
.matchmake-top-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
}
.matchmake-select {
  width: 100%;
  min-height: 48px;
}
.matchmake-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.mm-btn {
  min-width: 140px;
  min-height: 36px;
}
.mm-btn.primary {
  font-weight: 700;
}
.mm-btn.accent {
  font-weight: 700;
}
.matchmake-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
  font-size: 13px;
}
.matchmake-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
}
.matchmake-left,
.matchmake-right {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.matchmake-slot {
  min-height: 0;
  flex: 1 1 auto;
}
#mm-player-list-slot {
  overflow: auto;
  padding-right: 4px;
}
#mm-player-list-slot,
#mm-waiting-room-slot {
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px;
}
.mm-player-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.mm-player-card.is-mine {
  background: rgba(255,255,255,0.1);
}
.mm-player-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}
.mm-player-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.mm-player-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mm-player-name {
  font-weight: 700;
}
.mm-player-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mm-player-chao {
  font-size: 12px;
  opacity: 0.82;
}
.mm-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
}
.mm-tag.mine { background: rgba(90, 170, 255, 0.3); }
.mm-tag.host { background: rgba(255, 215, 90, 0.28); }
.mm-tag.bot { background: rgba(255,255,255,0.2); }
.mm-waiting-room {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.mm-waiting-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mm-wr-meta {
  font-size: 12px;
  opacity: 0.82;
}
.mm-waiting-stage {
  flex: 1 1 auto;
  min-height: 420px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(to bottom, rgba(110,180,255,0.18), rgba(50,110,60,0.18));
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  overflow: auto;
}
