#adventure-arena-panel {
  width: 480px;
  height: 220px;
}

/* ============================
   Arena Overrides (no ghost box)
   ============================ */

/* ============================
   Karate HUD Overlay
   ============================ */
#karate-ui-overlay {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.fighter-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
}

.fighter-ui .name {
  font-weight: bold;
  font-size: 16px;
  color: white;
  text-shadow: 1px 1px 2px black;
  margin-bottom: 4px;
}

.fighter-ui .hp-bar {
  width: 100px;
  height: 10px;
  background: #333;
  border: 1px solid #000;
  position: relative;
}

.fighter-ui .hp-fill {
  height: 100%;
  background: red;
  width: 100%; /* dynamically updated */
}

/* ============================
   Karate VS Transition Overlay
   ============================ */
#karate-vs-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
  opacity: 0;
}

#karate-vs-text {
  font-size: 64px;
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 30px;
}

#karate-vs-panel canvas {
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  image-rendering: pixelated;
}

#karate-vs-left {
  border: 3px solid #ff3333;
}

#karate-vs-right {
  border: 3px solid #33aaff;
}

#karate-vs-panel .vs-label {
  font-size: 72px;
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 3px 3px 0 #000;
  margin: 0 30px;
}

/* ============================
   Karate Round Tracker
   ============================ */
#karate-round-tracker {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  z-index: 61;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid #fff;
}

#karate-round-tracker .round-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}

#karate-round-tracker .round-dot.player {
  background: #0099ff;
  border-color: #0099ff;
}

#karate-round-tracker .round-dot.cpu {
  background: #ff4444;
  border-color: #ff4444;
}

/* ============================
   Class Progress
   ============================ */
#class-progress {
  z-index: 3 !important;
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;

  height: 20px;
  border: 2px solid #415a77;
  border-radius: 6px;
  background: #222;
  overflow: hidden;
}

#class-progress-fill {
  height: 100%;
  width: 0%;
  background: #5b63ff;
  transition: width 1s linear;
}

/* ============================
   LEFT: Class Roster Panel
   ============================ */
#class-roster-panel {
  z-index: 3 !important;
  position: absolute;
  left: 10px;
  top: 44px;

  width: 220px;
  max-height: 420px;

  padding: 6px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #415a77;
  border-radius: 8px;

  font-size: 14px;
  overflow-y: auto;
}

.class-roster-title {
  text-align: center;
  font-weight: bold;
  color: #ffd60a;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #415a77;
}

/* ============================
   Roster Entries
   ============================ */
#class-roster-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.class-roster-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 4px 6px;
  background: rgba(27, 38, 59, 0.9);
  border-radius: 4px;
}

.roster-name {
  font-weight: bold;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 140px;
}

.roster-rank {
  font-weight: bold;
  color: #ffd60a;
}

/* ============================
   Roster Stars
   ============================ */
.roster-stars {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.roster-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  line-height: 12px;
  font-size: 12px;
  color: #888;
  opacity: 0.45;
}

.roster-star.filled {
  color: #ffd60a;
  opacity: 1;
}

/* ============================
   RIGHT: Class Status Box
   (Subject / Timing only)
   ============================ */
#class-status-box {
  z-index: 3 !important;
  position: absolute;
  right: 10px;
  top: 44px;

  width: 220px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid #415a77;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
}

#class-status-box p {
  margin: 2px 0;
}

/* ============================
   Legacy Rank / Stars (Safe to keep)
   ============================ */
.class-rank {
  font-weight: bold;
  color: #ffd60a;
  text-align: center;
  margin-bottom: 4px;
}

.class-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.class-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  line-height: 18px;
  font-size: 18px;
  color: #888;
  opacity: 0.45;
}

.class-star.filled {
  color: #ffd60a;
  opacity: 1;
}

/* ============================
   Chao Container
   ============================ */
#class-chao-container {
  z-index: 2 !important;
  position: absolute;
  left: 0;
  top: 0;

  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============================
   Class Buttons
   ============================ */
.class-btn {
  position: absolute;
  bottom: 10px;

  padding: 6px 12px;
  font-size: 14px;

  border-radius: 6px;
  border: 2px solid #415a77;
  background: #1b263b;
  color: #ffffff;

  cursor: pointer;
}

.class-btn.start {
  left: 10px;
}

.class-btn.exit {
  right: 10px;
}

.class-btn:hover {
  background: #243554;
}

/* Migrated from 99-legacy-overrides-b.css — retire old body-level class controls now that header controls are standardized. */
#class-start,
#class-exit-btn {
  display: none !important;
}

