/* =========================================================
   역천록 (逆天錄) - 중앙 하단 행동 조작 센터 & 액션 버튼 스타일 (actions.css)
   ========================================================= */

/* 중앙 행동 조작 센터 (175px 절대 고정 슬롯: 3열 2줄 6개 버튼 완벽 수용) */
.panel-actions-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 175px;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-gold);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
  flex-shrink: 0;
}

.actions-grid {
  flex: 1;
  overflow-y: auto;
  scrollbar-gutter: stable;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0.5rem;
  align-content: start;
}

/* 사망 시 가로 100% 2단 풀와이드 레이아웃 */
.actions-death-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

/* 세팅 기억형 복합 가부좌 액션 카드 (52px 표준 규격 완벽 일체화) */
.btn-compound-meditate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #131d2e, #1a273e);
  border: 1px solid #2e4368;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 52px;
  height: 52px;
  box-sizing: border-box;
  position: relative;
  text-align: left;
}

.btn-compound-meditate:hover {
  background: linear-gradient(135deg, #18253b, #223454);
  border-color: #60a5fa;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
}

.btn-compound-meditate.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.compound-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.compound-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compound-chips {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  z-index: 2;
}

.chip-btn {
  background: #0d131f;
  border: 1px solid #334155;
  color: #94a3b8;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.65rem;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.15s;
}

.chip-btn:hover {
  border-color: #60a5fa;
  color: #eff6ff;
}

.chip-btn.active {
  background: #1e3a8a;
  border-color: #60a5fa;
  color: #67e8f9;
  font-weight: 700;
}

.compound-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.70rem;
  line-height: 1.1;
  margin-top: 1px;
  gap: 0.3rem;
  min-width: 0;
  overflow: hidden;
}

.compound-mode-text {
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.compound-sub-text {
  color: var(--text-muted);
  font-size: 0.70rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
