/* Migrated ownership from 11-chaorpg-a.css — family consolidation */

.chaorpg-viewport {position: relative;
  width: 1000px;
  height: 1000px;
  overflow: hidden;
  flex: 0 0 auto;}
.chaorpg-arena-layout {display: flex;
  flex-direction: row;
  gap: 12px;
  height: 100%;}
.chaorpg-party-sidebar {width: 280px;
  height: 100%;
  box-sizing: border-box;

  padding: 10px 10px;

  background: rgba(0, 0, 0, 0.55);
  border: 2px solid #000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);

  image-rendering: pixelated;}
.skill-slot {width: 64px;
  height: 64px;

  background-size: contain;
  background-repeat: no-repeat;

  cursor: pointer;
  position: relative;

  image-rendering: pixelated;}
.skill-slot .slot-hotkey {position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);

  min-width: 40px;
  height: 18px;
  padding: 0 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1;
  color: #fff;

  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;

  pointer-events: none;
  image-rendering: pixelated;}
.skill-slot .slot-count {position: absolute;
  right: -8px;
  bottom: -8px;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  pointer-events: none;
  image-rendering: pixelated;}

/* ============================================================
   RUN END PANEL
============================================================ */

#rpg-run-end-panel {
  /* Doubled per request */
  background: #1b1e26;
  border: 2px solid #555;
  color: #fff;
  font-family: "Verdana", sans-serif;
  padding: 24px;
}

#rpg-run-end-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

#rpg-run-end-panel .panel-title {
  text-align: left;
  font-size: 36px;
  color: #ffd86b;
}

#rpg-run-end-panel .rpg-run-end-body {
  font-size: 22px;
}

#rpg-run-end-panel .panel-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

#rpg-run-end-panel button {
  flex: 1 1 46%;
  padding: 16px;
  font-size: 22px;
  cursor: pointer;
}

/* Ready status list */
#rpg-run-end-panel .rpg-run-end-ready {
  margin-top: 14px;
  padding: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
}

#rpg-run-end-panel .rpg-run-end-ready-title {
  font-weight: bold;
  margin-bottom: 10px;
}

#rpg-run-end-panel .rpg-run-end-ready-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}

#rpg-run-end-panel .rpg-run-end-ready-row:first-child {
  border-top: none;
}

#rpg-run-end-panel .rpg-run-end-ready-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 18px;
  opacity: 0.95;
}

/* ============================================================
   CHAO RPG — SHOP PANEL
============================================================ */

#rpg-shop-panel {
  background: #1b1e26;
  border: 2px solid #555;
  color: #fff;
  font-family: "Verdana", sans-serif;
}

#rpg-shop-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2a2f3a;
  padding: 6px 10px;
  font-weight: bold;
}

#rpg-shop-panel .panel-body {
  padding: 10px;
}

.rpg-shop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rpg-shop-label {
  opacity: 0.9;
}

.rpg-shop-value {
  font-weight: bold;
  color: #ffd86b;
}

.rpg-shop-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.rpg-shop-btn {
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.rpg-shop-subtitle {
  margin-top: 6px;
  margin-bottom: 6px;
  font-weight: bold;
  opacity: 0.9;
}

.rpg-shop-loot-list {
  max-height: 140px;
  overflow: auto;
  border: 1px solid #394057;
  padding: 8px;
  background: rgba(0,0,0,0.25);
}

.rpg-shop-loot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}

.rpg-shop-item-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.rpg-shop-item-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpg-shop-item-sub {
  font-size: 11px;
  opacity: 0.75;
}

.rpg-shop-item-actions {
  display: flex;
  gap: 6px;
}

.rpg-shop-item-btn {
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.rpg-shop-loot-row.dim {
  opacity: 0.7;
}

.rpg-shop-hint {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.75;
}


#chaorpg-arena-panel .chaorpg-party-sidebar,
#rpg-class-panel .rpg-class-slot,
#rpg-talents-panel .rpg-talents-summary,
#rpg-talents-panel .rpg-talents-list,
#rpg-equip-panel .rpg-equip-summary,
#rpg-equip-panel .rpg-equip-slots,
#rpg-inventory-panel .rpg-inventory-summary,
#rpg-inventory-panel .rpg-inventory-loot,
#rpg-run-end-panel .rpg-run-end-ready,
#rpg-shop-panel .rpg-shop-loot-list,
#chaorpg-party-panel .chaorpg-party-list,
#chaorpg-log-panel .chaorpg-log-entries {
  border-radius: 18px;
  border: 1px solid rgba(114, 154, 196, 0.18);
  background: linear-gradient(180deg, rgba(20, 32, 49, 0.92), rgba(10, 17, 27, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

#rpg-class-panel .rpg-class-slot,
#rpg-talents-panel .rpg-talents-summary,
#rpg-talents-panel .rpg-talents-list,
#rpg-equip-panel .rpg-equip-summary,
#rpg-equip-panel .rpg-equip-slots,
#rpg-inventory-panel .rpg-inventory-summary,
#rpg-inventory-panel .rpg-inventory-loot,
#rpg-shop-panel .rpg-shop-loot-list,
#chaorpg-party-panel .chaorpg-party-list,
#chaorpg-log-panel .chaorpg-log-entries {
  padding: 12px;
}

#rpg-run-end-panel .rpg-run-end-ready {
  padding: 14px;
}





/* ============================================================
   Panel style pass 12 — ChaoRPG skill HUD + party sidebar cleanup
   ============================================================ */

/* Arena layout: keep the sidebar inside the panel instead of letting the
   viewport claim full width and push the sidebar off-panel. */
.chaorpg-arena-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.chaorpg-viewport {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 248px) !important;
  overflow: hidden !important;
}

.chaorpg-party-sidebar {
  flex: 0 0 236px !important;
  width: 236px !important;
  max-width: 236px !important;
  min-width: 236px !important;
  height: 100% !important;
  box-sizing: border-box !important;
  align-self: stretch !important;
  overflow: hidden auto !important;
  margin-left: 0 !important;
}

/* Skill HUD: wider and less tall so the shell art doesn't look vertically stretched. */


/* Keep slots centered within the shorter/wider HUD. */
.skill-slot {
  width: 64px !important;
  height: 64px !important;
}

/* Move potion counts above the icons, centered. */
.skill-slot .slot-count {
  left: 50% !important;
  right: auto !important;
  top: -14px !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  min-width: 30px !important;
  height: 24px !important;
  padding: 0 8px !important;
  font-size: 16px !important;
  border-radius: 999px !important;
  z-index: 3 !important;
}

/* Leave hotkey labels under the icon, but pull them in slightly so the HUD reads cleaner. */
.skill-slot .slot-hotkey {
  bottom: -18px !important;
}

/* Tighten gauge placement so they fit the wider/shorter HUD better. */


