/* ============================================================
   DIRECT MESSAGE PANEL
============================================================ */

/* =========================================
   Pass 56 migrated from 99-legacy-overrides-a.css
   Nested minigame special internals now live with arena ownership.
   Targets: Karate VS overlay and Class roster sidecard.
   ========================================= */
#karate-vs-panel,
#class-roster-panel {
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

#karate-vs-panel {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#karate-vs-panel .karate-vs-row,
#class-roster-panel #class-roster-list {
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

#karate-vs-panel .karate-vs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

#class-roster-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#class-roster-panel #class-roster-list {
  flex: 1 1 auto;
  overflow: auto;
  scrollbar-gutter: stable;
}


/* Karate 2 overlays and HUD ownership */
#karate2-vs-panel {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
  opacity: 0;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  gap: 20px;
}
#karate2-vs-text {
  font-size: 64px;
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 30px;
}
#karate2-vs-panel canvas {
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  image-rendering: pixelated;
}
#karate2-vs-left { border: 3px solid #ff3333; }
#karate2-vs-right { border: 3px solid #33aaff; }
#karate2-vs-panel .vs-label {
  font-size: 72px;
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 3px 3px 0 #000;
  margin: 0 30px;
}
#karate2-vs-panel .karate-vs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
#karate2-ui-overlay .karate-hud {
  position: absolute;
  inset: 8px 8px auto 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: start;
  pointer-events: none;
  z-index: 6;
}
#karate2-ui-overlay .karate-fighter-ui {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 6px 8px;
  min-width: 170px;
}
#karate2-ui-overlay .karate-fighter-ui.right { justify-self: end; text-align: right; }
#karate2-ui-overlay .karate-fighter-ui .name,
#karate2-ui-overlay .karate-match-label,
#karate-vs-overlay-new .karate-vs-text {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  font-weight: 700;
}
#karate2-ui-overlay .hp-bar {
  margin-top: 4px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
#karate2-ui-overlay .hp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5ad0ff, #4cff88);
}
#karate2-ui-overlay .karate-center-ui {
  min-width: 180px;
  text-align: center;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 6px 10px;
}
#karate2-ui-overlay .karate-round-tracker {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
}
#karate2-ui-overlay .karate-round-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
}
#karate2-ui-overlay .karate-round-dot.filled-left { background: #42b7ff; border-color: #42b7ff; }
#karate2-ui-overlay .karate-round-dot.filled-right { background: #ff5a5a; border-color: #ff5a5a; }
#karate-vs-overlay-new {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
}
#karate-vs-overlay-new .karate-vs-text { font-size: 36px; }
#karate-ui-overlay.karate-overlay-modernized .karate-tourney-status,
#karate2-ui-overlay .karate-tourney-status {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.92;
  text-align: center;
  white-space: nowrap;
}


/* Migrated from 99-legacy-overrides-a.css — Karate 2 exit button anchor */
#karate2-exit-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none !important;
}
