/* JieYiPanel —— 桃园结义面板样式（沿用 general-codex overlay 骨架） */

#jieyi-overlay {
  position: fixed;
  inset: 0;
  /* ★ 2026-11-14：双人联机/账号等 DOM 层用到 z-index 99999~100050，
     原 9000 会被压在下面（用户报「双人联机按钮盖住桃园弹窗」）。
     抬到 100500：高于 PvpLobbyUI(99999) 与账号遮罩(100050)，仍在系统提示之下。 */
  z-index: 100500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 6, 0.62);
  --jieyi-scale: 1;
}

#jieyi-overlay.is-visible {
  display: flex;
}

#jieyi-overlay .general-codex-shell {
  transform: scale(var(--jieyi-scale, 1));
  transform-origin: center center;
}

.jieyi-window {
  width: 560px;
  max-width: 94vw;
  max-height: 86vh;
  overflow: auto;
  padding: 18px 20px 16px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 2px solid #8a5a2b;
  color: #ffe9c4;
  background-color: #2c1c10;
  background-size: 100% 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.jieyi-window h2 {
  margin: 6px 0 2px;
  font-size: 26px;
  color: #ffdf9e;
  text-align: center;
  letter-spacing: 6px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.jieyi-tip {
  margin: 0 0 12px;
  font-size: 12px;
  color: #d8b98c;
  text-align: center;
}

.jieyi-slots {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.jieyi-slot {
  flex: 1;
  min-height: 92px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #a9793f;
  background-color: rgba(74, 44, 18, 0.75);
  background-size: 100% 100%;
}

.jieyi-slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9a7c52;
}

.jieyi-slot-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jieyi-slot-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7c37e;
  color: #4b2b1d;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.jieyi-slot-name {
  font-size: 18px;
  color: #ffd98a;
  letter-spacing: 2px;
}

.jieyi-slot-nk {
  display: block;
  font-size: 12px;
  color: #c9a468;
  margin-top: 2px;
}

.jieyi-slot-desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #e8cf9f;
}

.jieyi-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #d8b98c;
  margin-bottom: 8px;
}

.jieyi-stats b {
  color: #ffe9c4;
}

.jieyi-list {
  max-height: 180px;
  overflow: auto;
  border: 1px solid #6f4a22;
  border-radius: 10px;
  padding: 6px;
  background: rgba(30, 19, 10, 0.6);
  margin-bottom: 12px;
}

.jieyi-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  margin-bottom: 4px;
  border: 0;
  border-radius: 8px;
  background: rgba(74, 44, 18, 0.55);
  color: #ffe9c4;
  text-align: left;
  cursor: pointer;
}

.jieyi-entry:hover {
  background: rgba(112, 71, 32, 0.8);
}

.jieyi-entry-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #a9793f;
  color: #2c1c10;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.jieyi-entry strong {
  font-size: 14px;
  flex: none;
}

.jieyi-entry em {
  font-size: 12px;
  font-style: normal;
  color: #c9a468;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jieyi-none {
  margin: 6px;
  font-size: 12px;
  color: #9a7c52;
  text-align: center;
}

.jieyi-adopt {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #3a240f;
  background: linear-gradient(#f4d489, #d9a84e);
  border: 2px solid #8a5a2b;
  border-radius: 10px;
  cursor: pointer;
}

.jieyi-adopt:active {
  transform: translateY(1px);
}

.jieyi-adopt-brand {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 50%;
  background: #8a5a2b;
  color: #ffe9c4;
}

.jieyi-foot {
  margin: 10px 0 0;
  font-size: 11px;
  color: #9a7c52;
  text-align: center;
}
